Spring Boot
Strange_Ltike
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
修改Vagrant的IP
修改Vagrant网络配置原创 2022-11-20 17:33:05 · 816 阅读 · 1 评论 -
The absolute uri: [http://itheima.com/common/] cannot be resolved in either web.xml or the jar files
IDEA编译器MAVEN编写SSM整合中出现的错误 The absolute uri: [***********] cannot be resolved in either web.xml or the jar files deployed with this application 博主试了很多种方法,但是最后有效的有两种: 第一种: 在pom.xml文件中添加: <dependency> <groupId>jstl</groupId> <原创 2020-06-09 21:31:34 · 722 阅读 · 1 评论 -
A component required a bean of type ‘com.example...‘ that could not be found解决办法
启动工程后控制台报错显示A component required a bean of type ‘com.example.demo2.dao.AdminDao’ that could not be found. 解决办法: 方法一:在每个mapper接口上添加上注解@Mapper 方法二:在Demo2Application.java文件中添加注解@Mapper Scan(“这里填入mapper接口的路径”) ...原创 2020-08-07 00:11:24 · 27730 阅读 · 2 评论 -
Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.cj.jdb
Spring Boot中报 Loading class com.mysql.jdbc.Driver. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver’. 解决办法: 找到application.yml文件 原来代码: spring: datasource: driver-class-name: com.mysql.jdbc.Driver username: root password: r原创 2020-08-07 00:04:13 · 211 阅读 · 0 评论 -
Spring Boot源码解析(一)
1.1自动配置源码解析 使用 Spring Boot 开发较之以前的基于 xml 配置式的开发,要简捷方便快速的多。而这完全得益于 Spring Boot 的自动配置。下面就通过源码阅读方式来分析自动配置的运行原理。 1.1.1 解析@SpringBootApplication 打开启动类的@SpringBootApplication 注解源码。 我们发现@SpringBootApplication 注解其实就是一个组合注解。 (1) 元注解 前四个是专门(即只能)用于对注解进行注解的,称为元注解。原创 2020-06-21 10:17:02 · 339 阅读 · 0 评论
分享