![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
文章平均质量分 58
Todd0517
这个作者很懒,什么都没留下…
展开
-
全注解方式整合spring+mybatis模拟springboot整合
实习工作中的项目使用到了springboot。虽然springboot使用简单但是默认配置和注解挺多。如果boot想使用熟练前提要对ssm整合比较熟悉。以前开发习惯使用xml配置文件,但是使用boot后才发现注解才是王道。现在将spring+mybatis使用全注解完成整合,并且配置事务。文件中的注解与Xml进行了比对。直接上代码。@Repositorypublic interface Em原创 2017-10-17 17:29:10 · 3572 阅读 · 0 评论 -
springboot注解
1.@EnableAutoConfiguration类级别注解。@EnableAutoConfiguration(exclude={xxx.class})//禁用xxx类2.@ComponentScan({cn.xx.xx})搜索包下的bean。所有应用程序组件(@Component,@Service,@Repository,@Controller等)将自动注册为Spring Bean。3原创 2017-09-30 09:31:16 · 1515 阅读 · 0 评论