摘要: 实际开发中,html页面不建议放在static目录下,而是放在templates目录中。 一般使用spring boot默认为我们创建的static目录来放置css、图片、js等静态资源即可。但templates目录的资源默认是受保护的,没有开放访问权限。这是因为templates文件夹,是放置模板 阅读全文
posted @ 2022-03-16 14:14 阿杰swot 阅读(2492) 评论(0) 推荐(0) 编辑
摘要: 报错如下: 目录如下: 错误原因:日志显示是找不到studentMapper.xml 的Mapper配置文件,但是根据目录查看没有问题。 最终了解到idea编辑的时候,不会自动编译src的java目录的xml文件。 解决思路:将IDEA maven项目中src源代码下的xml等资源文件编译进clas 阅读全文
posted @ 2022-03-11 15:16 阿杰swot 阅读(665) 评论(0) 推荐(0) 编辑
摘要: 连接Redis出现报错 (error) MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the d 阅读全文
posted @ 2022-03-03 16:48 阿杰swot 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1、切换到Oracle用户 su - oracle 2、登录sys用户 sqlplus / as sysdba 3、创建表空间 #查询表空间路径 select name from V$datafile;#查询结果如下: #创建表空间 create tablespace AECIP_CIF dataf 阅读全文
posted @ 2021-08-18 16:46 阿杰swot 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1、vim 进入到文件中 vim 2、查看当前文件格式: : set ff 3、修改文件格式为 liunx: :set ff=unix 阅读全文
posted @ 2021-08-02 14:13 阿杰swot 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 1、什么是JSR-303校验 简而言之,就是对前端传往后端的一个数据格式的验证,列如在前端h5中设置一个一个input的type是email类型,结果输入却不是邮箱类型,就是对该数据的一次校验。 2、常用的校验有那些呢? 空检查 @Null 验证对象是否为null @NotNull 验证对象是否不为 阅读全文
posted @ 2021-07-28 14:43 阿杰swot 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 在vim编辑一个文件后保存退出时,提示can't open file for writing 解决办法如下: 1、检查当前用户时不是root用户,若是不是通过su 切换到root进行尝试。 2、vim编辑有问题的时候,前往/var/tmp路径下会生成一个.swp隐藏文件,将其删除即可,也有可能在当前 阅读全文
posted @ 2021-07-26 14:36 阿杰swot 阅读(2714) 评论(0) 推荐(0) 编辑
摘要: 目录: 这是我报的错误: 报错的原因是: idea不会编译src的java目录的xml文件 所以解决思路就是:将IDEA maven项目中src源代码下的xml等资源文件编译进classes文件夹 具体操作方法就是:配置maven的pom文件配置,在节点下添加代码: <resources> <res 阅读全文
posted @ 2021-07-08 11:56 阿杰swot 阅读(257) 评论(1) 推荐(0) 编辑
摘要: 解决办法: 导入以下依赖就可以实现jstl。 <!-- https://mvnrepository.com/artifact/javax.servlet/jstl --> <dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</ 阅读全文
posted @ 2021-07-06 11:26 阿杰swot 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Spice up your java: Automatic Resource Management, automatic generation of getters, setters, equals, hashCode and toString, and more! lombok依赖: <!-- h 阅读全文
posted @ 2021-06-23 10:49 阿杰swot 阅读(483) 评论(0) 推荐(0) 编辑