Eable 注解

Spring 中 Enable 注解:

org.springframework.cache.annotation.EnableCaching
org.springframework.context.annotation.aspectj.EnableSpringConfigured
org.springframework.context.annotation.EnableAspectJAutoProxy
org.springframework.context.annotation.EnableLoadTimeWeaving
org.springframework.context.annotation.EnableMBeanExport
org.springframework.jms.annotation.EnableJms
org.springframework.scheduling.annotation.EnableAsync
org.springframework.scheduling.annotation.EnableScheduling
org.springframework.transaction.annotation.EnableTransactionManagement
org.springframework.web.reactive.config.EnableWebFlux
org.springframework.web.servlet.config.annotation.EnableWebMvc
org.springframework.web.socket.config.annotation.EnableWebSocket
org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker
org.springframework.test.context.junit.jupiter.EnabledIf

SpringBoot 中的 Enable 注解:

org.springframework.boot.autoconfigure.EnableAutoConfiguration
org.springframework.boot.context.properties.EnableConfigurationProperties
org.springframework.boot.groovy.EnableGroovyTemplates

SpringDataJPA 中的 Enable 注解:

org.springframework.data.web.config.EnableSpringDataWebSupport
org.springframework.data.jpa.repository.config.EnableJpaAuditing
org.springframework.data.jpa.repository.config.EnableJpaRepositories
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容