Questions tagged [spring-boot-2]
111 questions
1
vote
1 answer
Getting an error having a slash in PathParameter String variable
I have a Java Spring Boot application with a couple of API REST endpoints.
In one of my endpoints I am using as a search endpoint.
My problem is calling this specific endpoint with a path variable containing a slash "/" in it will give me a HTTP 400…

dirbacke
- 2,861
- 21
- 25
1
vote
1 answer
Upgrade Spring Boot 1.x to 2.x (update ENCRYPT KEY VM argument if using {cipher} texts)
If {cipher} encrypted text is being used in your spring-boot application property file.
application.yml or application.properties
my.password='{cipher}68e78a954bfa0297ecc733`
Above is start failing in SpringBoot2 with error message Cannot decrypt:…

vsk.rahul
- 433
- 1
- 6
- 11
1
vote
2 answers
Error when calling configprops while spring batch jobscope is configured
I recently update my spring boot app 2.1.9 to 2.2.0 and i'm facing a problem. When i'm calling "configprops" from actuator endpoint, an exception is throw :
Scope 'job' is not active for the current thread
I reproduce the bug :…

Guillaume
- 53
- 7
1
vote
1 answer
How to enable Spring MVC metrics in Spring Boot 2x Actuator
I'm trying to setup actuator metrics in Spring Boot 2 RESTful app, however - the list of supported metrics below does not include the
http.server.requests metric,
which is part of Spring MVC metrics, as described in…

antoni.rasul
- 648
- 6
- 12
1
vote
3 answers
Bean references are not creating when using quartz with spring scheduler - Job instantiation failed
I have updated my spring-boot application from 1.x to 2.x after upgrade scheduler is not working as expected. Getting the following exception.
org.quartz.SchedulerException: Job instantiation failed
at…

Mohankumar Rathinam
- 623
- 1
- 11
- 25
1
vote
0 answers
Custom Navigable Actuator Endpoint in SpringBoot2
I have written a Spring-Boot version 2, Custom Endpoint actuator code and trying to make it navigable using @Selector option,
1) when I enter the URL http://localhost/actuator/notes/1.0 in the browser, its giving me 400 as error code and the…

Karthik P
- 11
- 2
1
vote
0 answers
Is Possible to load springboot yaml properties in angular8 component
i want to access springboot yaml property into angular component,
project structure is springboot2.1, angular8 and thymeleaf templates for mvc.

Java Coffee Bean
- 81
- 4
1
vote
0 answers
Skip over an HttpMessageConverter if canRead and canWrite are false
I have a custom MappingJackson2HttpMessageConverter that I add to the top of the converters list:
@Override
public void extendMessageConverters(final List> converters) {
converters.add(0,…

MeanwhileInHell
- 6,780
- 17
- 57
- 106
0
votes
0 answers
Spring Boot 2 working on embedded Tomcat, but not on external Tomcat
I created a spring boot 2 app and when i run it on my IDE (intelliJ) it works perfectly, but when i try to deploy it to an external tomcat (tomcat version 9.0.80) it doesn't work.
When i run it on my IDE and access localhost:8080/projeto it shows me…

聂啸林
- 1
0
votes
0 answers
How to connect to master and replica using spring data redis 2.0.4 with java 8
We are migrating from redis cache to redis with elastic cache. We have two apps on java8. One app is spring boot(2.0.0) with java 8 and other one is a spring app with java 8. They both need to share the elastic cache with ops like save data, read…

Naga Syamala
- 41
- 1
- 5
0
votes
1 answer
JPA joins retrieve lots of permutations
I have an entity with lots of joins. Following is a stripped down version of it.
@Entity
@Table(name = "NEWS")
public class NewsV2 {
@Fetch(FetchMode.JOIN)
@OneToMany(fetch = FetchType.EAGER, cascade = {CascadeType.PERSIST,…

ahrooran
- 931
- 1
- 10
- 25
0
votes
0 answers
@Value annotation not working with springboot 2.3.1
I have this test class with some test cases
class TestClass(
@Value("\${s3.published.bucket}")
private val publishedBucketName: String
) {
}
I have 2.1.8.Release currently for springBoot version and everything works fine, all tests are…

Yash zala
- 33
- 5
0
votes
0 answers
Is it possible to extract value from Header in Spring Cloud Gateway predicate via YAML config?
I want to capture the value from my CountryCode header and use that to set my path, see this config for a simplified example of what I am trying to achieve:
spring:
cloud:
gateway:
routes:
- id: custom_route
uri:…

Jonas
- 137
- 2
- 10
0
votes
1 answer
Spring Data REST move file rest-messages.properties to database
what needs to be added to spring boot 2, so that the value would first be checked in the database and if not found then searched in the file rest-messages.properties?

Denis W
- 1
0
votes
1 answer
Error Deploying Spring Boot App using 2.6.2 on IBM Websphere 8.5.5.20
I'm trying to Deploying a spring boot app using 2.6.2 on IBM Websphere 8.5.5.20 (Using java 8)
To test out the Issue I have tried to deploy a simple Hello World restcontroller and facing the issues noted below. I'm able to deploy the application…

gathreya
- 45
- 1
- 9