- 博客(5)
- 收藏
- 关注
原创 el-progress展示进度条 超过100不显示的问题如何解决,如何让percentage显示超过100%的数值
在工作过程中,遇到需求需要根据后端返回的值在前端动态显示进度条进度。我使用的是el-progress在显示进度条,但是percentage要求值的限定范围为0-100,超出一百不会显示,有两种解决方案:第一种:超出100的部分按100%显示即可。但是在有些情况下我们需要显示超过100的值,解决方法很简单,把percentage的值格式化显示即可。
2025-06-12 13:52:33
557
原创 Error creating bean with name ‘constantPropertiesUtils‘: Injection of autowired dependencies failed;
报错:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class。后面发现是多模块服务配置文件可能没有被正确复制到target目录下,导致运行时找不到。后面发现在其他地方读取不到配置文件中的数据也是这个问题。
2025-05-18 23:31:28
283
原创 linux export path没有生效,关闭系统重启后:-bash: mongod: 未找到命令
就当我以为问题解决了的时候,第二天发现又出现:-bash: mongod: command not found。在Linux中启动MongoDB时,发现:-bash: mongod: command not found。看来path出现了问题,我直接进入profile把路径添加进去,问题解决。之后MongoDB可以正常运行了。于是我把路径添加至path。
2023-12-30 11:16:10
1427
1
原创 centos7 安装mongodb报错about to fork child process, waiting until server is ready for connections. forke
非正常关闭后,报about to fork child process, waiting until server is ready for connections,删除mongodb 的db目录下的mongod.lock文件,重启mongodb即可。"msg":"Error setting up listener","attr":{"error":{"code":9001,"codeName":"SocketException"先排查端口是否被占用。仔细核对发现我并不属于这种情况。
2023-12-29 18:58:07
1020
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅