欢迎来到银龙的博客

人生三从境界:昨夜西风凋碧树,独上高楼,望尽天涯路。 衣带渐宽终不悔,为伊消得人憔悴。 众里寻他千百度,蓦然回首,那人却在灯火阑珊处。

07 2021 档案

IDEA 报错 Could not autowire. No beans of 'UserMapper' type found(无法自动装配。找不到类型为 'UserMapper' 的 bean)解决IDEA中自动装配,找不到类型的bean问题
摘要:idea错误提示 实际上我已经加上了扫包 解决方法 去掉即可 阅读全文

posted @ 2021-07-30 11:49 银龙科技 阅读(3178) 评论(0) 推荐(0)

springboot整合springmvc拦截器
摘要:package com.itheima.config; import com.itheima.interceptor.MyInterceptor; import org.springframework.context.annotation.Bean; import org.springframewo 阅读全文

posted @ 2021-07-30 08:26 银龙科技 阅读(111) 评论(0) 推荐(0)

springboot自动配置原理
摘要:在META-INF\sping.fatories文件中定义了很多自动配置类,可以根据pom.xml文件中添加的启动器依赖自动配置组件 如何去找配置 阅读全文

posted @ 2021-07-28 15:18 银龙科技 阅读(49) 评论(0) 推荐(0)

springboot属性注入方式,读取配置
摘要:读取指定文件 @PropertySource(value = "classpath:qinjiang.properties") 1 application.properties jdbc.driverClassName=com.mysql.jdbc.Driver jdbc.url=jdbc:mysq 阅读全文

posted @ 2021-07-28 09:16 银龙科技 阅读(97) 评论(0) 推荐(0)

Spring基础之加载外部文件
摘要:一、用注解加载(@PropertySource) @PropertySource(value = { "classpath:jdbc.properties" },ignoreResourceNotFound = true) public class ApplicationCongfig { } ig 阅读全文

posted @ 2021-07-10 06:48 银龙科技 阅读(180) 评论(0) 推荐(0)

spring快速入门
摘要:2.1 Spring程序开发步骤 ①导入 Spring 开发的基本包坐标②编写 Dao 接口和实现类 ③创建 Spring 核心配置文件 ④在 Spring 配置文件中配置 UserDaoImpl⑤使用 Spring 的 API 获得 Bean 实例 2.2 导入Spring开发的基本包坐标 <pr 阅读全文

posted @ 2021-07-05 14:31 银龙科技 阅读(90) 评论(0) 推荐(0)

导航