![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
文章平均质量分 58
借一缕月光
这个作者很懒,什么都没留下…
展开
-
springboot的启动原理
1. 准备springbootApplication1.1 保存信息1.2 判断当前应用类型(None,servlet,react)1.3 bootStrappers 初始化启动引导器,从spring.factories文件中,查找ApplicationContextInitializer、BootStrapper、ApplicationListener(监听器)、2. 运行springbootApplication2.1 创建stopWatch:用于记录应用创建时间,,以及分析项目性能2.2原创 2022-05-27 11:49:48 · 202 阅读 · 0 评论 -
springboot如何自定义starter
1.自定义启动器lmh-hello-spring-boot-starter(启动器)lmh-hello-spring-boot-starter-autoconfigure(自动配置包)1.1 创建一个空项目1.2 在空项目的基础上,添加maven空项目,项目名称叫做lmh-hello-spring-boot-starter再添加一个springboot空项目,项目名称lmh-hello-spring-boot-starter-autoconfigure1.3 lmh-hello-spring原创 2022-05-24 00:46:13 · 3113 阅读 · 0 评论 -
springboot整合mybatis
1、mybatis是什么MyBatis 是一款优秀的持久层框架,它支持自定义 SQL、存储过程以及高级映射。MyBatis 免除了几乎所有的 JDBC 代码以及设置参数和获取结果集的工作。MyBatis 可以通过简单的 XML 或注解来配置和映射原始类型、接口和 Java POJO(Plain Old Java Objects,普通老式 Java 对象)为数据库中的记录。2.整合两种方式:新建一个mybaits-config.xml文件,内容配置其中在springboot核心配置文件applic原创 2022-05-18 20:16:30 · 312 阅读 · 0 评论 -
alibaba Druid在springboot中的使用
1. Druid是什么druid是一个数据库连接池,但比DBCP、c3pProxool0连接池要更好。内置强大的监控功能,监控特性不影响性能。能防SQL注入,内置 Logging能诊断Hack应用行为等等。2.Druid的优点Druid提供的监控功能,可以清楚知道连接池和SQL的工作情况。转码自:https://www.iteye.com/magazines/90#1112.扩展JDBCDruid提供了Filter-Chain模式的扩展API,可以自己编写Filter拦截JDBC中的任何方原创 2022-05-17 21:00:31 · 820 阅读 · 0 评论 -
在springboot中修改LocalDateTime的序列化配置
输出的格式:2022-04-05T23:56:53修改为如下:步骤:1.添加依赖:<!-- https://mvnrepository.com/artifact/org.springframework/spring-web --><dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId>原创 2022-04-08 18:47:46 · 514 阅读 · 0 评论 -
从0开始搭建vue项目,到获取springboot或微服务后端数据
1.下载vue模板完整版:vue-element-adminGitHub地址:https://github.com/PanJiaChen/vue-element-admin项目在线预览:https://panjiachen.gitee.io/vue-element-admin精减版:vue-admin-templateGitHub地址:https://github.com/PanJiaChen/vue-admin-template结果:下面我将基于精简版进行第二次开发2.了解安装vue依赖原创 2022-03-20 00:46:31 · 1117 阅读 · 0 评论 -
找不到或无法加载主类 com.hp.SpringbootApplication
找不到或无法加载主类 com.hp.SpringbootApplication解决方案:版本太高,将2.5.0的版本改为低版本即可。原创 2021-06-02 16:56:11 · 119 阅读 · 0 评论 -
Failed to execute goal org.apache.maven.plugins:
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.01.报下图错误(我的idea版本是2020.2的):Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0解决方法:将springboot的版本降低(我原先是2.5.0.RELEASE,现将版本改为如下) <parent>原创 2021-05-31 16:22:07 · 248 阅读 · 0 评论 -
There are test failures.
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project springboot-sugon-3: There are test failures.Maven编译报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-te原创 2021-05-31 16:13:37 · 1160 阅读 · 3 评论