SSM框架搭建,为什么controller无法自动装配productService
配置好dao及service,最后在controller中配置productService使用Autowired注解却出现报错查询了百度等多个平台,依旧没有收获,但是发现在service接口上加上service注解,错误消失。各位大佬有懂的吗,带带小弟。IProductDaopackage com.example.dao;import com.example.domain.Product;import org.apache.ibatis.annotations.Select;import
原创
2020-06-15 13:41:57 ·
929 阅读 ·
1 评论