摘要: 在application.yml文件中配置druid的参数是不会生效的 可以自己创建配置类使用@ConfigurationProperties(prefix="spring.datasource")让其生效 @Configuration public class DruidConfig { @Con 阅读全文
posted @ 2020-10-05 17:57 黑咖啡小调 阅读(661) 评论(0) 推荐(0)
摘要: 使用的thymeleaf模板引擎,默认前端无法获取message和exception 想要在前端获取到message和exception,配置一下配置 server.error.include-exception=trueserver.error.include-message=always 接下来 阅读全文
posted @ 2020-10-04 11:16 黑咖啡小调 阅读(727) 评论(0) 推荐(0)
摘要: 使用SpringBoot以Delete请求方式提交删除,报405请求错误 后台显示无法处理该请求在配置文件添加如下配置后正常 spring.mvc.hiddenmethod.filter.enabled=true 阅读全文
posted @ 2020-10-03 20:36 黑咖啡小调 阅读(2687) 评论(0) 推荐(0)