其他分享
首页 > 其他分享> > 注解生效配置

注解生效配置

作者:互联网

注解配置不完全我的报错:

A component required a bean of type 'com.example.demo_l.redis.RedisService' that could not be found.

缺少配置:

@ComponentScan("com.example.demo_l.redis")

@Service("RedisService")
配置成功再次启动就ok了。
 

标签:RedisService,demo,配置,redis,生效,注解,com,example
来源: https://www.cnblogs.com/devin-sl/p/12049972.html