Skip to main content

2 posts tagged with "Spring Boot"

View All Tags

· 8 min read
何轲

上手Spring Boot很简单,写好类打上@Controller、@Service注解,前者再用@Autowire把后者导入,然后只在Service类中写业务逻辑代码即可。为了方便获取前端参数并简化代码,我们需要在Controller方法形参列表中加上参数注解,让Spring Boot自动把前端参数封装成对应的对象。那么,Spring Boot提供的常用参数注解有哪些呢?