Skip to content
Advertisement

Tag: spring-boot

Spring Boot Test Cannot find Properties No Matter What

I have a simple bean I have a properties file in src/test/resources called application-test.yml which has one property propItem: true If I run my test below – I expect it to pass, but it fails because propItem is always false Why is this a problem? I thought Spring does all these automatically, but seems not Answer You need to: define

Elasticsearch stops working after I run the springboot Java program and elasticsearch transport node is not loading in my Java Program

Elasticsearch version 8.1.3 Java version 1.8 Im trying to connect elasticsearch with Java springboot program. My Elasticsearch works fine until I run the Java program, also my java program works fine but with “.d.e.r.s.AbstractElasticsearchRepository : failed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [{#transport#-1}{LsJSQJtCS56wr7IM_S0h4Q}{localhost}{127.0.0.1:9300}]” on springboot error. Also, as soon as I run my

Spring Api-Gateway: (M1) java.lang.UnsatisfiedLinkError: no netty_resolver_dns_native_macos_aarch_64

Just to clearify this only occurs on M1 Mac, the intel version doesn’t seem to have this problem. JDK 17 Project Diagram Problem: java.lang.UnsatisfiedLinkError exception is thrown when trying to access one of the microservice through API-Gateway. For example, http://localhost:8082/API-USER/users/status/ok will throw this exception. The return value is correct, API-Gateway continuse to run dispite the annoying exception. Question Does any

IntelliJ Run Configuration for Spring Boot apps?

I do not change run configuration unless reinstalling IntelliJ IDEA and I am not sure if I set the run config properly. Configuration Dialog Could you pls clarify me about the following issue based on the attached dialog: 1. SHould I use SPring Boot or Application Template of Run config for a Spring Boot app? Or is both of them

get the id from an exception message spring boot

hello guys i hope you’re doing well, I’m catching an exception (DataIntegrityViolationException) where the specified id can’t be deleted because it’s still in the parent entity. I want to know if there is any way to get that specified id from the caught exception. Answer DataIntegrityViolationException just wraps the exception thrown by the underlying JDBC driver. So it depends on

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled. How can I solved Problem?

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled. pom.xml 4.0.0 org.springframework.boot spring-boot-starter-parent 2.6.6 kodlamaio northwind 0.0.1-SNAPSHOT northwind Demo project for Spring Boot <java.version>11</java.version> org.springframework.boot spring-boot-starter-data-jpa org.springframework.boot spring-boot-starter-web Answer According to your error.log So please resolve the NullPointerException in your PatternsRequestCondition

Advertisement