
SpringBoot
刘大铿
前端
展开
-
解决springBoot 的templates中html引入css文件失败
我的情况是网页打开没有css效果文件结构:解决办法一:修改路径(springBoot已经默认静态资源在static文件夹)只需href=“css/你的.css”解决办法二:增加配置文件原创 2020-07-22 13:07:07 · 4178 阅读 · 3 评论 -
This application has no explicit mapping for /error, so you are seeing this as a fallback.报错解决
springBoot报错是这样的解决办法:类上面加上@RestController注解然后就能正常访问页面如果对你有用的话,可以点个赞,让更多为bug苦恼的人看到这文章,谢谢!...原创 2020-07-20 15:03:12 · 58586 阅读 · 5 评论 -
解决thymeleaf 现 There was an unexpected error (type=Internal Server Error, status=500).
若你运行springboot在网页中出现如下错误那一定是你忘写<html lang="en" xmlns:th="http://www.thymeleaf.org">或者说漏写或写错,如果还不错,给个赞支持一下呗...原创 2019-03-23 15:15:22 · 61224 阅读 · 19 评论 -
SpringBoot jsp 中文乱码解决方法
在jsp文件上记得加原创 2019-03-21 11:12:03 · 2225 阅读 · 3 评论 -
idea构建SpringBoot+JSP
springBoot的构建我就不多说了1.构建JSP选择File——>Project Structure——>Modules,对web模块进行设置,将资源目录的位置设置为刚刚新建的webapp目录。如果没有web模块,可以点击加号添加一个web模块,然后对其进行设置。webapp目录就成为了我们页面资源的访问根目录。并且此时就可以直接通过右键直接新建jsp文件了。详...原创 2019-03-20 12:58:46 · 144 阅读 · 0 评论 -
spring boot configuration annotation processor not found in classpath
(1)在pom.xml配置文件中加入下面的代码:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifactId> <optional&...原创 2019-03-17 14:48:59 · 166 阅读 · 0 评论 -
idea报错 org.junit.ComparisonFailure: Expected : Actual :
明显的中文乱码问题改一下设置就好file->settings->File-Encoding改成如下原创 2019-03-17 14:25:01 · 7549 阅读 · 1 评论 -
SpringBoot常用注解(一)
1.@Entity:对实体注释。任何Hibernate映射对象都要有这个注释@Id声明此属性为主键。该属性值可以通过应该自身创建,但是Hibernate推荐通过Hibernate生成@GeneratedValue指定主键的生成策略。有如下四个值 TABLE:使用表保存id值 IDENTITY:identitycolumn ...原创 2019-03-04 21:16:36 · 802 阅读 · 0 评论 -
@ConfigurationProperties报错
idea报错如下:Not registered via @EnableConfigurationProperties or marked as Spring component less... (Ctrl+F1)Inspection info: Verifies @ConfigurationProperties setup. New in 2018.3解决方法:加上@Component注...原创 2019-02-20 11:36:35 · 4886 阅读 · 0 评论 -
Mysql最新最快安装
1.首先,先去官网下载MySQL安装包https://dev.mysql.com/downloads/mysql/现在用的基本都是Win10系统的,下载以下文件2.下载完后将他解压到C:\web里面(首先自己先建一个web文件夹)3.新建my.ini文件夹,在里面写入以下配置4.mysql初始化,以管理员权限打开cmd命令窗口,,切换到”C:\Program F...原创 2019-02-23 16:50:10 · 840 阅读 · 0 评论