摘要: 1.导入各种jar包 <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </dependency> <dependency> <gro 阅读全文
posted @ 2020-09-01 22:14 why666 阅读(262) 评论(0) 推荐(0)
摘要: 简单整合一下,Spring+SpringMVC+Mybatis还要在更仔细整合 1.maven下的mybatis.xml <!-- junit进行单元测试--> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> 阅读全文
posted @ 2020-09-01 18:43 why666 阅读(180) 评论(0) 推荐(0)
摘要: 1.使用注解 <!-- 配置方式三:注解--> <!-- 自动代理 默认是使用jdk的代理 false是jdk的,true是cglib通过aop命名空间的<aop:aspectj-autoproxy />声明自动为spring容器中那些配置@aspectJ切面的bean创建代理,织入切面。--><a 阅读全文
posted @ 2020-09-01 16:25 why666 阅读(142) 评论(0) 推荐(0)