150,608 questions
0
votes
1
answer
36
views
Maven is failing to include a local jar file
I am trying to run a Spring Boot application that is using a local jar file called llgen-1.0.5.jar. I am running this application
using Tomcat.
I keep getting the following exception when I try to ...
0
votes
0
answers
37
views
How to setup Spring Authorization Server, Spring Cloud Gateway MVC and OAuth2 Resource Server?
I am working on an application to better understand the Spring Security and microservcies architecture.
I have setup:
Spring Authorization Server
Spring Cloud Gateway MVC
OAuth2 Resource Server
...
0
votes
0
answers
44
views
Spring Boot multi-module: dependency module beans not loaded after mvn package (decorator bean ignored)
I have a Spring Boot multi-module Maven project.
Modules:
module-1 → Spring Boot application (packaged as a runnable fat jar)
module-2 → Spring Boot application (also packaged as fat jar)
module-3 →...
Advice
0
votes
10
replies
19
views
Suggest optimization for apache camel cartridge code
CartridgeException.java
package com.example.transformation.cartridge;
public class CartridgeException extends RuntimeException {
public CartridgeException(String message) {
super(message);
}
...
0
votes
0
answers
37
views
A Spring Shell 4 starter application gives a JLine History ClassNotFound
I tried the new Spring Shell 4. Default example straight out of the box works fine, however, when I change to the documentation aligned below code I get a class not found (for the org.jline.reader....
0
votes
0
answers
36
views
How to solve the warning regarding jdk.incubator.vector module when using Lucene with Spring Boot?
I am using Hibernate Search with a Lucene backend (version 10) and I am getting this warning, when running my Spring Boot application:
Java vector incubator module is not readable. For optimal vector ...
0
votes
2
answers
63
views
Correct dependency for @AutoConfigureMetrics and @AutoConfigureTracing (Spring Boot 4.0.1)
I am upgrading my Spring Boot app to Spring Boot 4.0.1.
However, I can not figure out the correct dependency to add to my pom.xml for the following annotations in my @SpringBootTest annotated ...
0
votes
0
answers
57
views
Spring Boot Logback Configuration: Console Logs Fully but Files Log Only Partially
I have a Spring Boot application with the following logback-spring.xml configuration. After startup, I notice that file logs (info.log and log.log) contain only minimal output, while the console ...
0
votes
2
answers
54
views
Mapstruct implementation cannot find mthod builder
I'm encountering the message below at runtime when my application tries to map my entities to Dto classess using Mapstruct and Lombok together in spring boot
java: cannot find symbol
symbol: ...
0
votes
1
answer
64
views
Isn't the object returned by ThreadPoolTaskExecutor.getThreadPoolExecutor() the same?
I initialized a Bean for ThreadPoolTaskExecutor myself.
Then call threadPoolTaskExecutor.getThreadPoolExecutor().hashCode() to get the latest hasCode.
@Slf4j
@EnableAsync
@Configuration
public class ...
Best practices
0
votes
0
replies
11
views
Hazelcast for hibernate L2 + application cache + topic publish/subscribe messaging
I have 2 instances for my backend (2 differents servers)
I am using hazelcast 5.5 with spring boot in my application for differents cases :
- Hibernate L2 cache
- Cache applicative for my api (@...
0
votes
1
answer
49
views
How to customize MFA in Spring Security 7?
Is there a way I can customize MFA so that if a user logs in with an OIDC provider like Google or Facebook they can simply access my app but if a user wants to log in using a username password ...
0
votes
2
answers
101
views
I have this build failure error as Factory method 'dataSource' threw exception with message: Failed to determine a suitable driver class
This is my application.properties file
spring.application.name=service
spring.sql.init.mode=always
spring.datasource.url=jdbc:postgresql://localhost:5432/mydatabase
spring.datasource.username=myuser
...
Best practices
5
votes
6
replies
69
views
Which is the best data type for createdDate and modifiedDate for mongo collection to store dates in database of spring boot application with java 17
I am developing spring boot microservice application with java 17 and need best practise to use date data types for createdDate and modifiedDate for all the mongo collections.
These fields not using ...
0
votes
1
answer
64
views
Spring Boot bootBuildImage on Windows cannot execute Docker credential helper (docker-credential-gcloud.cmd)
I’m using Spring Boot’s Gradle bootBuildImage task on Windows to build and push an image to Google Artifact Registry.
The image builds successfully, but the push fails with an unauthenticated error. A ...