摘要: 转载:https://blog.csdn.net/what_do_you_want/article/details/85109028 阅读全文
posted @ 2022-06-01 11:35 L12345 阅读(88) 评论(0) 推荐(0) 编辑
摘要: pom文件添加以下代码 <build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> <resour 阅读全文
posted @ 2022-03-28 22:22 L12345 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 报错信息 Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program 原 阅读全文
posted @ 2020-04-17 19:39 L12345 阅读(665) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/liuhongfeng/p/4177835.html 阅读全文
posted @ 2020-04-01 23:38 L12345 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 查看:https://blog.csdn.net/chachapaofan/article/details/88697452 阅读全文
posted @ 2020-03-31 10:00 L12345 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 属性上添加注解:@JSONField(format="yyyy-MM-dd HH:mm:ss") import com.alibaba.fastjson.annotation.JSONField; /** * 创建时间 */ @JSONField(format="yyyy-MM-dd HH:mm:s 阅读全文
posted @ 2020-03-26 13:37 L12345 阅读(1017) 评论(0) 推荐(0) 编辑
摘要: 方法加上@Transactional 注解,手动数据回滚 TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); 遇到的两个问题: 1. org.springframework.transaction.NoTran 阅读全文
posted @ 2020-03-26 11:29 L12345 阅读(5393) 评论(1) 推荐(3) 编辑
摘要: redis命令参考大全:http://redisdoc.com/index.html 1.上官网下载redis上传到linux并解压 tar zxvf redis-5.0.8.tar.gz 2.进入解压后的目录下进行编译、安装 未安装gcc的先装gcc yum install gcc -c++ 编译 阅读全文
posted @ 2020-03-25 21:46 L12345 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 一、解决跨域、过虑options请求问题 1.创建过虑类 import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import javax.se 阅读全文
posted @ 2020-03-24 23:56 L12345 阅读(3070) 评论(0) 推荐(0) 编辑
摘要: 1.浏览器随便打开一个网站,F12打开控制台 2.输入请求代码回车 $.ajax({ url:"http://localhost:8080/sys/topHotNews/update",//发送的路径 type:"post",//发送的方式 data:'{"newsId":"5","type":"1 阅读全文
posted @ 2020-03-24 01:31 L12345 阅读(5368) 评论(0) 推荐(1) 编辑