Skip to content
Advertisement

Tag: spring-boot

@Value not getting the value from application.properties

im trying to get a value from the application.properties in a Spring boot app. The class is defined with the tag @Component, I already tried @Service too, and with @PropertySource(“classpath:application.properties”) and without the @PropertySource but in any case they get the value. The interface is defined like this And the superior interface In any case I tried without implementing the

SpringBoot app does not run with exceptions

I am new at Spring Boot so I’m trying to create a simple Crud but I keep getting this error when I run my application I spose it must be some version problem but I don’t know how to fix it. I created the project with STS on ubuntu using mostly default options Answer It looks like you have java

How to find a Bean instance of MongoRepository?

I am trying to use a MongoRepository, but Spring complains, that no instance of the MonoRepository-Interface is in the context. The server complains: my maven pom.xml: How can I get a bean instance of my MongoRepository? Answer The dependency is incorrect. spring-data-mongodb only makes it compile: But you need additional dependencies, to make it run. For convenience you can import

Does the use of Spring Webflux’s WebClient in a blocking application design cause a larger use of resources than RestTemplate

I am working on several spring-boot applications which have the traditional pattern of thread-per-request. We are using Spring-boot-webflux to acquire WebClient to perform our RESTful integration between the applications. Hence our application design requires that we block the publisher right after receiving a response. Recently, we’ve been discussing whether we are unnecessarily spending resources using a reactive module in our

Advertisement