Spring、SpringMVC、Spring Boot 中的注解
Spring SpringMVC Spring Boot 大约 1011 字Spring
core
@Order
AOP
@EnableAspectJAutoProxy
依赖注入
@Autowired
@Value
@Qualifier
@Primary
组件和扫描
@Component
@Controller
@Service
@Repository
@Bean
@ComponentScan
@Import
@ImportResource
@Lazy
@Scope
配置
@Configuration
@Conditional
@Profile
@PropertySource
事务
@EnableTransactionalManagement
@Transactional
事件
@EventListener
异步
@EnableASync
@Async
调度
@EnableScheduling
@Scheduled
SpringMVC
Mapping
@RequestMapping
@GetMapping
@PostMapping
REST
@RestController
@RequestBody
@ResponseBody
@ResponseStatus
:HTTP
的请求头中的status
参数
@PathVariable
@RequestParam
@RequestHeader
@CookieValue
统一处理
@RestControllerAdvice
@ControllerAdvice
@ExceptionHandler
转换和格式化
@DateTimeFormat
@NumberFormat
跨域
@CrossOrigin
Spring Boot
Auto
@SpringBootApplication
@EnableAutoConfiguration
@SpringBootConfiguration
Properties
@EnableConfigurationProperties
:开启解析自动配置@ConfigurationProperties
:属性配置类
Conditional
@ConditionalOnClass
:存在指定的Class
@ConditionalOnMissingBean
:不存在指定的Bean
@ConditionalOnProperty
:配置了指定的属性
阅读 988 · 发布于 2021-12-30
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
使用 ffmpeg 合并无声视频和音频阅读 2846
-
JVM:类加载器阅读 699
-
Android 使用 CountDownTimer 类进行倒计时阅读 1679
-
使用 LuaRocks 管理 Lua 依赖阅读 3288
-
Kubernetes 数据存储 PV 和 PVC阅读 942
-
微信小程序开发环境调试接口阅读 3414
-
Git 提示 error failed to push some refs to git@github.com阅读 2889
-
Oracle 取最近 10 条数据阅读 935
-
为什么 ArrayList 父类中已经实现了 List 接口,自身也实现了 List 接口阅读 895
-
MySQL Explain 中的 key_len阅读 1446