
SpringBoot
文章平均质量分 50
记录了小编学习SpringBoot框架时遇到的一些问题。
zqq_2016
无
展开
-
【Spring Boot+MyBatis】配置generatorMapper.xml自动生成实体类、Mapper和xml文件
前提:先在Navicat中建立数据库及表,并在IntelliJ IDEA中连接数据库。目录1.在Navicat中建立数据库及表2.在IntelliJ IDEA中连接本地数据库3.在pom.xml中添加mysql、mybatis依赖4. 在src/main/resources目录下创建generatorMapper.xml文件5. 在pom.xml中添加mybatis代码自动生成插件6. 配置好maven插件后,重新加载maven7. 单击mybati...原创 2021-12-03 23:04:09 · 4859 阅读 · 0 评论 -
【SpringBoot】web项目中使用免费数字证书配置https(会提示不安全)
国内一些云服务器厂商提供免费的HTTPS证书,一个账号可以申请数个。其中,在jdk中提供了一个Java数字证书管理工具keytool,如下图:在D:\Software\JDK8\jdk\bin目录下的keytool.exe,通过这个工具可以自己生成一个数字证书。1. 使用快捷键“Windows + R”且输入cmd,打开命令行并切换到D:\Software\JDK8\jdk\bin目录d:cd D:\Software\JDK8\jdk\bin2. 使用keytool工...原创 2021-08-27 14:31:18 · 981 阅读 · 0 评论 -
template might not exist or might not be accessible by any of the configured Template Resolvers
问题如下所示:org.thymeleaf.exceptions.TemplateInputException: Error resolving template [userList], template might not exist or might not be accessible by any of the configured Template Resolvers at org...原创 2019-12-09 17:52:28 · 409 阅读 · 1 评论 -
【IDEA】下载安装配置Maven&创建Maven项目(图文教程,一篇解决)
目录1. 开发环境2.下载maven2.1 官网下载2.2 百度云盘下载3. 安装maven3.1 解压3.2 配置环境变量3.3 检验maven是否配置成功4. 在IDEA中配置maven4.1 打开IDEA的设置(Settings)4.2 在IDEA中配置maven4.3 重启IDEA5. 在IDEA中创建maven项目1. 开发环境 操作系统:win10 开发工具:Intellij IDEA2. 下载maven 2....原创 2021-04-18 01:42:11 · 547 阅读 · 0 评论 -
bug解决:Could not initialize Logback logging from logback-spring.xml
在SpringBoot的配置文件中添加如下配置:application.properties:logging.config=classpath:logback-spring.xmlapplication.yml:logging: config: classpath:logback-spring.xml原创 2021-02-03 14:27:31 · 10070 阅读 · 0 评论 -
【SpringBoot】bug解决:Runner org.junit.internal.runners.ErrorReportingRunner
在SpringBoot项目的SpringbootdemoApplicationTests中进行单元测试时,出现Runner org.junit.internal.runners.ErrorReportingRunner (used on class zqq.SpringbootdemoApplicationTests) does not support filtering and will therefore be run completely.的错误。解决:SpringbootdemoAp...原创 2021-01-28 20:28:33 · 1835 阅读 · 0 评论 -
SpringBoot集成JPA配置实体类自动创建表
牢记检查以下四步,我们就可以通过注解的形式配置实体类,来自动创建数据库表。1. pom.xml中引入jpa的包<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</art...原创 2020-03-19 17:28:18 · 2458 阅读 · 0 评论 -
bug解决:URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs
1. 问题描述如下图:2.解决办法:使用快捷键【Ctrl+Alt+S】快速找到Settings,再按如下序号操作即可。原创 2019-12-09 14:31:44 · 208 阅读 · 0 评论 -
SpringBoot中添加Thymeleaf支持以及简单小案例使用
SpringBoot通过org.springframework.boot.autoconfigure.thymeleaf包对Thymeleaf进行自动配置。第一步:在pom.xml文件中添加如下依赖:<dependency> <groupId>org.springframework.boot</groupId> <ar...原创 2019-11-28 15:05:02 · 451 阅读 · 0 评论 -
如何解决IDEA的SpringBoot热部署问题?
关于解决编译器的热部署问题主要是通过springloaded和devtools两种方式。但是,试过springloaded部署的方式之后,我们会发现这种热部署的方式在同一个Controller下同时存在两个方法以及重新加载类文件、特定的构造函数使用模式时,是无法进行热部署的,所以个人建议直接使用devtools方式来进行热部署。 Spring-boot-devtools是...原创 2019-11-19 17:31:27 · 264 阅读 · 0 评论 -
Spring Boot中application.properties的常用配置
#可创建多个application.properties配置文件,然后在主配置文件中选择用哪个spring.profiles.active=dev#配置访问根路径server.context-path=/springboot# ----------------------------------------# CORE PROPERTIES# -------------------...转载 2019-09-25 12:29:48 · 410 阅读 · 0 评论 -
使用IDEA创建一个Spring Boot项目
1. 选择File选项卡,直接新建一个Project.2. 选择左侧的Spring Initializr,并选上自己安装的jdk版本。注意:选择的Default URL需要在有网络的情况下才可以加载,直接Next就可以。3.输入组织名和项目名,组织名的构成是域名的倒写,如果没有可以自行写一个。4.需要构建一个web项目通过访问Controller来验证项目是否成功搭...原创 2019-09-23 14:13:41 · 211 阅读 · 0 评论