Questions tagged [spring-boot]

-1 votes
0 replies
Establish a mutual ssl authentication with java and spring boot
i want some explanations on how to do the client authentication in mutual ssl with spring boot .. i am using jhipster and i want to override the...
asked 1 month ago
1 votes
0 replies
Spring Boot Data JPA dropping commits with Postgres 9.5
Recently, my application has been seeing commits dropped and I am totally puzzled. No logs, no errors, everything continues as if things would be...
1 votes
1 replies
Swagger UI with swagger.yaml in SpringBoot
We have a SpringBoot (version 1.5.12) REST Api with springfox-swagger2 and springfox-swagger-ui (version 2.9.2) @EnableSwagger2 public class App...
asked 1 month ago
0 votes
1 replies
How to show images in thymeleaf that are not in static folder in src
I'm uploading images to a folder productImages which is not in the src folder of spring boot project. I'm storing the paths of each image. How ca...
asked 1 month ago
1 votes
0 replies
How to not create beans based on other beans?
I have a configuration class in which it's annotated with @Configuration. 2 beans get created. These beans are used annotated with @Profile hence...
asked 1 month ago
-1 votes
1 replies
Can I define an application.properties file value as optional
In my application.properties file I would like to have an optional value. Such as spring.datasource.url=${value} but optional Is this possible?...
asked 1 month ago
0 votes
0 replies
Thymeleaf form - how to pass a value for model attribute from one controller method to another one
I'm struggling with adding products into product table for a specific user, whiich is logged via log method. The issue is that the attribue userL...
3 votes
3 replies
Disable spring boot actuator “health-component” and “health-component-instance”
Hi I am using actuator in sprinb-boot 2, with the following properties management.endpoints.enabled-by-default=false management.endpoint.health...
0 votes
1 replies
Cannot access com.mongodb.MongoClientSettings - MongoDB Java driver 3.7+
I'm following the guide using MongoDB Java driver 3.7+ versions with Spring boot starter as dependency. And I get the error: java: cannot access...
asked 1 month ago
0 votes
0 replies
Pact test using micronaut
I am starting with pact and micronaut, and I want to run a pact file. The examples I have found are written in Spring boot, so I would like to kn...
asked 1 month ago
0 votes
0 replies
How to implement spring boot resource server secured by multiple oauth2 servers(not authentication)
We are looking for some example/direction of how to implement a spring boot resource server secured by multiple oauth2 servers. Example: 1) /a...
asked 1 month ago
0 votes
1 replies
Why does Maven complain about supposedly missing method in netty-tcnative-boringssl-static?
I'm having some issues with one particular dependency in my spring-boot project. I'm using netty-tcnative-boringssl-static and have upgraded my s...
0 votes
0 replies
@Autowired on @Document objects
I'm trying to inject a bean into a class annoted with @Document but I get null objects (injection does not work): @Document public class Persist...
1 votes
1 replies
org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException
I encountered this error when I tried to deployed war in tomcat with spring boot 2.1.2.My tomcat version is 8.5.14 and java is 1.8.0_121.I think...
asked 1 month ago
0 votes
1 replies
How to update the data in Spring Boot MVC
I have the most common project on Spring Boot MVC. and I'm trying to write update data via PUT. @RestController @RequestMapping(CommentControlle...
-4 votes
0 replies
Integrate drools rule with mysql and spring boot
I am new in drools.Is there any way to integrate drools rules with mysql and spring boot. If anyone has any idea please help me. Thanks. -4...
asked 1 month ago
-1 votes
0 replies
How to import Springboot application as war type into another Springboot application
I have Springboot application "TestLib" <packaging>war</packaging> which on build I am exporting as jar so that it could be used by o...
asked 1 month ago
0 votes
0 replies
Spring / JUnit tests - Handle multiple transaction per test
I'm new to Spring Boot Testing and not sure if it's even correct how we are using it. We are using Spring Boot 1.5.8.RELEASE including JUnit 4.12...
5 votes
1 replies
Spring Boot graceful shutdown
I am developing a Spring Boot application backed by embedded Tomcat and I need to develop a graceful shutdown with the following steps: stop pr...
asked 1 month ago
0 votes
2 replies
Spring Boot Rest Controller: Return default Error JSON
Within my API I like to protect the user details endpoints, so that normal logged in users can only access their user profile. Therefor I am writ...
asked 1 month ago
0 votes
1 replies
Hibernate Envers custom field for user input
I'm using Spring Boot and Hibernate Envers with a custom RevisionEntity and RevisionListener to store additional information like username, ip in...
0 votes
0 replies
Remove Duplicate within JSON_OBJECT in hibernate query
I would like to get a JSON object from query which helps to increase the performance than using for-loop inside an application. So I need duplica...
asked 1 month ago
0 votes
0 replies
Java - Spring WebClient simple request required to throw an exception on error
First time using WebClient and wanting to replace our existing RestTemplate HTTP calls. We have a lot of cases where we need to throw an excepti...
asked 1 month ago
0 votes
0 replies
Integration Testing the spring project which is a library to other spring projects
I have a project A which is used as a dependency in project B. I am exposing some functions in project A that needs to be used in project B. So,...
0 votes
0 replies
Mac - java.lang.exception: apr not available when using Spring Boot + APR + TCNative + OpenSSL
I am trying to benchmark BoringSSL vs TCNative for performance. I am following this example where the person has used Spring Boot + APR + TCNativ...
asked 1 month ago