springboot
SpringBoot学习使用记录
ETL_JJKING
在脱发的路上越走越远~....走越远~.....越远~........远~
展开
-
Error resolving template [index], template might not exist or might not be accessible by any of the
在pom.xml中将资源释放就可以了原创 2020-05-06 09:25:10 · 268 阅读 · 0 评论 -
Eclipse新建SpringBoot项目启动test报错...Could not find an 'annotation declaring class' for annotation type
16:46:36.416 [main] DEBUG org.springframework.test.context.junit4.SpringJUnit4ClassRunner - SpringJUnit4ClassRunner constructor called with [class cn.jjking.dao.UserMapperTest] 16:46:36.419 [main] DEB...原创 2019-12-28 16:52:47 · 3288 阅读 · 0 评论 -
SpringBoot error页面实现方式
自定义静态error页面方法 在resource/templates下添加error.html页面,springBoot会自动找到该页面作为错误页面,适合内嵌Tomcat或者war方式。 SpringBoot使用的前端框架模板不同,页面的名称也有所不同: 实现Spring的View接口的Bean,其ID需要设置为error(由Spring的BeanNameViewResolver所解析); 如果...原创 2019-12-26 10:34:40 · 260 阅读 · 0 评论 -
org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as expression: "row-1,colu...
报错信息 org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as expression: “row-1,column],[row-1,column-1],[row-1,column+1],[row,column-1],[row,column+1],[row+1,column+1],[row+1,column-...原创 2019-12-13 10:59:08 · 360 阅读 · 1 评论 -
springboot项目服务器脚本方式部署
前言 springBoot项目创建部署方式在我的上一篇文章springboot项目搭建+发布到服务器(idea版本)中已经说明,接下来谈一下使用脚本的方式进行服务器端springBoot项目的管理,由于springboot项目不熟的是jar包方式(当然也有war包的形式,再次不做赘述),所以不能和传统的tomcat中的一样直接运行,于是就自己写了一个脚本管理jar包(注:两个版本,前者较为正式,后...原创 2019-12-12 11:28:32 · 350 阅读 · 0 评论 -
springboot项目搭建+发布到服务器(idea版本)
一、创建项目流程 过程比较简单,按照前四张图一步一步来就可以了 二、创建一个controller测试 代码如下: @RestController @RequestMapping("hello") public class Hello { @RequestMapping("hello") public String hello() { return "hello...原创 2019-12-12 10:51:23 · 729 阅读 · 0 评论