摘要: @Mapper,最终 Mybatis 会有一个拦截器,会自动的把 @Mapper 注解的接口生成动态代理类。当然,前提是,映射器(Mapper.xml)必须满足动态代理的条件:1.namespace与接口的全限定类名相同2.id名与接口中方法名一致 <?xml version="1.0" encod 阅读全文
posted @ 2022-04-28 22:24 ascertain 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 配置类: package us.transcode.thymeleaf.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configur 阅读全文
posted @ 2022-04-28 22:11 ascertain 阅读(29) 评论(0) 推荐(0) 编辑
摘要: MVC: package us.transcode.thymeleaf.exception; import org.springframework.stereotype.Component; import org.springframework.web.servlet.HandlerExceptio 阅读全文
posted @ 2022-04-28 21:44 ascertain 阅读(145) 评论(0) 推荐(0) 编辑
摘要: spring: datasource: type: com.alibaba.druid.pool.DruidDataSource url: jdbc:mysql://localhost:3306/thymeleaf?characterEncoding=UTF-8 driver-class-name: 阅读全文
posted @ 2022-04-28 21:39 ascertain 阅读(33) 评论(0) 推荐(0) 编辑
摘要: <!-- https://mvnrepository.com/artifact/com.github.ulisesbocchio/jasypt-spring-boot-starter --> <dependency> <groupId>com.github.ulisesbocchio</groupI 阅读全文
posted @ 2022-04-28 18:04 ascertain 阅读(103) 评论(0) 推荐(0) 编辑
摘要: ${AnsiColor.BRIGHT_GREEN} ${AnsiStyle.BOLD} _______ _______ _ __________________ _______ _______ _______ ( ____ \( ___ )( ( /|\__ __/\__ __/( ____ \|\ 阅读全文
posted @ 2022-04-28 17:17 ascertain 阅读(31) 评论(0) 推荐(0) 编辑