01 2020 档案

springboot启动报错:org.springframework.boot.context.properties.ConfigurationPropertiesBean
摘要:springboot版本和springcloud版本不兼容,换一个版本试试 阅读全文

posted @ 2020-01-27 20:40 jav-a- 阅读(16088) 评论(1) 推荐(1)

运行springboot项目出现:Type javax.xml.bind.JAXBContext not present
摘要:问题:运行springboot项目出现:Type javax.xml.bind.JAXBContext not present 原因 java9+版本以后,JAXB默认没有加载 手动添加模块到pom: spring boot 2.0.*版本,添加如下代码: ———————————————— <!-- 阅读全文

posted @ 2020-01-27 20:39 jav-a- 阅读(690) 评论(0) 推荐(0)

SpringSecurity出现org.springframework.security.authentication.BadCredentialsException: Bad credentials
摘要:出现Bad credentials,排除了配置问题,debug跟到了数据库的内容可以查出; 最后发现是因为直接通过insert语句增加了用户信息,密码没有经过加密。 一:springSecurity提供了一个增加{noop}字符串来解决 "{noop}"+userInfo.getPassword() 阅读全文

posted @ 2020-01-26 23:45 jav-a- 阅读(9574) 评论(0) 推荐(0)