Spring at StackOverflow

Welcome to our StackOverflow page, where we maintain a list of StackOverflow tags that our engineering team monitors and participates in. If you are a previous forum.spring.io user, please read the blog post about the change or visit the read-only archive.

Active questions on StackOverflow

0
votes
0answers
1 views

Spring disable transactions for a single class method

In my Spring application, I have a class annotated with org.springframework.transaction.annotation.Transactional annotation. Is it possible to discard transactions for a specific single method of thi
1
votes
1answers
38 views

How to implement Ajax calls in a Spring MVC JSP view

I'm doing a java MVC project using Maven, Spring and MySQL. The fact is that I want to display a text message when I select a value on a "select" form and when I pick a date on a calendar. I have th
0
votes
1answers
13 views

Spring Foreign key infinity loop

I have a table User that had a Foreign key Store to reference the store of the User. Secondly, I have a table Store that had a foreign key responsable that is in fact a User Id. In my Spring applica
2
votes
2answers
702 views

How to read x-death header of a RabbitMQ dead-lettered message using Spring Boot?

I am trying to implement re-routing of dead-lettered messages as described in this answer. I am using Spring config. I have no idea on how to read the headers to get the original routing key and origi
0
votes
1answers
9 views

Setting Spring REST controllers base url without changing the static resources base url

I have a spring boot application with bunch of rest controllers (@RestController). I use the following property in application.properties file to set the base url: server.context-path=api This pro
0
votes
1answers
29 views

spring.data.rest.base-path makes two endpoints available

I have a bunch of REST API endpoint which I'd like to change their base path. I understand that using spring.data.rest.base-path=/XYZ in the application.properties only affect the endpoints which th
0
votes
0answers
3 views

Spring Data Mongodb WriteConcern working?

I have the following Spring Data MongoDb Repository Java configuration: @EnableMongoRepositories(basePackages= {"com.example.repositories.mongodb"}) public class MongoConfig extends AbstractMongoConf
0
votes
1answers
24 views

Passing file/stream between Spring Boot applications

I'm having an issue with Spring Boot (v. 1.5). Consider following scenario: User sends a POST request to Spring Boot app (let's call it App_A). Controller in App_A sends a new POST request to another
0
votes
2answers
43 views

JSON Names from SpringFramework @Controller, @ResponseBody

I've got a simple Spring Controller who's purpose is to return a RESTful JSON response of my entity objects. Its returning the data in standard camelCase names which match my entity. However, I'd l
0
votes
0answers
5 views

Reactor - how to buffer messages received in a Rest POST method

I am new to Reactor and I am trying to update an existing Spring rest service to wait to receive 100 messages or until the time exceeds 30 seconds since the last save before to save myreceived messa
6
votes
2answers
3215 views

Spring Boot 1.4 - TestRestTemplate Unsatisfied dependency exception

Have a very light Spring Boot 1.4 project, generated from start.spring.io. Trying to run an intergration test for @RestController with @RequestBody using TestRestTemplate, but there's no success beca
0
votes
0answers
25 views

org.springframework.web.servlet.PageNotFound handleHttpRequestMethodNotSupported WARNING: Request method 'POST' not supported

I have an entity TaskInfo that joins two entities Task and TaskDetail for dropdowns. But when I try to persist TaskInfo entity I get "org.springframework.web.servlet.PageNotFound handleHttpRequestMe
0
votes
0answers
6 views

Global Variable in Spring Integration?

I have one transformer who's output is input for one of my http:outbound-gateway and the output channel of this outbound-gateway is input for my one of activator. My requirement is to get some of data
0
votes
0answers
9 views

Spring MVC increase counter based on Session Requests/IP Adresses

I am starting an application that allows users to monetize their content. I'm basing the amount of earned money on the view count on a page, so the page needs a validated way to count views. As far as
0
votes
0answers
8 views

Spring Data Validation

If I post a form back to a Spring web app it get automatically converted into a class of my choosing, but is it possible to get access to the raw data? I want to validate a date class and it would be
1
votes
3answers
38 views

Spring Security: How to retrieve user's information in sign in?

I have implemented Spring boot, with Spring security. And here is how I configure the http requests: @Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests(
1
votes
0answers
11 views

Spring Security multiple successful authentication providers

I want users of my web application to be authenticated by LDAP AND additional custom authentication. It's a Spring Boot application written in Kotlin. I have configured the AuthenticationManagerBuilde
0
votes
0answers
18 views

Accessing OSGI service from Spring

I would like to access OSGI service from Spring bean without DM. Currently I have 2 bundles bundle A is just exposing service, and bundle B is a web application with JSF and Spring Security. The follo
-1
votes
0answers
11 views

How to pase YAML file in Java8 and SpringBoot

I have the below YAML file: UniqueProductName1: SubscriptionPlan1: User1: {payment:150, limit: 200} User2: {payment:200, limit: 300} User3: {payment:60, limit: 100} SubscriptionPlan2:
0
votes
0answers
22 views

Exception in Application start method in JavaFX Application

At the first glance the question may seems to be duplicated. I have done some searches in Google.But unfortunately none of the results dont match with me. I have given the questions link below. Excep
0
votes
0answers
14 views

Spring Boot, no console logging is available if --spring.config.location is provided while starting

I have a simple web app based on Spring Boot, I want to externalize my configuration using --spring.config.location when I start the app, like this: java -jar app.jar --spring.config.location=file://
1
votes
0answers
10 views

Hibernate does not generate Sequence when it's already available on a different schema

I have a "simple" Spring Boot application with a single datasource. The following configuration is present in my configuration: spring: jpa: hibernate: ddl-auto: update properties:
0
votes
0answers
10 views

Parallel insert from a CSV in Postgres database

I would like to read in a csv file and insert every row (about 1kk) into my postgres database. Reading and parsing the csv file is quite fast as opposed to the insertion itself, but does it make sens
0
votes
0answers
8 views

Spring microservices managed like jenkins nodes

In our application we would like the ability to start some tasks on remote machines running with different user permissions. So a user in our system will have his own microservice ( similar to a Jenki
0
votes
1answers
11 views

Unable to generate the Spring rest docs using Cucumber

I am trying to test spring rest documentation for rest API for our services using spring cucumber jvm but end up with a null pointer exeception when I try to execute the scenario, as the framework is
0
votes
0answers
10 views

Elastic search API Vs Spring data Vs logstash

I am planing to use elastic search for our dashboard using spring boot based rest services. After research i see top 4 options Use Elastic Search Java API Use Elastic Search Java Rest Client Use spr
1
votes
3answers
1003 views

Why is the Authentication object of the SecurityContext not shared across threads?

I am having the problem of sometimes getting a AuthenticationCredentialsNotFoundException. At the moment I believe that this is a threading issue. According to another question (link) the SecurityCont
0
votes
0answers
3 views

in spring boot (sts) i submitted form through request mapping data got submitted but page getting redirect i dont want to redirect

<form class="form-horizontal" method="post" action="userRegistration" name="userRegistration"> <div class="form-group"> <label for="name" cl
0
votes
2answers
16 views

File not found in JAR src/main/resources

I have a file in src/main/resources in Spring Boot project. I load it in the runtime with following code: ClassLoader classLoader = getClass().getClassLoader(); File file = new File(classLoader.getRe
0
votes
3answers
3004 views

@SpringBootApplication cannot be resolved to a type In STS

I am very new to STS. I searched for this error in stackoverflow. I didn't find correct matching answer. I am able to see the class in MavenDependencies seciton in STS but not able to add the annotat