Springboot项目
BOWWOB
社畜
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
拦截器 异常处理页面 AOP
templates下建error包,建立404 和 500 对应名称就是对应错误的页面会自动定位原创 2021-04-30 11:21:37 · 185 阅读 · 0 评论 -
maven的环境变量配置流程
1.右键计算机属性①高级系统设置②环境变量2.MAVEN_HOME(填入进入jdk的文件夹中bin文件的父文件,也就是刚好看得见bin文件的时候的文件,然后复制路径)E:\lms_help\apache-maven-3.3.93.classpath 加入;%MAVEN_HOME%\bin4.path添加%MAVEN_HOME%\bin5.打开cmd直接输入mvn -version输出版本信息即为正确...原创 2020-12-19 21:24:40 · 182 阅读 · 1 评论 -
Spring boot maven项目 准备+启动
1.创建maven项目(next next next)2.右右右击项目名 ,点击 JBLJavaToWeb效果:增加了webapp包3.file -> Build, Execution , Deployment -> Build Tools 下的 Maven Runner右边小框中VM(加上下面这句,如果本地仓库没有依赖包,从远处爬取):-DarchetypeCatalog=internal -Dfile.encoding=UTF-84.pom.xml 中带上这两句<原创 2020-12-18 14:49:57 · 223 阅读 · 0 评论 -
论坛项目中评论的产生以及@父评论以及树状评论回显
回复:setparentcommment //回复时 +setparentcomment + 局部刷新 回显 @PostMapping("/comments") public String post(Comment comment, HttpSession session) { Long blogId = comment.getBlog().getId(); comment.setBlog(blogService.getBlog(blogId));原创 2020-07-01 13:09:41 · 454 阅读 · 0 评论 -
论坛项目中的标题重复的算法问题-最长连续公共子串
存储最长字串的信息类:(由于我的需求不需要获取具体字串所以后面不会获取到,仅仅定义而已)public class CommonResult { private String commonStr; private int commonCount; private int length; public CommonResult() { } public int getLength() { return length; }原创 2020-07-01 11:47:01 · 226 阅读 · 0 评论 -
标题重复率-最长连续公共子字串
参考1自https://www.cnblogs.com/Springtie/p/4068964.html参考2自https://blog.youkuaiyun.com/ten_sory/article/details/79857531原创 2020-07-01 03:38:59 · 194 阅读 · 0 评论 -
Spring boot论坛项目中用到的各种东西
ORM思想 JDBC规范 hibernate Jpa规范 Spring Data Jpaspring data jpa JpaSpecificationExecutor分析JPA多条件查询+分页+局部刷新添加JPA多条件查询使用匿名内部类—java 测试 内部类+匿名内部类关于Spring data JPA中的onetomore 的级联操作JPQL简单使用 JPA 笔记Spring Data jpa springmvc项目中的各种注解java注解简单原创 2020-06-28 20:19:46 · 179 阅读 · 0 评论
分享