注解含义(主要针对spring)

一、为什么要用注解?

  • 方便快捷
  • 灵活使用,代码简洁清晰
  •   。。。。。

二、注解的含义

注解 含义
@Profile
org.springframework.context.annotation
指定组件在spring 的哪个环境下才能够加载。对应的是 
spring.profiles.active
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
原文地址:https://www.cnblogs.com/chengyangyang/p/12105770.html