能@Component,@Repository并@Service注释互换在Spring中,还是他们提供任何特殊的功能,除了作为一个符号设备?
@Component
@Repository
@Service
换句话说,如果我有一个Service类并且我将注释更改@Service为@Component,它仍然会以相同的方式运行吗?
或者注释是否也会影响类的行为和功能?
java spring annotations spring-mvc
annotations ×1
java ×1
spring ×1
spring-mvc ×1