Im trying to get the h2 console in my browser while my my Springboot application. Whitelabel Error Page This application has no explicit mapping for /error, so you are seeing this as a fallback. Sun Apr 24 00:44:22 IST 2022 There was an unexpected error (type=Not Found, status=404). This is my application.pro…
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 seem…
Customize the automatic reconnection settings to IBM MQ
I have written a code to connect to IBM MQ, and i am using ConnectionNameList which automatically reconnects to ibm mq. I want to customize the reconnection which is happening implicitly. I have referred many articles on the internet but i am not able to figure it out. This is my Queue Manager Config: When i …
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.elasticsea…
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…
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?…
How to use Jwts to generate Jwt Token ? Can anyone share me code..?
I am having only null method…Can you write logic to generate jwt token… Answer Use the below logic. Before that get the username and password from the user and authenticate it …and send the authenticationto the generate token method and generate token like this.
GraphQL Scalar for java.time.LocalDate parses dates as StringValue
I try to parse a date, e.g. “2022-02-02” as java.time.LocalDate. Why the values passed to the scalar class are wrapped into curly braces? And how do I fix this? I configured the scalar for java.time.LocalDate: This is the query: The error says that Text ‘StringValue{value=’2018-09-03&#…
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 DataIntegrityV…
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.versio…