Announcement Announcement Module
Collapse
No announcement yet.
Question about annotations in class inheritance Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Question about annotations in class inheritance

    I have the following code. When I run the code, I always get an NoSuchBeanDefinitionException exception on "serviceB".

    Could any expert tell me what's the problem of the code or how can I make serviceB reuse code of serviceA?

    Thanks in advance.

    Code:
    @Service("serviceA")
    public class ClassA{
    ...
    }
    
    @Service("serviceB")
    public class ClassB extends ClassA{
    ...
    }
Working...
X