摘要: ##一、准备 ###1.pom.xml引入easyexcel依赖 <dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> <version>2.2.9</version> </dependency> 阅读全文
posted @ 2023-03-30 16:21 AboutChristopher 阅读(159) 评论(0) 推荐(0) 编辑
摘要: ##1.MobaXterm工具 ###(1).连接远程服务器 点击OK输入密码(密码不会显示)然后回车进入控制台 ###(2).MobaXterm界面 此时可以通过Linux命令来操作控制台 ##2.前端部署 ###(1).修改服务端地址 前端工程config/config.ts修改服务端地址并保存 阅读全文
posted @ 2022-12-19 16:52 AboutChristopher 阅读(813) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-09-26 16:39 AboutChristopher 阅读(7) 评论(0) 推荐(0) 编辑
摘要: ###1.引入AOP依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-aop</artifactId> </dependency> ###2.创建日志记录表 DROP 阅读全文
posted @ 2022-09-26 14:26 AboutChristopher 阅读(518) 评论(0) 推荐(0) 编辑
摘要: ###1.自定义一个异常类: public class RuleException extends RuntimeException { private static final long serialVersionUID = -8624533394127244753L; public RuleEx 阅读全文
posted @ 2022-09-26 14:03 AboutChristopher 阅读(473) 评论(0) 推荐(0) 编辑
摘要: ###Mybatis的sql是写在xml映射文件中的,如果sql中有一些特殊的字符,在解析xml文件的时候会被转义,使用<![CDATA[ ]]>就可以让这些特殊字符不被转义。 ###<![CDATA[ ]]>是xml的语法,放在CDATA[]内部的特殊字符都会被解析器忽略,所以在我们使用<if t 阅读全文
posted @ 2022-01-11 14:03 AboutChristopher 阅读(1106) 评论(0) 推荐(0) 编辑
摘要: ##springboot初始化报错: Failed to instantiate [XXX]: Specified class is an interface ###我是因为另外一个模块的包中有一个同名的xxxDao接口才报的错,修改一下接口名字即可 阅读全文
posted @ 2022-01-07 16:57 AboutChristopher 阅读(1045) 评论(0) 推荐(0) 编辑
摘要: ##点击redis-server.exe闪退解决办法 ###1.进入到安装redis的根目录然后打开命令行窗口 ###2.输入redis-server.exe命令 redis-server.exe 此时报错:[9796] 07 Jan 16:39:52.515 # QForkMasterInit: 阅读全文
posted @ 2022-01-07 16:52 AboutChristopher 阅读(894) 评论(0) 推荐(0) 编辑
摘要: ##Springboot集成jsp ###1.resources同级目录下创建webapp文件夹,将webapp设置为web资源目录 ###2.jsp文件放在webapp目录下 ###3.pom.xml文件中引入需要用到的依赖 <!--引入springboot内嵌Tomcat对jsp的解析包,不添加 阅读全文
posted @ 2022-01-07 13:33 AboutChristopher 阅读(123) 评论(0) 推荐(0) 编辑
摘要: #Spring声明式事务配置 ##一、事务管理的目的 ###事务管理是为了保证数据的完整性和一致性 ##二、事务的特性 ###1、原子性(atomicity) 事务是原子性操作,由一系列动作组成,事务的原子性确保动作要么全部完成,要么完全不起作用 ###2、一致性(consistency) 一旦所有 阅读全文
posted @ 2021-12-31 17:04 AboutChristopher 阅读(414) 评论(0) 推荐(0) 编辑