05 2020 档案

摘要:yaml:是以数据为中心的配置,比json,xml等更适合做配置文件 例如:端口号 yml : server: port:8080 代码展示配置文件注入属性值 @ConfigurationProperties(prefix="person") // 将本类中的所有属性和配置文件中的相关配置进行绑定 阅读全文
posted @ 2020-05-27 14:53 baoshang 阅读(845) 评论(0) 推荐(0)
摘要:字段映射问题 (实体类 xml) 阅读全文
posted @ 2020-05-12 16:44 baoshang 阅读(151) 评论(0) 推荐(0)
摘要:e.preventDefault(); is not a funcartion 命名重复 阅读全文
posted @ 2020-05-12 16:43 baoshang 阅读(205) 评论(0) 推荐(0)
摘要:public String er(@RequestParam("file") MultipartFile file){ List objects = ExcelImportUtil.importExcel(file.getInputStream(), String.class, new Import 阅读全文
posted @ 2020-05-06 20:10 baoshang 阅读(113) 评论(0) 推荐(0)
摘要:@RestController注解等价于@ResponseBody + @Controller。@RestController和@Controller的共同点是都用来表示Spring某个类是否可以接收HTTP请求,二者区别: @RestController无法返回指定页面,而@Controller可 阅读全文
posted @ 2020-05-06 15:51 baoshang 阅读(399) 评论(0) 推荐(0)