摘要: 目标:创建自定义注解,实现切面编程 首先在pom文件加入: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency> 阅读全文
posted @ 2019-05-08 17:23 宇枫 阅读(3321) 评论(0) 推荐(0) 编辑
摘要: @RunWith(SpringRunner.class) @SpringBootTest(classes = DemoApplication.class)//加载启动类 public class TestAnnotation { @Autowired private AnnontationServiceTestImpl a; @Test public ... 阅读全文
posted @ 2019-05-08 16:36 宇枫 阅读(191) 评论(0) 推荐(0) 编辑