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

4
votes
1answers
28 views

Spring REST Api -- access User details in repository

The setup of the RESPApi project is: SpringBoot Spring's OAuth2 In the project we have many clients, so SQL queries almost always have "... and clientId = ?" in the where clause. We store clien
0
votes
0answers
2 views

tomcat not working after configuring spring in a web application in eclipse

I tried to make settings for including the spring configuration in a dynamic web project in eclipse.I did the following changes : Modifying the web.xml file Creating the spring-dispatcher-servlet.xm
0
votes
0answers
2 views

how to exclude files based on the if-else condition in pom.xml apache maven

I want to exclude some files based on the if-else condition in pom.xml file any one of you guys can you assist me here is my pom.xml plugin <plugin> <groupId>org.apache.maven.plugins<
0
votes
0answers
8 views

JPA CrudRepository select by searching in list

I have an entity that contains multiple lists, with oneToMany associations: @Entity public class Data { @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true) private List<Tool> t
-1
votes
2answers
30 views

Spring MVC @RequestMapping not working 4.3.9

I'm trying to develop simple application using Spring and I'm unable to return the value from ModelAndView to jsp page. I have tried several methods and solutions that given by internet, but none of t
-2
votes
1answers
20 views

Failed to convert value of type 'java.lang.String' to required type 'int'; For input string: "save"

**Resolving exception from handler [[email protected]]: org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'int';
0
votes
2answers
23 views

ehcache implementation in tomcat 4 nodes

We have multiple applications in tomcat that have 4 instances . also we have 2 tomcats and each have 4 nodes. we want to use the cache mechanism to get the properties from database and store into cac
0
votes
0answers
5 views

Spring AspectJ get method annotation from ProceedingJoinPoint

I have an aspect that handles all methods that have a custom annotation. The annotation has an enum parameter and I have to get the value in the aspect: @Target(ElementType.METHOD) @Retention(Retent
0
votes
0answers
15 views

What sends a PUT to a Spring controller

I want to send an email using ajax and PUT method to the controller. Well, I noticed that data is not being sent as a 'query parameter', but as 'form data'(https://zapodaj.net/f1b8ed0b2a16b.png.html).
0
votes
0answers
15 views

Spring Request Context. Inheritance of Request Scoped Beans

Is there a way in Spring framework for child threads of the request thread to access scoped bean (request) from the parent thread? I currently receive this exception when I try to do that: Scope 'req
0
votes
1answers
17 views

Spring Data JPA/REST Update subcollection

I have a Spring Data Jpa/Rest web application. I have created two entities, A and B, where entity A contains multiple B entities. The DTO classes are defined as: Getters/Setters are omitted. @Enti
-1
votes
0answers
8 views

Hibernate Spatial + Oracle + spring

i have a problem when inserting in the database i got this exception: org.springframework.orm.jpa.JpaSystemException: java.lang.RuntimeException: Couldn't get at the OracleSpatial Connection object fr
0
votes
0answers
19 views

@Transactional does not work when @Autowired applies

I have written a sample application to test the annotated transaction management in Spring (@Transactional). context file; <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.sp
-2
votes
0answers
17 views

Migrate Spring 3.0.5 to work with Java 1.8 and tomcat8

I have a production project with the following tech-stack . 1- Java version 1.6 2- Spring MVC (3.0.5.RELEASE) 3- Spring Core (3.0.5.RELEASE) 4- Free Marker (2.3.14) 5- Camel/IBatis (2.16.3) 6- Spri
10
votes
2answers
4745 views

Is there a static way to get the HttpServletRequest of the current request

I am using Spring annotations, I can pass the HttpRequestContext from the Controller to the Service. I am looking for a static way or any better solution than passing RequestContext around.
0
votes
0answers
14 views

How to get QNAME of any WSDL in Java

I am trying to build a WSDL client in Java and I found lot of examples on stackoverflow but all of them require WSDL url and QName since the Service constructor requires both of them. But i want to c
0
votes
1answers
27 views

Map is auto sorted after submitting to controller?

Today I faced a weird issue like this. First, I initialize a map that store data for select object in jsp. Map<String, String> bankIds = ImmutableMap.<String, String>builder() // Dummy da
0
votes
0answers
14 views

Spring - link is not relative to current page

Spring doesn't seem to resolve links relatively to the current page. For example, the current URL is http://localhost/roles But the anchor <a href="roleA1">roleA1</a> goes to http:
0
votes
0answers
7 views

How to use WebServiceGatewaySupport (abstract class *meant* for inheriting) properly in Spring

How to use properly the Spring class org.springframework.ws.client.core.support.WebServiceGatewaySupport without having warnings? The class is apparently designed for extending: it is abstract and th
1
votes
3answers
22 views

HTTP Status 404 - Not Found in Spring MVC 4 application

I have NetBeans Spring MVC project with Maven.But I got the following error: HTTP Status 404 - Not Found. How can I avoid this error? Hierarchy: -FinalWebStore -Web Pages -WEB-INF +
0
votes
0answers
13 views

How to set Default Profile Spring

Here's my scenario: a.xml ----- <beans> <!-- no 'profile' attribute --> <bean id="a" class="com.a.A"/> </beans> b.xml ----- <beans > <!-- no 'profile' attribute
0
votes
0answers
26 views

Socket client sending random data instead of input in Spring

So I am trying to setup a socket connection in Spring that would transmit a stream of data like 00000054C1D4..... to a mainframe machine. I followed this example, removed all the serializer stuff but
0
votes
0answers
12 views

Spring Boot web app not starting in module base project

Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextInitializer error when run spring boot project
1
votes
2answers
182 views

Set timeout to WS https call in Spring (HttpsUrlConnectionMessageSender)

I am trying to set timeout for WS call. I extended WebServiceGatewaySupport and was trying to set to Sender timeout like this: public Object marshalSendAndReceive(Object requestPayload) { W
0
votes
1answers
14 views

Skip number of footer lines in Spring batch

I am using FlatFileItemReader to read a delimited flat file. While I could skip number of headers with field linesToSkip, I wasn't able to skip footers by number of lines.
0
votes
1answers
31 views

transactional doesn't rollback

I use spring 4.3.9.RELEASE Some configs and code: @Configuration @EnableTransactionManagement public class PersistenceContext { @Autowired private DbConfiguration dbConfiguration; @Bea
0
votes
1answers
18565 views

exception sending context initialized event to listener instance of class

I have this class: public class DatabaseHelper { @Autowired static UtilService utilService; public static void fillEmptyTables(){ if(!isSkillsInDatabase()){ utilServi
0
votes
0answers
10 views

Does spring boot support STOMP without Websocket?

I'll make a new project in with an application (one or more instances of a computation process) that connect to a Spring Boot server (which coordinate the instances). To make the app more detached, I
1
votes
1answers
22 views

Bi-directional OneToMany relation out of sync between DB and application

when running my spring boot application, using a debugger the objects in the application are different from the information in the database. The information in the db is correct - the application wron
-1
votes
0answers
17 views

Soft delete in spring boot

How can I carry a soft delete in spring boot, for an array of IDs? I am working on a project where we have to carry out a soft delete based on the primary key, and the file id. What SQL query should I