| 注解 | 使用位置 | 說明 |
| --- | --- | --- |
| @RequestBody | 方法參數前 | 常用來處理 application/json、application/xml 等 Content-Type 類型的數據,意味著 HTTP 消息是 JSON/XML 格式,需將其轉化為指定類型參數 |
| @PathVariable | 方法參數前 | 將URL 獲取的參數映射到方法參數上 |
| @Bean | 方法上 | 聲明該方法的返回結果是一個由 Spring 容器管理的Bean |
| @ResponseBody | 方法上 | 通過適當的 HttpMessageConverter 將控制器中方法返回的對象轉換為指定格式(JSON/XML)后,寫入 Response 對象的body數據區 |
- 環境配置
- window怎么配置java環境變量?
- Java基礎語法
- Java中的數據類型
- Java中的JSONObject
- Java高級特性
- Maven
- jib-maven-plugin
- 什么是Spring Boot 的 parent pom?
- maven中各個生命周期的含義
- Spring Boot
- maven與spring boot 的關系
- 配置文件
- application-properties配置文件
- Spring Boot 的啟動
- spring boot項目如何啟動?
- 列舉一下Spring Boot的啟動過程
- SpringApplication.run方法
- Spring Boot 啟動時有哪些接口?
- CommandLineRunner
- Spring Boot 的常用注解
- 系統注解
- 表格:系統注解
- @Override
- @Deprecated
- @SuppressWarnnings
- 使用在類名上的注解
- 表格:使用在類名上的注解
- @RestController
- @Controller
- @Service
- @Repository
- @Component
- @Configuration
- @Resource
- @Autowired
- @RequestMapping
- @PostMapping
- @GetMapping
- @Transactional
- @Qualifier
- 使用在方法上的注解
- 表格:使用在方法上的注解
- @RequestBody
- @PathVariable
- @Bean
- @ResponseBody
- @PreAuthorize
- 其他常用注解
- 表格:其他常用注解
- @EnableAutoConfiguration
- @SpringBootApplication
- @EnableScheduling
- @EnableAsync
- @ComponentScan
- @Aspec
- @ControllerAdvice
- @ExceptionHandler
- @Value
- @ConfigurationProperties
- @EnableConfigurationProperties
- @MapperScan
- Validator驗證的常用注解
- spring IoC容器
- Spring IoC容器依賴注入實現方式
- MyBatis
- paginationInterceptor
- @TableName
- @TableId
- @Param
- UrlBasedCorsConfigurationSource
- Lombok
- @Data
- @Slf4j
- @EqualsAndHashCode
- @Accessors
- 支付系統
- 1. 初始化mysql數據庫流程
- 2. 初始化redis數據庫的流程
- 3. 初始化rabbitmq服務