精华内容
下载资源
问答
  • 2018-08-21 20:00:04
        1.在springboot的开发过程中,我们经常需要加载一些bean,如果bean使我们自己写的类,那很好办,加个@Component注解就搞定了,然后过程启动会扫描启动类所在的包及其子包,如果我们需要的bean不在自己的包里面,在第三方包怎么办?通过注解可以import进来,这个当然可以,这里介绍一个使用spring.factories文件的方法
        2.加入我们只做了一个包,里面有一个bean,我们期望工程启动的时候就加载这个bean到容器,我们的包是提供给其他人使用的,其他工程的启动了类所在的路径不能覆盖这个bean所在的包路径,通过ComponouneScan扫描太麻烦了,而且需求是工程启动后就加载bean,我们可以这样做:

    在包下面的resources下面新建文件/META-INF/spring.factories文件,里面写上下面的内容:

    org.springframework.boot.autoconfigure.EnableAutoConfiguration=com.xxx.xxx.TraceListenerAutoConfig 
    

    右边是你的一个类,然后在这个类里面写入:

    @Configuration
    @EnableConfigurationProperties
    public class TraceListenerAutoConfig {
    
        @Bean
        MyTraceListener myTraceListener() {
            return new MyTraceListener();
        }
    
    }
    
        3.到此大功告成,工程启动,MyTraceListener就作为一个bean加载到容器了,注意这里不要使用@Autowire的形式,那样可能会报bean找不到的错误;
    更多相关内容
  • 原文网址:Spring(SpringBoot)--FactoryBean--使用/原理/详解_IT利刃出鞘的博客-CSDN博客 简介 说明 本文介绍Spring中的FactoryBean,包括:作用,用法,原理,MyBatis对FactoryBean的应用。 FactoryBean的作用 通过...

    原文网址:Spring(SpringBoot)--FactoryBean--使用/原理/详解_IT利刃出鞘的博客-CSDN博客

    简介

    说明

            本文介绍Spring中的FactoryBean,包括:作用,用法,原理,MyBatis对FactoryBean的应用。

    FactoryBean的作用

    1. 通过一个FactoryBean来生产一个对象
    2. 可以获取生产出的对象的类型
    3. 可以判断生产出的对象是不是单例

    FactoryBean的来源

            在某些情况下,实例化Bean过程比较复杂,若按照传统的方式,则需要在中提供大量的配置信息,不够灵活,这时采用编码的方式能得到一个简单的方案。Spring为此提供了一个org.springframework.bean.factory.FactoryBean的工厂类接口,用户可以通过实现该接口定制实例化Bean的逻辑。

            FactoryBean接口在Spring中占重要地位,Spring自身就提供了70多个FactoryBean的实现。它们隐藏了实例化一些复杂Bean的细节,给上层应用带来了便利。

            从Spring 3.0 开始, FactoryBean开始支持泛型,即接口声明改为 FactoryBean<T> 的形式。

    源码:

    public interface FactoryBean<T> {
        String OBJECT_TYPE_ATTRIBUTE = "factoryBeanObjectType";
    
        @Nullable
        T getObject() throws Exception;
    
        @Nullable
        Class<?> getObjectType();
    
        default boolean isSingleton() {
            return true;
        }
    }

    普通bean与FactoryBean的区别

    Spring 容器中有两种bean:普通bean和工厂bean。

    普通bean

            通过反射来实例化被标记为bean的类。例:@Component指定的类。

    FactoryBean

            FactoryBean返回的对象不是指定类的一个实例,而是FactoryBean#getObject方法返回的对象。若想获取FactoryBean本身,要在bean的名称添加前缀&来获取FactoryBean对象本身(applicationContext.getBean("&" + beanName))。

    FactoryBean不遵循Spring的生命周期

            Spring的作者想要放权给使用者,让使用者自己实现创建一个bean的逻辑,所以Spring并不会过多的插手该Bean的实例化过程,使得一个Bean的实例化完全由使用者本人去实现。

            这个类并不会像普通bean那样在Spring容器初始化时进行实例化,而是类似于懒加载,在获取时才进行创建和返回。至于是不是单例,要取决于isSingleton()方法的返回值。

            当然,这个创建出来的bean也会被缓存,AOP等逻辑也会对该类生效,当然这都是后话。

    简单示例

    公共部分

    FactoryBean实现类

    package com.example.tmp;
    
    import lombok.AllArgsConstructor;
    import org.springframework.beans.factory.FactoryBean;
    
    @AllArgsConstructor
    public class MyFactoryBean implements FactoryBean {
        private String myBeanName;
    
        @Override
        public Object getObject() throws Exception {
            MyBean myBean = new MyBean();
            myBean.setName(myBeanName);
            return myBean;
        }
    
        @Override
        public Class<?> getObjectType() {
            return MyBean.class;
        }
    }
    

    bean实体类

    package com.example.tmp;
    
    import lombok.Data;
    
    @Data
    public class MyBean {
       private Integer id;
       private String name;
    }

    注册单个FactoryBean

    配置类

    package com.example.tmp;
    
    import org.springframework.context.annotation.Bean;
    import org.springframework.context.annotation.Configuration;
    
    @Configuration
    public class MyConfig {
        @Bean
        public MyFactoryBean getMyBean() {
            return new MyFactoryBean("Tony");
        }
    }
    

    controller

    package com.example.controller;
    
    import com.example.tmp.MyBean;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.web.bind.annotation.GetMapping;
    import org.springframework.web.bind.annotation.RestController;
    
    @RestController
    public class HelloController {
        @Autowired
        MyBean myBean;
    
        @GetMapping("/test1")
        public String test1() {
            System.out.println(myBean.getName());
            return "test1 success";
        }
    
    }
    

    测试

    访问:http://localhost:8080/test1

    后台结果:

    Tony

    注册多个FactoryBean

    配置类

    package com.example.tmp;
    
    import org.springframework.context.annotation.Bean;
    import org.springframework.context.annotation.Configuration;
    
    @Configuration
    public class MyConfig {
        @Bean("bean1")
        public MyFactoryBean getMyBean1() {
            return new MyFactoryBean("Tony");
        }
    
        @Bean("bean2")
        public MyFactoryBean getMyBean2() {
            return new MyFactoryBean("Pepper");
        }
    }
    

    controller

    package com.example.controller;
    
    import com.example.tmp.MyBean;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.beans.factory.annotation.Qualifier;
    import org.springframework.web.bind.annotation.GetMapping;
    import org.springframework.web.bind.annotation.RestController;
    
    @RestController
    public class HelloController {
        @Autowired
        @Qualifier("bean2")
        MyBean myBean;
    
        @GetMapping("/test1")
        public String test1() {
            System.out.println(myBean.getName());
            return "test1 success";
        }
    
    }
    

    测试

    访问:http://localhost:8080/test1

    后台结果:

    Pepper

    实例分析(MyBatis)

    见:Spring(SpringBoot)--Mybatis源码对FactoryBean的应用_IT利刃出鞘的博客-CSDN博客

    展开全文
  • SpringBoot之十七:spring.factory文件

    千次阅读 2018-04-03 23:04:32
    # Initializers org.springframework.context.ApplicationContextInitializer=\ org.springframework.boot.autoconfigure.SharedMetadataReaderFactoryContextInitializer,\ org.springframework.boot.autocon...

    这里写图片描述
    这里写图片描述

    # Initializers
    org.springframework.context.ApplicationContextInitializer=\
    org.springframework.boot.autoconfigure.SharedMetadataReaderFactoryContextInitializer,\
    org.springframework.boot.autoconfigure.logging.AutoConfigurationReportLoggingInitializer
    
    # Application Listeners
    org.springframework.context.ApplicationListener=\
    org.springframework.boot.autoconfigure.BackgroundPreinitializer
    
    # Auto Configure
    org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
    org.springframework.boot.autoconfigure.admin.SpringApplicationAdminJmxAutoConfiguration,\
    org.springframework.boot.autoconfigure.aop.AopAutoConfiguration,\
    org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration,\
    org.springframework.boot.autoconfigure.MessageSourceAutoConfiguration,\
    org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration,\
    org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration,\
    org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration,\
    org.springframework.boot.autoconfigure.cassandra.CassandraAutoConfiguration,\
    org.springframework.boot.autoconfigure.cloud.CloudAutoConfiguration,\
    org.springframework.boot.autoconfigure.context.ConfigurationPropertiesAutoConfiguration,\
    org.springframework.boot.autoconfigure.couchbase.CouchbaseAutoConfiguration,\
    org.springframework.boot.autoconfigure.dao.PersistenceExceptionTranslationAutoConfiguration,\
    org.springframework.boot.autoconfigure.data.cassandra.CassandraDataAutoConfiguration,\
    org.springframework.boot.autoconfigure.data.cassandra.CassandraRepositoriesAutoConfiguration,\
    org.springframework.boot.autoconfigure.data.couchbase.CouchbaseDataAutoConfiguration,\
    org.springframework.boot.autoconfigure.data.couchbase.CouchbaseRepositoriesAutoConfiguration,\
    org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchAutoConfiguration,\
    org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchDataAutoConfiguration,\
    org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchRepositoriesAutoConfiguration,\
    org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration,\
    org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration,\
    org.springframework.boot.autoconfigure.data.mongo.MongoRepositoriesAutoConfiguration,\
    org.springframework.boot.autoconfigure.data.neo4j.Neo4jDataAutoConfiguration,\
    org.springframework.boot.autoconfigure.data.neo4j.Neo4jRepositoriesAutoConfiguration,\
    org.springframework.boot.autoconfigure.data.solr.SolrRepositoriesAutoConfiguration,\
    org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration,\
    org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration,\
    org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration,\
    org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration,\
    org.springframework.boot.autoconfigure.elasticsearch.jest.JestAutoConfiguration,\
    org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration,\
    org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration,\
    org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration,\
    org.springframework.boot.autoconfigure.hateoas.HypermediaAutoConfiguration,\
    org.springframework.boot.autoconfigure.hazelcast.HazelcastAutoConfiguration,\
    org.springframework.boot.autoconfigure.hazelcast.HazelcastJpaDependencyAutoConfiguration,\
    org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration,\
    org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration,\
    org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration,\
    org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration,\
    org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration,\
    org.springframework.boot.autoconfigure.jdbc.JndiDataSourceAutoConfiguration,\
    org.springframework.boot.autoconfigure.jdbc.XADataSourceAutoConfiguration,\
    org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration,\
    org.springframework.boot.autoconfigure.jms.JmsAutoConfiguration,\
    org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration,\
    org.springframework.boot.autoconfigure.jms.JndiConnectionFactoryAutoConfiguration,\
    org.springframework.boot.autoconfigure.jms.activemq.ActiveMQAutoConfiguration,\
    org.springframework.boot.autoconfigure.jms.artemis.ArtemisAutoConfiguration,\
    org.springframework.boot.autoconfigure.jms.hornetq.HornetQAutoConfiguration,\
    org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration,\
    org.springframework.boot.autoconfigure.groovy.template.GroovyTemplateAutoConfiguration,\
    org.springframework.boot.autoconfigure.jersey.JerseyAutoConfiguration,\
    org.springframework.boot.autoconfigure.jooq.JooqAutoConfiguration,\
    org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration,\
    org.springframework.boot.autoconfigure.mail.MailSenderAutoConfiguration,\
    org.springframework.boot.autoconfigure.mail.MailSenderValidatorAutoConfiguration,\
    org.springframework.boot.autoconfigure.mobile.DeviceResolverAutoConfiguration,\
    org.springframework.boot.autoconfigure.mobile.DeviceDelegatingViewResolverAutoConfiguration,\
    org.springframework.boot.autoconfigure.mobile.SitePreferenceAutoConfiguration,\
    org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration,\
    org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration,\
    org.springframework.boot.autoconfigure.mustache.MustacheAutoConfiguration,\
    org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration,\
    org.springframework.boot.autoconfigure.reactor.ReactorAutoConfiguration,\
    org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration,\
    org.springframework.boot.autoconfigure.security.SecurityFilterAutoConfiguration,\
    org.springframework.boot.autoconfigure.security.FallbackWebSecurityAutoConfiguration,\
    org.springframework.boot.autoconfigure.security.oauth2.OAuth2AutoConfiguration,\
    org.springframework.boot.autoconfigure.sendgrid.SendGridAutoConfiguration,\
    org.springframework.boot.autoconfigure.session.SessionAutoConfiguration,\
    org.springframework.boot.autoconfigure.social.SocialWebAutoConfiguration,\
    org.springframework.boot.autoconfigure.social.FacebookAutoConfiguration,\
    org.springframework.boot.autoconfigure.social.LinkedInAutoConfiguration,\
    org.springframework.boot.autoconfigure.social.TwitterAutoConfiguration,\
    org.springframework.boot.autoconfigure.solr.SolrAutoConfiguration,\
    org.springframework.boot.autoconfigure.velocity.VelocityAutoConfiguration,\
    org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration,\
    org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration,\
    org.springframework.boot.autoconfigure.transaction.jta.JtaAutoConfiguration,\
    org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration,\
    org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration,\
    org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration,\
    org.springframework.boot.autoconfigure.web.HttpEncodingAutoConfiguration,\
    org.springframework.boot.autoconfigure.web.HttpMessageConvertersAutoConfiguration,\
    org.springframework.boot.autoconfigure.web.MultipartAutoConfiguration,\
    org.springframework.boot.autoconfigure.web.ServerPropertiesAutoConfiguration,\
    org.springframework.boot.autoconfigure.web.WebClientAutoConfiguration,\
    org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration,\
    org.springframework.boot.autoconfigure.websocket.WebSocketAutoConfiguration,\
    org.springframework.boot.autoconfigure.websocket.WebSocketMessagingAutoConfiguration,\
    org.springframework.boot.autoconfigure.webservices.WebServicesAutoConfiguration
    
    # Failure analyzers
    org.springframework.boot.diagnostics.FailureAnalyzer=\
    org.springframework.boot.autoconfigure.diagnostics.analyzer.NoSuchBeanDefinitionFailureAnalyzer,\
    org.springframework.boot.autoconfigure.jdbc.DataSourceBeanCreationFailureAnalyzer,\
    org.springframework.boot.autoconfigure.jdbc.HikariDriverConfigurationFailureAnalyzer
    
    # Template availability providers
    org.springframework.boot.autoconfigure.template.TemplateAvailabilityProvider=\
    org.springframework.boot.autoconfigure.freemarker.FreeMarkerTemplateAvailabilityProvider,\
    org.springframework.boot.autoconfigure.mustache.MustacheTemplateAvailabilityProvider,\
    org.springframework.boot.autoconfigure.groovy.template.GroovyTemplateAvailabilityProvider,\
    org.springframework.boot.autoconfigure.thymeleaf.ThymeleafTemplateAvailabilityProvider,\
    org.springframework.boot.autoconfigure.velocity.VelocityTemplateAvailabilityProvider,\
    org.springframework.boot.autoconfigure.web.JspTemplateAvailabilityProvider
    
    
    展开全文
  • springboot中使用工厂模式

    千次阅读 2021-11-26 15:02:37
    springboot中使用工厂模式工厂类接口类接口实现类controller类 工厂类 @Service public class TestFactory { /** * 初始化时可以自动将TestInterface加入到map中, * key为实现TestInterface类@Component(...

    springboot中使用工厂模式

    工厂类

    @Service
    public class TestFactory {
    	/**
    	 * 	初始化时可以自动将TestInterface加入到map中,
    	 *  key为实现TestInterface类@Component("test1")指定的值
    	 *  value为实现TestInterface类
    	 *  Map<"test1",TestImpl1>
    	 */
    	@Autowired
    	private Map<String, TestInterface> map = new ConcurrentHashMap<String, TestInterface>();
    	
    	public TestInterface geTestInterface(String key) {
    		System.out.println(key);
    		return map.get(key);
    	}
    }
    

    接口类

    public interface TestInterface {
    	public String getMsg(String msg);
    }
    

    接口实现类

    @Component("test1")
    public class TestImpl1 implements TestInterface{
    
    	@Override
    	public String getMsg(String msg) {
    		return "test1:"+msg;
    	}
    
    }
    
    @Component("test2")
    public class TestImpl2 implements TestInterface{
    
    	@Override
    	public String getMsg(String msg) {
    		return "test2:"+msg;
    	}
    
    }
    
    @Component("test3")
    public class TestImpl3 implements TestInterface{
    
    	@Override
    	public String getMsg(String msg) {
    		return "test3:"+msg;
    	}
    
    }
    

    controller类

    @RestController(value = "/")
    public class TestController {
    	@Autowired
    	private TestFactory testFactory;
    	
    	@RequestMapping(value = "msg/{key}",method = RequestMethod.GET)
    	public String getMsg(@PathVariable("key")String key) {
    		TestInterface test = testFactory.geTestInterface(key);
    		return test.getMsg("test test");
    	}
    }
    
    展开全文
  • SpringBoot获取Bean对象

    2022-05-13 08:27:02
  • SpringBoot的ApplicationContextAware

    千次阅读 2020-04-02 00:24:04
    springboot启动时,扫描生成的对象会放在springboot容器中被管理,不过有时候我们在程序中需要通过类名,或者对象名,来获取到所需要使用的对象,这种情况我们就可以使用ApplicationContextAware来实现 示例: ...
  • 文章目录1 异常2 可能原因2.1 IDE 缓存...org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type expected at least 1 bean which qualifies as autowire candidate. Dependen
  • springboot Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticsearchClient' defined in class path resource [org/springframework/boo....
  • SpringBoot @Resource注入的坑

    千次阅读 2020-01-21 14:42:05
    ConcurrentKafkaListenerContainerFactory factory = new ConcurrentKafkaListenerContainerFactory(); factory.setConsumerFactory(oneConsumerFactory); factory.setConcurrency(10); factory....
  • Factory method ‘dataSource’ threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable ...
  • Spring boot中Session Factory的使用

    千次阅读 2017-11-07 11:54:31
     基本的配置已经好了,现在就可以在spring boot里用hibernate中的Session Factory了。  调用的时候   @Resource private SessionFactory sessionFactory; @Override public Session ...
  • Factory method ‘redisConnectionFactory’ threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/pool2/impl/GenericObjectPoolConfig springboot整合redis报错 Caused by...
  • SpringBoot搭建环境时出现如下提示: Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.reflect.MalformedParameterizedTypeException 映射有问题,最后查找出时由于jar包冲突...
  • SpringBoot启动报错:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'faxController':Unsatisfied dependency expressed through field 'faxService' ...
  • springboot项目启动时,刚写完持久层代码想在测试类中测试一下,跑起来一直报错,说bean注解类在spring容器中未查询到疯狂报错。。。 作者是这么解决的 百度搜了一下,发现自己并未让spring去扫描mapper包,所以在...
  • Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.demo.dao.UseDao] found for dependency: expected at least 1 bean which qualifies as autowire ...
  • Springboot运行出错:org.springframework.beans.factory.UnsatisfiedDependencyException 解决办法: 1.启动类没有创建 2.没有扫描到包 3.没有加上service注解 4.mapper.xml文件中 sql 语句返回对象类型错误 5....
  • org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name '...
  • 记录一下springboot项目启动遇到的错误,公司是组件化开发,用代码生成脚本自动生成基本代码,启动项目报了如下错误 Error starting ApplicationContext. To display the conditions report re-run your application...
  • 直接启动这个测试类会报找不到名叫bookMapper的bean,加上 @MapperScan(basePackages = "com.mapper")这段代码就好了 第一次记录一个小坑
  • 这个错误是在maper.xml里面的映射出现了问题 <!-- 通用查询映射结果 --> <resultMap id="BaseResultMap" type=... <id column="id" property="id"/>...result column="pay_date" property="payDat.
  • org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'apiSpActController': Unsatisfied dependency expressed through field 'actService'; nested exception is ...
  • springboot启动报错org.springframework.beans.factory.UnsatisfiedDependencyException: 原因: 在多模块项目里,不同模块之间需要在pom.xml配置所需模块的配置信息. 例如上图,在service中需要common模块里的...
  • SpringBoot

    千次阅读 2021-11-04 08:26:06
    1 springboot的引言 Spring Boot是由Pivotal团队提供的全新框架,其设计目的是用来简化Spring应用的 初始搭建以及开发过程。该框架使用了特定的方式来进行配置,从而使开发人员不 再需要定义样板化的配置。通过这种...
  • org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘com.hikvision.coal.test’: ... nested exception is org.springframework.beans.factory.NoSuchBeanDefi
  • SpringBoot 集成Mybatis

    千次阅读 2022-04-26 21:20:15
    文章目录一、创建SpringBoot项目二、添加Mybatis相关依赖三、数据源配置四、创建事务的模型实体类五、创建和数据库交互联系的映射关系类六、创建业务接口和实现类七、创建控制器类八、请求验证 一、创建SpringBoot...
  • Error creating bean with name 'employeeController': ...Error creating bean with name 'employeeMapper' defined in file [D:\IdeaProjects\study\springBoot\target\classes\com\example\springboot\dao\
  • 测试类中@SpringBootTest的classes属性为该SpringBoot启动类的字节码文件,写其他汇报这个错误 找了好久才发现这个写错了,一定要仔细啊!!
  • SpringBoot集成redis报错 Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘org.springframework.data.redis.core.RedisTemplate<java.lang.String,...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 127,852
精华内容 51,140
关键字:

springboot factory

spring 订阅
友情链接: SPWM_inverter_two_legs.rar