随笔分类 -  spring boot

摘要:在切面的注解中使用@Within代替@Annotation。例如: @Before("@annotation(DataSource)") 其中DataSource为自定义注解 改为 @Before("@within(DataSource)") ps: @within:用于匹配所有持有指定注解类型内的 阅读全文
posted @ 2021-07-22 15:29 朝暮的小知识 阅读(1754) 评论(0) 推荐(0)
摘要:spring boot 2.x 集成durid需要将durid升级到1.1.10。 <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-starter</artifactId> <version>1.1. 阅读全文
posted @ 2020-05-19 15:24 朝暮的小知识 阅读(1894) 评论(0) 推荐(1)