- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 springboot使用Result风格采坑:Request method 'DELETE' not supported
我们知道传统风格 删除:/deleteCategory?id=123 GETRestful风格 删除:/categories/123 DELETE通过js将方法改为delete。使用@DeleteMapping("/categories/{id}")确定映射,传参时还是习惯的用int id,结果就报Request method ‘DELETE’ not supported,经过一阵折...
2019-12-31 17:27:54
4058
原创 No compiler is provided in this environment . Perhaps you are running on a jre rather than a JDK?
今天将一个springboot项目打包成一个war包,一直报错:No compiler is provided in this environment . Perhaps you are running on a jre rather than a JDK?然而我已经在eclipe中将编译环境设置为jdk,而不是jre运行一直报错,改Maven的setting.xml也没用,最后试了一天,...
2019-12-29 16:52:52
214
原创 how2j自学仿天猫springboot版踩坑记录之建数据库-数据库关键字不能做表名
做该项目的第一天,开始建表,以下是我写的sql语句create table order( id int(11) not null auto_increment, orderCode varchar(255) default null, address varchar(255) default null, post varchar(255) default null, receive...
2019-12-27 13:58:07
317
原创 SSM+Maven多模块时pom.xml中添加了依赖,运行时仍然找不到依赖模块的类解决
今天做一个SSM+Maven多模块的项目时,pom.xml中添加了依赖,但还是无法引用,我的项目结构为:其中Crowdfuning-main是war工程,Crowdfuning-parent是pom工程,其他为子工程。Crowdfuning-main的依赖项目是剩下的所有jar工程,依赖显示有但是运行时就没用,试了好多方法,都没用,偶然灵光一闪,解决了,方法如下:首先右击Crowdfun...
2019-10-09 15:19:48
2274
原创 SSM中配置了事务控制但没生效
今天在使用ssm事务时,发现方法报错,事务没有回滚,弄了半天,终于解决,下面记录一下 ,本人是使用编程式事务,即使用配置文件 的方式。包结构,下面是springmvc.xml配置文件spring配置文件:applicationContext.xml首先我们明确spring进行扫描注入时,因为spring的context是父子容器,ContextLoaderListener监听器加载sp...
2019-09-29 12:02:54
350
原创 eclipse+maven搭建自己web系统的骨架
创建maven工程勾选上Create a simple projeect右键点击项目,单击properties勾选Dynamic web module,之后单击下面Further configuration available如下进行修改创建成功。...
2019-09-05 15:18:26
289
原创 java 遍历时可修改的容器:CopyOnWriteArrayList
java 遍历时可修改的容器:CopyOnWriteArrayList// 遍历集合时移除元素 import java.util.ArrayList;import java.util.List; public class Main { public static void main(String[] args) { List<Integer> lis...
2019-08-02 12:41:14
361
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人