@SpringBootApplication
:@Configuration
:@Value
:@ConfigurationProperties(preifx="xxx")
:下面的属性根据配置文件中变量名或方法名自动注入@ComponentScan
:自动扫描本包下面的东西@Bean
:如果类没有@Configuration
会有很大的区别,据说是多例,如果有的话就是生成一个代理对象。@RestController
:@Controller
:@ResponseBody
:@RequestBody
:@MapperScan
:扫包@Runwith(SpringRunner.class)
@SpringBaootTest
@RequestMapping
@GetMapping
@DeleteMapping
PostMapping
PutMapping
修改@PathVariable
@PointCut
@Aspect
@ComponentScan
@Autowired
@Resource
@After
@Before
@Around
@Scope
@EnableScheduling
@Scheduled
配合上面最定时器@ControllerAdvice
@ExceptionHandler
异常处理.
springboot一些注解
最新推荐文章于 2023-04-09 12:12:32 发布