150,607 questions
0
votes
0
answers
10
views
How to setup Sprign Authorization Server with Jdbc and proxy using gateway oauth2 client to access resource server module
I am working on an application to better understand the spring security and microservcies architecture
i have setup:
gateway - module with gateway, oauth2 client, jdbc and psql driver and web ...
0
votes
0
answers
20
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
7
replies
8
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
14
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
14
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
1
answer
54
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
51
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
63
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
10
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
42
views
Customizing 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
100
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
67
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 ...
-2
votes
1
answer
68
views
working with numerous database schemas via the WEB [closed]
I want to write an application on Spring Boot with a web part and a database (Postgres), Spring Data, DataSourceConfiguration, and HikariDataSource.
There will be 10 to 20 users. Each user has their ...