![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
Ethan9987
这个作者很懒,什么都没留下…
展开
-
@Value注解注入报错 Parameter 1 of constructor in XXX required a bean of type ‘XXX‘ that could not be found
报错信息Description:Parameter 1 of constructor in xxx required a bean of type 'java.lang.Boolean' that could not be found.Action:Consider defining a bean of type 'java.lang.Boolean' in your configuration.报错原因: @Value注解依赖无参构造函数,而我在类上加了@AllArgsConstru原创 2022-04-21 10:32:11 · 4481 阅读 · 0 评论 -
SpringMVC表单中文乱码记录 javaconfig、xml
学习springMVC 解决乱码的两种配置方式 ,用于记录JavaConfig 方式:参考public class dispatcherServlet extends AbstractAnnotationConfigDispatcherServletInitializer { @Override protected Class<?>[] getRootConfi...原创 2019-04-28 08:58:42 · 119 阅读 · 0 评论 -
spring事务配置 java 注解配置
使用纯java配置类配置spring事务管理本文用的是经典的银行转账的例子…SpringConfig.java 配置类package com.cangwu.config;import org.springframework.context.annotation.*;@Configuration@ComponentScan("com.cangwu")@PropertySource(...原创 2019-05-05 21:55:32 · 306 阅读 · 0 评论 -
themyleaf 实现默认选择单选框所遇到的问题
想实现的功能 :员工性别单选框默认勾选男/女默认为男生:默认为女生:使用thymeleaf的th:if 当条件不存在时 单选框会消失。。:性别<input type="radio" name="sex" value="男" checked>男<input type="radio" name="sex" value="女" th:if="${estaff.sex} e...原创 2019-05-12 07:44:00 · 1828 阅读 · 1 评论 -
记springboot yml配置 logging.level 报错解决
logging: config: classpath:spring-logback.xml pattern: console: "%d - %msg%n" level: info直接写 level: info 会报错:org.springframework.boot.context.properties.bind.BindException: Failed to bind...原创 2019-05-30 10:11:49 · 20436 阅读 · 4 评论 -
SpringSecurity 修改密码实现 Encoded password does not look like BCrypt 错误
创建账号时使用的是 new BCryptPasswordEncoder().encode(password)加密了密码解密时同样使用BCryptPasswordEncoderpublic int updateAccountPassword(Account account, String newPassword) { // 查询旧密码 Account oldaccount = a...原创 2019-08-26 14:57:46 · 3308 阅读 · 0 评论