![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
问题大全
开发中遇到的问题及解决方案
程序员卷王
卷不动了
展开
-
ERROR: Invalid subnet : invalid CIDR address:
使用docker-compose自定义网络报错:ERROR: Invalid subnet : invalid CIDR address:配置如下:version: "3"networks: mysql_net: driver: bridge ipam: config: - subnet: "10.20.0.0/16" - gateway: "10.20.0.1"报错的原因是配置文件的格式不对,正确格式如下version: "3"原创 2021-09-19 10:43:17 · 4482 阅读 · 0 评论 -
shardingsphere 5.0控制台输出sql语句
shardingsphere 5.0.0-beta 版本在控制台输出sql,只要在配置文件中添加如下配置即可。spring.shardingsphere.props.sql-show=true效果原创 2021-09-10 16:12:07 · 6509 阅读 · 2 评论 -
ShardingSphere报错Configuration property name ‘spring.shardingsphere.datasource.write_ds‘ is not valid
springboot整合ShardingSphere报错 Caused by: org.springframework.boot.context.properties.source.InvalidConfigurationPropertyNameException: Configuration property name ‘spring.shardingsphere.datasource.write_ds’ is not valid报错原因ShardingSphere 在5.0以前的版本数据源的命名原创 2021-09-10 16:04:04 · 1423 阅读 · 1 评论 -
ShardingSphere报错 Sharding value must implements Comparable.
ShardingSphere整合Mybatis-plus报错 java.lang.IllegalArgumentException: Sharding value must implements Comparable.报错原因由于在配置文件中配置了shardingsphere的id生成策略,这里使用id做为分片健,shardingSphere在保存数据的时候就会自动生成id的值。spring.shardingsphere.sharding.tables.user.key-generator.colu原创 2021-09-09 15:09:49 · 8452 阅读 · 0 评论 -
关闭 Dubbo 依赖服务检查
项目使用Dubbo搭建,启动项目的时候每次都要启动所有服务,才能正常运行项目,只要有依赖的服务没启动,会报以下错误!这样开发也太麻烦了!Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry' available原创 2021-07-16 23:00:23 · 1024 阅读 · 0 评论 -
Text fields are not optimised for operations that require per-document field data like aggregations
elasticsearch在聚合排序搜索的时候报错DSL语句如下GET /spu/_search{ "from": 0, "size": 10, "query": { "multi_match": { "query": "华为", "fields": ["caption^1.0", "name^1.0"], "type": "best_fields", "operator": "OR", "slop": 0, "prefix_length": 0,原创 2021-05-03 11:22:03 · 8211 阅读 · 2 评论 -
docker 挂载mysql目录报错:chown: changing ownership of ‘/var/lib/mysql/‘: Permission denied
使用以下命令挂载mysql配置文件目录和数据文件docker run -d -p 3307:3306、–name mysql_5.7 -v /wfd/mysql/conf:/etc/mysql/conf.d -v /wfd/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=root mysql:5.7发现容器一启动就自动退出了,通过docker logs -f 容器id查看日志,发现以下报错Entrypoint script for MySQL S原创 2021-04-29 09:27:39 · 3542 阅读 · 1 评论 -
ClassNotFoundException:org.springframework.boot.context.properties.ConfigurationPropertiesBean
springboot 2.1.13.RELEASE 整合 spring-cloud-alibaba-dependencies 2.2.3.RELEASE报错Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.ConfigurationPropertiesBeanat java.net.URLClassLoader.findClass(URLClassLoader.java:381原创 2021-04-06 23:34:15 · 4095 阅读 · 0 评论 -
jwt解析token报错:Signed Claims JWSs are not supported.
jwt解析token报错:Signed Claims JWSs are not supported.Exception in thread "main" io.jsonwebtoken.UnsupportedJwtException: Signed Claims JWSs are not supported. at io.jsonwebtoken.JwtHandlerAdapter.onClaimsJws(JwtHandlerAdapter.java:50) at io.jsonwebtoken.im原创 2021-03-25 23:56:32 · 4643 阅读 · 1 评论 -
idea导入项目报错:Platform SDK does not point to valid JDK (1.8 (2))
错误现象com.intellij.openapi.externalSystem.service.execution.InvalidSdkException: Platform SDK does not point to valid JDK (1.8 (2)) at org.jetbrains.idea.maven.utils.MavenUtil.getJdk(MavenUtil.java:1344) at org.jetbrains.idea.maven.server.MavenServerManag原创 2021-03-22 14:05:18 · 1804 阅读 · 0 评论 -
java.lang.ClassNotFoundException: org.springframework.jdbc.support.JdbcTransactionManager
Springboot 2.4.3 整合 sql-springboot-starter 3.0.3-RELEASE 报错Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.jdbc.datasource.DataSourceTransactionManager]: Factory method 'transactionManager' threw原创 2021-03-21 16:21:07 · 10002 阅读 · 2 评论