![](https://img-blog.csdnimg.cn/20190918135101160.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Spring Boot
深入浅出学习SpringBoot
二次觉醒
路靠自己去走,才能越走越宽。
展开
-
SpringBoot之MySQL连接配置
【代码】SpringBoot之MySQL连接配置。原创 2022-11-11 16:19:06 · 964 阅读 · 0 评论 -
SpringBoot之单Redis与哨兵集群连接配置
【代码】SpringBoot之Redis连接配置。原创 2022-11-11 16:13:20 · 2439 阅读 · 0 评论 -
SpringBoot和SpringCloud版本选型
(2)往下滑,可以看到SpringCloud对应的SpringBoot版本,如下图。(1)打开SpringCloud官网查看说明。Maven:3.5及以上。MySQL:5.7及以上。原创 2022-11-09 13:33:46 · 556 阅读 · 0 评论 -
使用IDEA快速创建一个SpringBoot项目
(2)Next,勾选Spring web依赖(该依赖会使用SpringMVC和tomcat容器),然后点击Create。application.properties:全局配置文件。templates:模板页面文件夹。(3)创建一个测试类,代码如下。Application:启动类。static:静态资源文件夹。test包下用于写测试代码。原创 2022-10-29 11:26:07 · 451 阅读 · 0 评论 -
项目红叉报错:Target runtime jdk8 is not defined.
报错截图:解决方案原创 2022-03-07 16:43:45 · 357 阅读 · 0 评论 -
Spring之@Scheduled注解使用说明
表达式,cron表达式是一个字符串,字符串以5或6个空格隔开,分开共6或7个域,每一个域代表一个含义。每15天执行一次:@Scheduled(cron = “0 0 0 */15 *?,年不是必须的域,可以省略。// 每天0秒0分0时执行。转载 2021-12-08 10:40:53 · 2096 阅读 · 0 评论 -
SpringBoot项目配置连接mysql数据库
详细报错信息:Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class iscom.mysql.cj.jdbc.Driver’. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.解决方案:把 spring.datasourc原创 2021-08-06 16:32:42 · 664 阅读 · 0 评论 -
新建的SpringBoot项目pom.xml文件第一行报错
报错截图:解决方案:添加maven版本配置<maven-jar-plugin.version>3.0.0</maven-jar-plugin.version>配置添加后,选中项目,右键-Maven-Update Project…原创 2021-08-04 14:25:16 · 189 阅读 · 0 评论 -
org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction
[11:48:17:331] [ERROR] - cn.wkgb.common.exception.DefaultExceptionHandler.conversionErrorHandler(DefaultExceptionHandler.java:31) - 参数异常捕获org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is jav原创 2021-07-29 12:48:21 · 6197 阅读 · 0 评论 -
本地开发环境能正常导出,使用tomcat部署后,导出报错400
错误信息:26-Jul-2021 09:26:12.157 信息 [http-nio-8183-exec-4] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request headerNote: further occurrences of HTTP header parsing errors will be logged at DEBUG level.java.lang.IllegalArgumentExce原创 2021-07-27 10:09:17 · 389 阅读 · 0 评论 -
SpringBoot的优点
(1)创建独立的Spring应用程序(2)嵌入的Tomcat、Jetty或者Undertow,无需部署WAR文件(3)允许通过Maven来根据需要获取starter(4)尽可能的自动部署Spring(5)提供生产就绪型功能,如指标、健康检查和外部配置(6)绝对没有代码生成,对XML没有要求配置...原创 2021-05-31 08:44:21 · 193 阅读 · 0 评论 -
SpringBoot之使用注解还是XML?
使用注解还是XML?对于业务层使用注解,例如,对于MVC开发,控制器使用@Controller,业务层使用@Service,持久层使用@Repository;而对于一些公用的Bean,例如,对于数据库(如Redis)、第三方资源等则使用XML进行配置。...原创 2021-05-31 08:37:29 · 317 阅读 · 0 评论