Questions tagged [spring]
The Spring Framework is an open-source framework for application development on the Java platform. At its core is rich support for component-based architectures, and it currently has over twenty highly integrated modules. For Spring Boot related questions, also include the tag [spring-boot].
spring
211,828
questions
0
votes
0
answers
7
views
Spring's issue with RedisTemplate beans having the same name
Why is it that manually declaring a RedisTemplate bean with the same name as the RedisTemplate provided by Spring does not conflict, and can correctly obtain the bean declared by oneself for use.
When ...
0
votes
0
answers
15
views
Why my rest api call is slow while reading and writing to a file
I am trying to upload an inputstream using below code
@PutMapping(value="/fileupload", consumes={MediaType.APPLICATION_OCTET_STREAM_VALUE}
pubic ResponseEntity<String> uploadFIle(...
1
vote
0
answers
12
views
Column <name> is of type json but expression is of type smallint[]
There is field of json type in postgres db named data_processing_steps.
It's defined in category entity as
@Type(JsonType.class)
@Column(columnDefinition = "json")
private Set<...
0
votes
0
answers
13
views
Reactive Spring webflux vs Threadpool
I have a rest spring application which makes external API calls to other internal services. This is a high load/concurrency app where it gets 100s of request per second.
I am using Spring webClient (...
0
votes
0
answers
16
views
Spring Oauth2 Social Login with multiple Tenants with Different Behaviors
I am looking to add Oauth2 login to my spring boot application, but wasn't sure how to handle the following requirements:
To have Social login enabled to allow users to access my application's ...
0
votes
0
answers
26
views
JPA repository findBy return different result when using H2 and MySQL
This is the simply version of my application.
I have 2 entity.
Customer.java
package com.udacity.jdnd.course3.critter.user;
import java.util.List;
import java.util.ArrayList;
import com.udacity.jdnd....
0
votes
0
answers
6
views
Spring WebFlux and Thymeleaf do not seen to be properly working together
I have a REST API developed in Java using Spring WebFlux, and I want to add a simple web interface (login and registration form), so that when you log in you get a Java Web Token, which allows you to ...
-1
votes
0
answers
18
views
Error creating 2 database users in SpringBoot3 app with Liquibase
I am trying to create an app with SpringBoot3, Hibernate and Liquibase. For now I have just implemented the liquibase part and wanted to get it working before adding business logic.
The app defines 2 ...
0
votes
0
answers
20
views
Error while downloading 'http://www.springframework.org/schema/context/spring-context-4.0.xsd'
enter image description hereI am getting this error while calling context:component-scan
Error while downloading 'http://www.springframework.org/schema/context/spring-context-4.0.xsd' to 'C:\Users\...
-1
votes
0
answers
4
views
Accessing response headers in SyncGraphQlClientInterceptor
This question was originally asked on github issues. Posted here in hopes of getting an answer.
Please tell me is it possible to somehow get information about response headers in ...
0
votes
0
answers
11
views
Create Statement in Spring Data Cassandra
How can I create a Statement using Spring Data Cassandra in a way that spring would handle type conversion as well?
If I have a simple query with simple types, I could write something like this:
...
-1
votes
0
answers
13
views
[spring-boot]open api can't be stored in mysql database
bonjour,
I have a unsolvable problem ... help me
I downloaded XML open api file and parsed that in spring boot.
Even though mysql db was successfully connected, data wasn't stored in my db table.
Only ...
1
vote
2
answers
31
views
How to use @RequestParam array for multiple data types?
I'm building a Spring Boot Controller with a @RequestParam array.
The thing is, the input will be a mix of Image upload (new image) and String (Existing image's id) in the request's body as FormData.
...
0
votes
0
answers
6
views
Spring Batch - Using ClassifierCompositeItemWriter - how to avoid writting headers when file is empty (no data)
I went through Is there a way to override and not execute the headerCallBack in Spring Batch, but still not clear on the solution. I'm using Spring XML based approach in my project.
I'm using ...
0
votes
0
answers
21
views
How to make spring.data.mongodb.password have an optional value in Spring's application.propertties?
I have a Spring Boot 3.3 application that accesses a MongoDB service. The application is deployed as a Container image to various stages. At some stages, using a username / password to connect to ...