摘要:解决无法注入的问题 打包之后注入提示 required a bean of type 'com.xxx.xxx' that could not be found 查询各种资料,研究了半天,一个配置就搞定 添加 <!-- 保持目录结构--> <option>-keepdirectories</opti
阅读全文
Fliegend的乱七八糟空间新手入门,Hello World! |
|
随笔分类 - springboot
摘要:解决无法注入的问题 打包之后注入提示 required a bean of type 'com.xxx.xxx' that could not be found 查询各种资料,研究了半天,一个配置就搞定 添加 <!-- 保持目录结构--> <option>-keepdirectories</opti
阅读全文
摘要:手动注册bean 此种方式注册的bean在调用时将由spring进行创建,相当于延迟加载bean import org.springframework.beans.BeansException;import org.springframework.beans.factory.support.Bean
阅读全文
|