码迷,mamicode.com
首页 >  
搜索关键字:bean    ( 9602个结果
springboot集成redis(缓存篇)
一 前言 公众号: 知识追寻者 知识追寻者(Inheriting the spirit of open source, Spreading technology knowledge;) pring为我们提供的缓存注解Spring Cache。Spring支持多种缓存技术:RedisCacheMana ...
分类:编程语言   时间:2020-05-13 09:19:12    阅读次数:68
线程池 ThreadPoolTaskExecutor
1. springboot中配置线程池 @Bean public ThreadPoolTaskExecutor commonThreadPool() { ThreadPoolTaskExecutor pool = new ThreadPoolTaskExecutor(); pool.setCoreP ...
分类:编程语言   时间:2020-05-12 20:29:21    阅读次数:62
springboot 自动装配
springboot最大特点就是自动装配 一.什么是自动配置? 根据特定条件自动将一些配置类的bean注册进ioc容器,使得可以在需要的地方直接从容器中获取和使用? “自动”的表现形式就是我们只需要引我们想用功能的jar包,相关的配置我们完全不用管(springboot内置了很多的**start配置 ...
分类:编程语言   时间:2020-05-12 20:21:24    阅读次数:105
spring cloud gateway 负载均衡流程
网关被扫描后会注册四个核心配置类,当然在配置类中仍然有各种流程中需要的bean后面会详细解释。 l GatewayAutoConfiguration 网关基础配置类,当中承载着核心的配置逻辑 l GatewayClassPathWarningAutoConfiguration 网关类加载配置类,就是 ...
分类:编程语言   时间:2020-05-12 11:58:10    阅读次数:284
项目依赖问题导致No qualifying bean of type 'org.apache.ibatis.session.SqlSessionFactory' available: more than one 'primary' bean
背景 A项目之前一直都是好好的,但是某天下午启动的时候报错,报错见下,报错原因是org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'org.apache.ibat ...
分类:数据库   时间:2020-05-12 09:18:26    阅读次数:100
(8)小项目--界面的代码
Start.java 就是输出点东西 1 package edu.uc.ui.cli; 2 3 import edu.uc.bean.Member; 4 import edu.uc.service.MemberService; 5 import edu.uc.service.impl.MemberS ...
分类:其他好文   时间:2020-05-11 22:08:59    阅读次数:72
@Configuration 和 @Component 的区别, 以及lite mode
Instead,when one {@code @Bean} method invokes another {@code @Bean} method in lite mode, the invocation is a standard Java method invocation; Spring d ...
分类:其他好文   时间:2020-05-11 21:54:10    阅读次数:102
关于数据库查询new BeanPropertyRowMapper
//bean类必须有无参构造,不然new BeanPropertyRowMapper<bean>(bean.class)不会把数据转为bean对象 @Test public void test3() throws PropertyVetoException { // List<bean> query ...
分类:移动开发   时间:2020-05-11 21:42:17    阅读次数:128
Spring源码分析-bean创建(循环依赖)
一、循环依赖产生的原因 A依赖B,B又依赖A @Component class A { @Autowired B b; } @Component class B { @Autowired A a; } A类Bean创建过程: 先实例化A,(一般都是)通过无参构造完成实例化; A属性注入,发现A依赖B ...
分类:编程语言   时间:2020-05-10 15:02:56    阅读次数:57
JavaEE基础01-spring
可以到spring官网去下载最新的spring扎包。 现在作一个简单测试类,我使用的是idea,创建module时,勾选spring,写一个applicationContext.xml文件。 .xml文件里加入 <bean id="helloWorld" class="com.guigu.sprin ...
分类:编程语言   时间:2020-05-10 13:07:04    阅读次数:71
9602条   上一页 1 ... 66 67 68 69 70 ... 961 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!