Questions tagged [spring-boot-3]

58 questions
3
votes
1 answer

Can Spring Session be turned off in Spring Boot 3?

In my Spring Boot 2.7.4 project, I use Spring Session with Redis by including these dependencies: org.springframework.boot spring-boot-starter-data-redis
Jon H
  • 394
  • 3
  • 17
2
votes
0 answers

'Schema-validation: missing table' with custom SchemaFilterProvider after upgrading to Spring Boot 3 (Hibernate 6)

When upgrading to Spring Boot 3 and Hibernate 6, it seems like property hibernate.hbm2ddl.schema_filter_provider doesn't work properly. I have a custom implementation of SchemaFilterProvider that excludes my_table from validation, and I set the…
Ayelet
  • 21
  • 2
2
votes
0 answers

Run native tests without JVM tests in Spring Boot 3

Spring 6/Spring Boot 3 allows to run tests using GraalVM's native-image with mvn -Pnative test. This uses the native-maven-plugin. This plugin respects both -DskipTests and -Dmaven.test.skip and there is also a flag -DskipNativeTests to skip native…
1
vote
2 answers

How to create Prototype bean with parameters

In Spring Boot 3 for jar-starters now we should use @Autoconfiguration. @Autoconfiguration is the @Configuration with proxyBeanMethods = false parameter. In Spring Boot 2 i used the code like this. In singleton component i can create any count of…
1
vote
1 answer

IBM MQ JMS not working after migration to Spring Boot 3 with com.ibm.mq.jakarta.client.jar 9.3

I tried to call an Enterprise MQ in Spring Boot 2.5 using javax.jms MQ dependencies. The connection is being successfully made. Below is my pom.xml and code. I am using an App ID credentials to connect to the queue which I have set in the…
1
vote
1 answer

Migration to Spring Boot 3 - how can I handle "keepalive@openssh.com" requests from the server?

Our team has an application where a file is fetched and handled once per day from a remote server using Spring Integration SFTP. Right now, I am migrating from Spring Boot 2.7 to Spring Boot 3. After migrating to Spring Boot 3, I have noticed that…
1
vote
1 answer

Spring Boot 3 Controller Handling POST Requests with Trailing Slash Issue

I am facing an issue with my Spring Boot application where I have a single controller that handles POST requests only. I have set the context path in my application.yml as server.servlet.context-path: /context/path. The goal is to handle POST…
Rafi
  • 467
  • 6
  • 17
0
votes
1 answer

Cannot access javax.persistence.MappedSuperclass Spring Boot 3

I've migrated my project from Spring Boot 2 to Spring Boot 3 and I've been getting this error: [1;31mERROR[m] COMPILATION ERROR : [1;34mINFO[m] ------------------------------------------------------------- [1;31mERROR[m] cannot access…
0
votes
1 answer

Spring boot 3 does not load configMap

I have a minimalist app with spring boot 3.1.1 and spring cloud 2022.0.4, on EKS with kubernetes 1.27, but unfortunately the config is never loaded from the ConfigMap ... The app is made of a single file without any configuration or application.yaml…
0
votes
0 answers

Azure web app for containers (Spring Boot 3 Java 17 using JDBC) connection issues w/ Microsoft SQL Server Hybrid Connection

Overview I have deployed a Spring Boot API from my private container registry to an Azure Web App for containers instance. I have setup a hybrid connection via Azure Hybrid Relay w/ a HCM hosted on a Windows 2022 server VM that has a connection to a…
0
votes
0 answers

SpringSecurity page authentication not working properly

I am new To Spring Security ,I use SpringBoot3 . I want when I hit localhost:8080/user it open my home page but in my case when I hit localhost:8080/user this url in my browser it redirect to my login page. I want every body access home page…
Mama
  • 475
  • 1
  • 10
  • 26
0
votes
0 answers

RestTemplate not working in Spring Boot 3. I am migrating from Spring Boot 2.x to 3.x

I have RestTemplate configured to communicate with two services, but as it is maintenance mode, can we use RestTemplate in Spring Boot 3? One of the implementations, an end point which is configured through RestTemplate, is not working I am unable…
0
votes
0 answers

getWriter() has already been called for this response

Why can I only use response.getOutputStream() in a project, when I use response.getWriter(), it always throws exception, but I can use response.getWriter() in an old project, and after I used this outputStream, I can not close it, because if I close…
0
votes
0 answers

How to handle com.google.api.client.http.apache.v2.ApacheHttpTransport usage in Spring Boot 3/java 17?

I am working on migrating a Spring Boot Application from Spring Boot 2.x/Java 11 to Spring Boot 3.x/Java 17. In one of the classes I have the following code: var httpTransport = new ApacheHttpTransport(httpClient); where HttpClient…
Ivajlo Iliev
  • 303
  • 1
  • 3
  • 19
0
votes
1 answer

TestContainers with Spring Boot 3.0 and Keycloak: Should I use Keycloak Container for Unit or Integration Tests?

I'm in the process of exploring TestContainers with Spring Boot 3.0 for my Hello World application which has security-enabled endpoints. In the past, I relied on mocked tokens for unit testing purposes. However, with the integration of…
1
2 3 4