SpringBoot整合mybatis报错Invalid bound statement (not found): com.dao.DeptDao.findAll 这个报错花了我很长时间,网上的办法我都试了也没用,感觉自己各个地方也都没有问题。target文件夹里mapper.xml也都生成了。最后在源码里debug发现,好像mapper.xml里的内容都没读进... 2019年4月15日 mybatis 浏览量:886 次 发表评论 阅读全文
Spring Cloud Hystrix Dashboard访问/actuator/hystrix.stream出现Whitelabel Error Page的解决方法 首先,Spring Cloud Hystrix Dashboard的首页是可以访问的,客户端的接口是http://localhost:5667/hello,现在访问http://localhost:5... 2019年4月11日 SpringCloud 浏览量:1,720 次 发表评论 阅读全文
设计模式总结之策略模式(Stategy Pattern) 定义:策略模式定义了算法族,分别封装起来,让它们之间可以互相替换,此模式让算法的变化独立于使用算法的客户。 例子:游戏中的角色可以使用武器,每个角色一次只能使用一个武器,但是可以在游戏中切换武器。 假... 2019年4月11日 设计模式 浏览量:655 次 发表评论 阅读全文
centos系统启动jenkins,nexus,tomcat后不久进程被自动kill掉 centos系统启动jenkins,nexus,tomcat后不久进程总是被自动kill掉,最初以为是 系统内存不足引起的,因为当时gitlab占用的内存很大,剩余内存只有3G左右。但是后来把gitl... 2019年4月8日 linux 浏览量:1,466 次 发表评论 阅读全文
Spring Security Oauth2.0刷新token时报错UserDetailsService is required的解决方法 报这个错,很明显是缺少UserDetailsService,但是网上的一些解决方法里具体怎么添加这个类没写的很清楚。 一般都只说了在AuthorizationServerEndpointsConfig... 2019年3月6日 Spring Security 浏览量:2,996 次 发表评论 阅读全文
Spring SecuritySpring Security Oauth2.0刷新token时报错401 Unauthorized和invalid_client Bad client credentials的解决方法 关于这个问题,在网上找了很多,但是都没有解决我的问题。 首先,刷新token调用的接口是/oauth/token,其中参数有 grant_type=refresh_token refresh_toke... 2019年3月5日 浏览量:4,697 次 发表评论 阅读全文
Spring Security Oauth2.0调用check_token接口报错401 Unauthorized的解决方法 Spring Security Oauth2.0里帮我们封装了check_token接口,但是调用时报错 "status": 401, "error": "Unauthorized", "messag... 2019年3月5日 Spring Security 浏览量:6,131 次 发表评论 阅读全文
Spring Security Oauth2.0可以正常获取access_token,但返回值里没有refresh_token { "access_token": "12d1e7b8-0456-495b-91f8-2ff481b810e6", "token_type": "bearer", "expires_in": 4139... 2019年3月4日 Spring Security 浏览量:3,848 次 发表评论 阅读全文
访问http://localhost:6666/时报错:网页可能暂时无法连接,或者它已永久性地移动到了新网址。 最近在用Spring的Zuul和Eureka弄集群,很奇怪的是用Zuul访问时能访问到localhost:6666,但是在chrome里直接访问http://localhost:6666/时就报错如下... 2019年2月28日 SpringCloud 浏览量:3,731 次 发表评论 阅读全文