摘要: 创建项目的时候,开启热部署 参考: https://www.cnblogs.com/scorpio-xinghen/p/11660203.html 1、maven 添加 <dependency> <groupId>org.springframework.boot</groupId> <artifac 阅读全文
posted @ 2020-07-20 21:50 市丸银 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 参考文档 https://www.cnblogs.com/msi-chen/p/10974009.html#_label1_0 一、准备工作 1、导包 或 创建项目时勾选 <dependency> <groupId>org.thymeleaf</groupId> <artifactId>thymel 阅读全文
posted @ 2020-07-20 19:57 市丸银 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 看源码 WebMvcAutoConfiguration.java 优先级:访问:localhost:8080/ resources > static >public 关闭模板缓存 spring: thymeleaf: cache: false https://www.cnblogs.com/wt70 阅读全文
posted @ 2020-07-20 19:14 市丸银 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 一、优先级 1、文件路径 file:./config/ file:./config/*/ file:./ classpath:/config/ classpath:/ 2、优先级 二、配置不同的开发环境 application.yml spring: profiles: active: online 阅读全文
posted @ 2020-07-20 17:41 市丸银 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 官方文档 https://docs.spring.io/spring-boot/docs/2.3.1.RELEASE/reference/html/spring-boot-features.html#boot-features-external-config-yaml 一、基础 1、注意事项 key 阅读全文
posted @ 2020-07-20 17:17 市丸银 阅读(162) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/zhihaospace/p/12342622.html 配置失败用空再试 一、maven <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/PO 阅读全文
posted @ 2020-07-20 11:33 市丸银 阅读(139) 评论(0) 推荐(0) 编辑
摘要: json字符串 一、基础 1、序列化 对象->字符串 python dumps() js string** 2、反序列化 字符串->对象 python loads() js parse 二、jackson mvaen依赖 <dependency> <groupId>com.fasterxml.jac 阅读全文
posted @ 2020-07-20 07:41 市丸银 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 一、正常乱码过滤器 web.xml <filter> <filter-name>encoding</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <in 阅读全文
posted @ 2020-07-20 07:29 市丸银 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 非resful格式 传递普通参数 @GetMapping("/t1") public String test(@RequestParam("name") String name, Model model){ System.out.println(name); model.addAttribute(" 阅读全文
posted @ 2020-07-20 07:16 市丸银 阅读(134) 评论(0) 推荐(0) 编辑