Skip to content
Advertisement

Tag: spring-boot

Spring boot 2.3.3.RELEASE project fails build with exception “org.gradle.api.plugins.UnknownPluginException” in gradle version 5.6.3

my gradle version is 5.6.3. while I run a spring boot project of 2.3.3.RELEASE with ‘gradle clean build’ it shows me following error: Updating my question: my build.gradle : and my settings.gradle contains just the root project name Answer Spring boot 2.3.3.RELEASE definitely exists on gradle central plugin repository as I can see here. You’re most probably building behind a

Retrive value from yaml file to field in external library

I have a Spring Boot application I have a external library (written by me, also using Spring parent) as dependency In application.yml (in application, not in library) I have property example In library, I have a class with code like this: The value for this field is null, but when I’m calling for Environmet this value is accessible. Any hint

Spring Boot application.properties custom variable in a non-controller class

How come application.properties will work in a RestController, but not in a service class? Works Perfect! Returns “Null” Answer The inviteservice class is not configured for Spring IoC (Inversion of Control) as a bean, so Spring will not handle the inviteservice class lifecycle. In this case, @Autowired is useless. To fix this try to add @Component annotation to invitesevice, to

Advertisement