错误集锦
成长路上的代价
这个作者很懒,什么都没留下…
展开
-
java.net.ConnectException: Connection refused: no further information
程序抛出这个异常的原因多数是因为在此[host:port]没有监听,那么该如何解决这个问题呢,如下 第一个要做的是看你的host和port是否写错了,如 [ 127.00.1:8080 ] 第二个要看你的server是否真正的运行起来了,比如server在启动过程某些组件加载异常,会导致服务启动不成功。 第三个有可能是防火墙的原因,关闭防火墙试试 第四个就是如果你是自己写的socket那...原创 2018-08-06 17:16:26 · 1999 阅读 · 0 评论 -
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误解决方案
tomcat启动时报错 项目右键,properties,web deployment assembly,然后add,把所有的build path包加进来原创 2018-08-08 14:52:04 · 138 阅读 · 0 评论 -
Invalid classpath publish/export dependency /hs-base-batchmonitor. Project entries not supported.
eclipse中使用maven构建多模块项目,中hs-base-batchmonitor报错 解决: 项目右键>Properties -> Deployment Assembly -> Add 在弹出的框中选中hs-base-batchmonitor项目,加入进来即可...原创 2018-08-08 15:04:47 · 341 阅读 · 0 评论 -
java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava
是由于spring boot版本兼容性导致的,在pom.xml中修改配置文件,修改前: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <ver...原创 2018-10-24 18:11:51 · 188 阅读 · 0 评论 -
jdbcUrl is required with driverClassName错误解决
spring.datasource.primary.url 修改为=》spring.datasource.primary.jdbc-url spring.datasource.secondary.driver-class修改为 =》spring.datasource.secondary.driver-class-name原创 2019-05-28 16:16:52 · 2641 阅读 · 0 评论 -
Failed to configure a DataSource: 'url' attribute is not specified and no embedde
参考地址:https://blog.csdn.net/Hello_World_QWP/article/details/83271592转载 2019-05-28 16:25:04 · 233 阅读 · 0 评论 -
JSON 数据重复 出现$ref
解决方法1. 加上SerializerFeature.DisableCircularReferenceDetect JSON.toJSONString(object,SerializerFeature.DisableCircularReferenceDetect) 解决方法2: JSONObject.parse(JSONArray.toJSONString(userBankJsonArr...原创 2019-08-13 10:15:12 · 271 阅读 · 0 评论