- 博客(10)
- 收藏
- 关注
原创 nexus-3.2.0-01.zip安装以及如何启动服务
在之前的版本中,启动nexus服务都是在cmd中输入 nexus install来安装服务,nexus start来启动服务。在nexus-3.2.0-01中,直接在nexus根目录下的bin下,输入 nexus.exe/run 即会启动服务。此时的nexus服务都是安装包默认的数据存储路径、端口、IP、访问根目录、内存大小,可以通过如下操作进行修改。通过根目录下etc目录下的 nexus...
2018-08-31 16:20:53
294
原创 feign time out 异常
问题,身份证识别服务,超过1s后,就报超时异常,设置hystrix的命令也不好使,折腾半天,还是超时 解决:在application.properties文件中增加,ribbon.ReadTimeout=60000 ribbon.ConnectTimeout=60000,虽然为黄色的,但是起作用。问题解决...
2018-08-31 14:03:47
1107
原创 Spring boot 应用发布到docker
1、打包,mbmp-0.0.1-SNAPSHOT.jar app.jar 2、编写dockefile: FROM java:8 VOLUME /tmp ADD mbmp-0.0.1-SNAPSHOT.jar app.jar RUN bash -c ‘touch /app.jar’ ENTRYPOINT [“java”,”-jar”,”/app.jar”] 3、将创建好的Docke...
2018-08-30 14:25:36
179
原创 spring boot 启动失败,不报错No active profile set, falling back to default profiles: default
问题;INFO [contextName_IS_UNDEFINED] 2018-08-24 14:11:01.255 [restartedMain] c.c.g.g.GateWayEntry.logStartupProfileInfo: No active profile set, falling back to default profiles: defaultProcess finish...
2018-08-24 15:44:15
32171
原创 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
问题:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.cofco.graincircle.mbmp.mapper.UserMapper.insert at org.apache.ibatis.binding.MapperMethodSqlCommand.(MapperMetho...
2018-08-17 13:22:36
220
原创 Caused by: java.lang.NoSuchMethodError: org.apache.ibatis.session.Configuration.setVfsImpl(Ljava/lan
问题:spring boot 集成Spring mybatis Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method ‘sqlSessionFactory...
2018-08-16 17:29:02
11085
1
原创 let.ServletException: Circular view path [登陆用户信息:m]: would dispatch back to the current ha
javax.servlet.ServletException: Circular view path [登陆用户信息:m]: would dispatch back to the current handler URL [/msp/loginTest/m/登陆用户信息:m] again.解决方法:在服务实现的controller中增加@ResponseBody 如下: @Control...
2018-08-16 14:55:59
539
原创 create:feign.FeignException: status 500
问题: create:feign.FeignException: status 500 reading LoginClient#loginTest(String,String); content: {“timestamp”:”2018-08-16T05:29:47.301+0000”,”status”:500,”error”:”Internal Server Error”,”message”:...
2018-08-16 13:56:53
28176
原创 启动Spring boot注册中心报错:RENEWALS ARE LESSER THAN THE THRESHOLD. THE SELF PRESERVATION MODE IS TURNED OFF
服务提供者和服务消费者配置文件问题: eureka.client.service-url.defaultZone= http://localhost:8080/eureka/问题:LoginService.loginTest: com.netflix.client.ClientException: Load balancer does not have available server fo...
2018-08-16 13:31:37
18381
原创 spring boot 启动报错o.a.c.c.StandardService.log: Stopping service [Tomcat]
分析问题:出在Feign调用 这行代码上,加上就报上面的错。就是@Autowired的问题。 解决方法:折磨的一晚上,原因是这个,原来写成 Public String loginTest(String id,String pwd);的问题FeignClient注册的接口方法中参数取值不能像普通那样,需要通过@RequestParam字符参数,@RequestBody 传递对象,比如@Req...
2018-08-16 09:15:04
5733
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人