springboot
墙角的哈士奇
这个作者很懒,什么都没留下…
展开
-
HttpRequestMethodNotSupportedException: Request method ‘POST‘ not supported解决方法
(一)问题描述在进行springboot的Restful风格的CRUD的学习时,需要实现restfull风格的删除操作,以delete方式提交,最后发现依然是以post方式提交。因此出现了“Request method 'POST' not supported”问题。(二)所写的代码我的controller代码是://员工删除 @DeleteMapping("/emp/{id}") public String deleteEmployee(@PathVariable("id原创 2020-09-23 17:17:16 · 23809 阅读 · 4 评论 -
webjars
什么是WebJars什么是WebJars?WebJars是将客户端(浏览器)资源(JavaScript,Css等)打成jar包文件,以对资源进行统一依赖管理。WebJars的jar包部署在Maven中央仓库上。为什么使用我们在开发Java web项目的时候会使用像Maven,Gradle等构建工具以实现对jar包版本依赖管理,以及项目的自动化管理,但是对于JavaScript,Css等前端资源包,我们只能采用拷贝到webapp下的方式,这样做就无法对这些资源进行依赖管理。而spring boot原创 2020-09-09 18:23:24 · 546 阅读 · 0 评论 -
由于Thymeleaf版本不匹配,使得springboot项目出错
首先我们要知道,springboot要使用Thymeleaf,需要在pom.xml添加以下的代码,以引入Thymeleaf<!--引入thymeleaf--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifact原创 2020-09-08 17:06:57 · 284 阅读 · 0 评论