Springboot开发常用注解说明(Continuous Up

2018-06-08  本文已影响0人  李2牛
  1. @Mapper :是mybatis的注解,注明是一个 mapper接口
  2. @ControllerRestController
  1. @Repository: spring注解,说明是一个dao访问的类或者接口
  2. @Component:使用注解需要将类申明被扫描为一个bean,可以使用@Component 注解
    5.@Service: 标注为service
  3. @PropertySource: 引入一个属性文件
上一篇 下一篇

猜你喜欢

热点阅读