上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: org.springframework.dao.DataIntegrityViolationException: Error attempting to get column 'id' from result set. Cause: java.sql.SQLDataException: Cannot 阅读全文
posted @ 2020-04-03 23:59 卯毛 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 控制反转思想:反转Bean的创建权[反射机制],为了解决对象和对象之间的耦合,我们在Spring容器中声明一个bean对象 属性: id:唯一性标识 class:全限定名 它内部是一个全类名,通过它找到一个具体的实现类 反射默认通过无参构造去创建对象,我们这样配置必须保证bean(指的UserDao 阅读全文
posted @ 2020-03-31 21:05 卯毛 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 脑图:https://www.processon.com/view/5dc54c6be4b0fbd191820ee1 map Spring: spring开发入门:https://www.cnblogs.com/maomaodesu/p/12180477.html SpringMVC: MyBati 阅读全文
posted @ 2020-03-31 20:46 卯毛 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 脑图: https://www.processon.com/view/link/5e6b6342e4b0e3993b62db71 map SpringCloud服务注册中心: Eureka: Zookeeper: 阅读全文
posted @ 2020-03-26 18:58 卯毛 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Eureka系统架构 为了避免出现单点故障,我们尽量配置多个注册中心(eureka server)和多个服务提供者(eureka provider) 注册中心(eureka server): 导入起步依赖 配置文件 配置一个注册中心(eureka server) eureka server不能注册自 阅读全文
posted @ 2020-03-26 17:11 卯毛 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 为什么要研究监听机制: 为了在项目生命周期中自定义某些操作 Java监听机制: SpringBoot监听机制: 阅读全文
posted @ 2020-03-26 01:30 卯毛 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 定义起步依赖工程 xxx spring boot starter(封装了该起步依赖所需其他所有jar包的依赖) 自动装配工程 xxx spring boot starter autoconfigure 自动装配工程xxx spring boot starter autoconfigure的resou 阅读全文
posted @ 2020-03-24 03:29 卯毛 阅读(313) 评论(0) 推荐(0) 编辑
摘要: SpringBoot直接可以用@Autowried原理是什么? 以前我们使用@Autowired要自己创建Bean:https://www.cnblogs.com/maomaodesu/p/12180477.html %E5%88%9B%E5%BB%BAbean 但SpringBoot在引入坐标时会 阅读全文
posted @ 2020-03-23 17:28 卯毛 阅读(1535) 评论(0) 推荐(0) 编辑
摘要: springBoot整合其他框架: 两类: 1.以springBoot为主导,spring boot starter XXX(junit) 2.其他项目整合springboot,XXX spring boot starter(mybatis) SpringBoot整合junit: 导入依赖包(jun 阅读全文
posted @ 2020-03-22 14:52 卯毛 阅读(631) 评论(0) 推荐(0) 编辑
摘要: springBoot和spring区别? springBoot是基于spring的。 spring配置繁琐;springBoot自动装配。 spring依赖繁琐;springBoot起步依赖。 spring需要依赖外部服务器;springBoot不要依赖外部服务器,有嵌入式服务器。 准备环境: se 阅读全文
posted @ 2020-03-21 19:37 卯毛 阅读(233) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 15 下一页