i have created an annotation that has features such as checking if the entered string is null or at the assigned value.But the annotation doesn’t work. I don’t think it does any validation on the DTO.What am I doing wrong ? I also added the valid annotation on the controller. I don’t think t…
Tag: spring-annotations
Why am I obtaining this error trying to start multiple Spring Batch Jobs? The bean ‘jobLauncher’….could not be registerd
I am working on a Spring Batch application containing two different Job bean (representing two different jobs). Both these jobs must be performed by my application (at the moment it can be done both sequentially and in parallel. It is not so important at the moment). In order to achieve this behavior I am try…
Where to put the bean logic creation into a simple Spring Boot application? [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 1 year ago. Improve this question it is pretty long time that I am not using Java technologies and I hav…
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…
Spring choose property source by a combination of profiles
I have multiple environments driven by Spring profiles, such as application-int.yml, application-dev.yml etc with similar content: application-int.yml application-dev.yml My goal is to use the following property based on both the environment name and whether the mock profile is included: ws.endpoint from appl…
Is it necessary to use @Configuration while working with spring annotations
I am working with a simple spring application to check @Configuration and @Bean(java based configuartion only),The program is working with both @Configuration and without it.So is it necessary to have it. Here is my code, Student.java Faculty.java MyConfig.java Client.java The output is same with or without t…