<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Heck's  Blog]]></title> 
<link>https://www.heckjj.com/index.php</link> 
<description><![CDATA[一瞬间的决定，往往可以改变很多，事实上，让自己成功的往往不是知识，是精神！ 如果你总是为自己找借口，那只好让成功推迟。执行力，今天！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Heck's  Blog]]></copyright>
<item>
<link>https://www.heckjj.com/post//</link>
<title><![CDATA[关于报错Consider defining a bean of type的问题]]></title> 
<author>Heck &lt;@hecks.tk&gt;</author>
<category><![CDATA[编程杂谈]]></category>
<pubDate>Tue, 22 Nov 2022 08:42:04 +0000</pubDate> 
<guid>https://www.heckjj.com/post//</guid> 
<description>
<![CDATA[ 
	运行SpringBoot的时候报如下错Consider defining a bean of type ‘com.google.code.kaptcha.Producer’ in your configuration.<br/><br/>报错原因为配置中找不到一个指定自动注入类型的bean。<br/>那么我们要从collecter层开始查找，点击service层，看service实现类是否加上@Service或者@Component，检查service实现类是否有implements service。如果这些都没有问题：<br/><br/>我们来看@SpringBootApplication，点过去。可以看到有个@ComponentScan，ComponentScan做的事情就是告诉Spring从哪里找到bean<br/><br/>那可以直接在@SpringBootApplication加上<br/><br/>还有一种问题，你的spring启动类不在同一个父包路径下，比如你的其它类在com.heckjj.blog,而你的启动类在heckjj下，也会报错扫不到其它的类，比如说service找不到。<br/>
]]>
</description>
</item><item>
<link>https://www.heckjj.com/post//#blogcomment</link>
<title><![CDATA[[评论] 关于报错Consider defining a bean of type的问题]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://www.heckjj.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>