Skip to content

Tag: spring

How can I autowire a service that is imported from another jar?

I have a jar file that contains a java class HelloService with @Service annotation. I would like to Autowire it into my a @Component class GoodByeComponent that I am writing (autowire into the constructor). So, the skeleton for HelloService could look something like this: And the GoodByeComponent would look l…

Join tables in spring data jpa

I have an issue in joining two tables column. I have two entities Status Report and Employee. and I want the data of employee inside StatusReport. Another class is the employee: As you can see employee entity itself have some other joins on other tables. Which is a deparment table. When I join Status Report w…

Field authenticationManager in service.SecurityServiceImpl required a bean of type ‘org.springframework.security.authentication.AuthenticationManager’

I am new to Spring Boot and trying to implement whatever I’ve learned from this link: login-registration-feature. My aim is to build a user login and registration feature but i’m stuck with this error: My folder structure, code is same as the one mentioned in the link. But couldn’t figure ou…