Questions tagged [spring-boot-3]
58 questions
0
votes
0 answers
Sping Boot 3.1.2: ITs fail to setup H2/Postgres with SpringBootTest but DataJpaTest works
base data: Using JDK 17, I'm trying to update from Spring Boot 2.7.11 -> 3.1.2. We're using a Postgres (version: 42.6.0) in production, that's why we're using h2 (version 2.1.214) with MODE=PostgreSQL, but no explicit dialect setting.
The…

kniffte
- 153
- 1
- 2
- 7
0
votes
0 answers
RoutingFunction bean creation in latest spring boot and spring cloud version
I was spring cloud function in my project. We were using spring boot version 2.6.6 and spring-cloud-function-context version 3.2.3 along with other required dependency.In that I was using RoutingFunction…

Mohit Sardiwal
- 11
- 1
0
votes
0 answers
Spring Authorization server token based login instead of form login
I am trying to implement an OAuth2 Authorization server using Spring Boot 3 (Spring Authorization Sever)
When a client tries to get an Authorization Code from the server, it is redirected to the login form. But I want the server to instead pick a…

KnownUnknown
- 89
- 6
0
votes
0 answers
Spring Boot 3 + Config Server + Using single property file in 2 spring boot application using config server
I have two springboot3 applications as mentioned below and I am using config server to load the configuration files.
auth server -> That uses secret key to generate jwt token
resource server…

Abhi
- 21
- 5
0
votes
0 answers
Problem with updating Collections after swtiching to Spring boot 3.0 and Java 17
i have a really strange problem with saving existing user in database,** and this errror isn't replicable to every record**, and that is what i mostly don't undrestand.
I have user Entity with maps table users_roles with have 2 fields user_id and…

Lmq
- 1
- 1
0
votes
1 answer
Unknown wrap conversion requested: java.util.ImmutableCollections$Set12 to java.lang.String
After migration from spring-data-jpa 2.7.1 to 3.1.2 (SpringBoot 3.1.2 migration) in method:
@Query("""
SELECT o
FROM Storage o
WHERE o.status = 'SUCCESS'
AND (
(:referenceNumbers) IS NULL
OR o.referenceNumber IN…

Jakub K
- 1
- 1
0
votes
0 answers
AWS serverless java container spring boot 2 to spring boot 3
Below code is working in spring boot 2 using aws-serverless-java-container-springboot2
I tried using aws-serverless-java-container-springboot3 but in below apps there is no API calls/controller. Simply trying to init the bean so that aws lamba can…

Luffy
- 1
- 1
- 3
0
votes
0 answers
Spring boot 3 with Atomikos
Spring Boot 3 doesn't support Atomikos.
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide
Support for the following dependencies has been removed in Spring Boot 3.0:
Apache ActiveMQ
Atomikos
EhCache 2
Hazelcast…

simyaci
- 53
- 6
0
votes
1 answer
Spring boot 3 + Authorization Server + Validating client_id stored in DB e.g. H2 + JdbcRegisteredClientRepository
I am trying to implement Authorization server using Spring boot 3.0 + H2 database for storing client details like client_id and client_secret etc.
I am able to generate token using InMemoryRegisteredClientRepository. Method used as below:
@Bean
…

Abhi
- 21
- 5
0
votes
0 answers
Olingo V4 uses javax hence it is not compatible to use with Spring Boot 3.x (JakartaEE). Is there a work around or an upgrade from Olingo coming soon?
I want to use Odata – Apache Olingo V4 (4.9.0 latest now) in my Spring Boot application (version 3.1.2). It seems Olingo V4 wants javax Servlet instead of Jakarta Servlet in the handler.
What is the solution here?
Tomcat embed core 9.0.x won't work…

Jeni
- 3
- 1
0
votes
1 answer
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'dataSource' available
Getting below error after migration of my spring batch application to spring boot 3.
We are not using any database so cannot provide the datasource connection. Is there any solution for…

Ashish Garg
- 19
- 2
0
votes
1 answer
Open API Server - openapi-generator with spring boot 3
I search for informations and clarifications about using openapi-generator with spring boot 3.
As I see in samples, there is no declaration of this code:
org.openapitools
…

Amir Choubani
- 829
- 2
- 14
- 28
0
votes
1 answer
can't save image in postgresql. column "data" is of type bytea but expression is of type bigint
I have spring-boot-starter-parent v3.1.2 with hibernate v6.2.6.
I am trying to save byte[] to postgresql and get the next error
column "data" is of type bytea but expression is of type bigint
Hint: You will need to rewrite or cast the expression.
I…

Sergey Baltak
- 1
- 3
0
votes
0 answers
UsernamePasswordAuthenticationFilter and SimpleUrlLogoutSuccessHandler not working in Springboot 3.x but work fine in 2.x - thus login not working
I have a wonderfully working SpringBoot2 application with a
UsernamePasswordAuthenticationFilter - to perform a login with 3 fields (tenant, user, password)
SimpleUrlLogoutSuccessHandler - to perform actions upon logout
When I tried to migrate to…

P. Ottlinger
- 1
- 1
0
votes
0 answers
Configure method not called in springboot 3.0.9- Issue during migration
I'm migrating from springboot 2.7.7 to springboot 3.0.9.
I've used openrewrite to make the package changes.
The application doesn't work after the 3.0.9 upgrade.
I'm building a war file and deploying it to tomcat manually.
I'm able to debug that the…

Joshua Samuel
- 1
- 2