摘要: @GetMapping("/car/{id}/owner/{username}") public Map<String, Object> getCar( //路径变量 @PathVariable("id") Integer id, @PathVariable("username") String u 阅读全文
posted @ 2021-10-07 17:42 xl4ng 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 1、新建类 @Data @Component @ConfigurationProperties(prefix = "person") public class Person { private String userName; private Boolean boss; private Date b 阅读全文
posted @ 2021-10-07 11:22 xl4ng 阅读(102) 评论(0) 推荐(0) 编辑