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

1
votes
1answers
12 views

chain scheduled tasks java spring

Every 5 minutes, 2 tasks run, one that updates, one that calculates. The one that updates should always run first, but doesn't have to know anything about the calculator and visa versa. Is there any
0
votes
1answers
25 views

Creating an independent copy of the entity

I'm creating a new list. I write objects to the new list from the list of entities. Then I will clean items from the list of entities appropriately, which also results in the removal of objects from t
3
votes
1answers
20 views

how to call MySQL stored procedure in spring boot using hibernate?

I have written some logic in MySQL stored procedure.I am using spring boot with hibernate. I have a login procedure with IN OUT parameters. From my login procedure I want to pass message to user. But
0
votes
1answers
14 views

JHipster registry, change properties value in spring cloud config server

I'm trying to migrate from monolithic web application to microservices. For doing this I'm using JHipster v 4.11.1 (very helpful!). My problem is: In JHipster registry (central-config folder) I wrot
0
votes
0answers
6 views

AWS : GET Request from app on ElasticBeanstalk failed with Network is Unreachable

We are currently facing strange behavior of our application hosted on Elastic Beanstalk and would like to pick your brains. Appreciate in advance. One day on middle of December 2017, we made a small
0
votes
1answers
19 views

Want to save another table while saving the table having joinColumn between them

I have two classes having link by joinColumn and has onetoone relationship. I want to set field of one table while setting object of another.Need a help as i am new to it.. Reserve.java class Reserv
0
votes
2answers
118 views

JHipster integration tests fail when I used liquibase to change model data

Summary: I updated my classes, test classes and my database to login with email. I wrote a liquibase's changelog to make database's changes. Running the project, all worked fine but if I execute integ
1
votes
1answers
53 views

java.lang.AssertionError: Response content

I've just started learning Spring framework and when I try to run a test for a simple rest controller I get this error: java.lang.AssertionError: Response content Expected: "Hello!" but: was "" w
0
votes
0answers
40 views

Spring MVC and external Oauth2 server with Resource Owner Password Credentials Grant

I have a spring MVC application and a remote OAuth2 authorization server. Remote server should be used to log on to the web and mobile application and also to authorize micro services. OAuth2 server f
-2
votes
0answers
29 views

String index out of range: 4 in jsp

I am keep getting below error,when i am submitting the jsp page with some field (suppose abc and xyz) then I moving to second jsp page and on this there are six tabs and each tab contains one jsp page
0
votes
2answers
15 views

How do I fix this Spring Boot entity relationship Error "creating bean with name 'entityManagerFactory' Unable to map collection"?

I am trying to create a secure login and I'm doing this by assigning a user to a role which will determine what kind of access they can have. My code has no errors but when I try to run the server I g
0
votes
0answers
8 views

How to encode field entities in URL in Spring MVC?

I made a form submit application via Spring MVC. After submitting the form, all values of input fields are visible in url. let's suppose that after submitting the generated URL is this: SpringTuto/s
0
votes
0answers
15 views

set value to Cacheable annotation from property file

I'm using Spring Cacheable annotation and at the moment I'm struggling with a way of adding the cache name from property file. I tried: @Cacheable("${some.cache.name}") and @Cacheable("#{'${some.
-1
votes
1answers
33 views

unable to create month through shell script

I am trying to create path to archive files through shell script in the path /folder1/folder2/archive/YYYY/MM/incoming The shell script: #!/bin/bash BACKUP_DIR=/folder1/folder2/archieve YEAR_DIR
-1
votes
0answers
32 views

ConversionNotSupportedException while calling action of struts in Struts-Spring-boot migrated project

I have migrated the struts 2.5 project to Spring boot 1.5.9. All actions are working correctly except the one below. It is not able to instantiate struts Action for "getXXXInfo", hence not getting cal
0
votes
0answers
17 views

Spring session replication with mongodb not working as expected

I am replicating session using mongodb below is the configuration I am using @Configuration @EnableMongoHttpSession public class MongoSessionReplication { @Bean public AbstractMongoSessionConverte
0
votes
0answers
12 views

Spring and Feing Client with PEM Certificate

I have problems trying to establish a connection with a server using Feing Client. This server needs a certificate that the company gave to me in PEM format. I saw that, making this petition with CUR
0
votes
0answers
13 views

Test JSON from paginated request with Rest Template instead of MockMvc

I have written a test for a paginated request. I've used MockMvc since it allows to easily test JSON. The test works correctly. However @AutoConfigureMockMvc annotation on the test class launches spri
0
votes
1answers
31 views

Ldap user authorization failed - Unhandled Spring authentication "Access is denied"

Question: Ldap user authorization failed - Unhandled Spring authentication "Access is denied" We have REST services we would authenticate for using with ldap. The REST services without the ldap secur
15
votes
3answers
10042 views

Spring RedisTemplate : Serialise multiple Model classes into JSON.Need to use Multiple RedisTemplates?

I am using Spring Redis support to save my objects in Redis. I have several DAOs which handle different Model classes : eg : 'ShopperHistoryDao' which will save/retrieve objects of 'ShopperHistoryMo
0
votes
1answers
20 views

How to load JNDI context from the file system into Spring?

I ran the following code: Hashtable<String, String> environment = new Hashtable<String,String>(); environment.put( Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSC
0
votes
0answers
38 views

Spring: Define AbstractRoutingDataSource which's targetDataSources are filled from seperate (H2-)DataSource

I try to setup a spring/spring-boot project which has an AbstractRoutingDataSource whichs targetDataSources should be filled from a separate DataSource (actually embedded H2-DataSource). I have tried
1
votes
3answers
3030 views

When running test class, properties can't be read properly from .properties file by using @Value annotation, in Spring Maven project

//Update After viewing helpful comments, I realize the problem should then be, how to unit test method using values read from properties by @Value . // I am working on this issue for days, I am wri
35
votes
4answers
33126 views

Spring MVC "redirect:" prefix always redirects to http -- how do I make it stay on https?

I solved this myself, but I spent so long discovering such a simple solution, I figured it deserved to be documented here. I have a typical Spring 3 MVC setup with an InternalResourceViewResolver:
2
votes
0answers
183 views

Spring data JPA native query skip locked

I want to execute a SKIP LOCKED query on Oracle using Spring Data JPA, so I tried the following: @Lock(LockModeType.PESSIMISTIC_WRITE) @Query(value = "SELECT * FROM User WHERE ID=?1 FOR UPDATE SKIP L
0
votes
0answers
25 views

Can Spring JPA Auditing audit the User Entity itself?

Here is what I am trying to implement in Spring Boot- public class User extends AbstractAuditable<User, Long>{ Long userId; String userNAme; String password } When I try to run
0
votes
1answers
12 views

Sending file object to Spring Rest controller through angular 5

I am trying to upload a file on client side and send HTTP Post request to Spring Rest Controller. But when I receive the file object in Rest controller I could see it as 'null'. HTML code : <inpu
0
votes
1answers
24 views

Binding nested properties in Spring MVC forms

I am having problem with binding nested object properties in Spring mvc 4. Here is the scenario: Form.java: @Entity @Table (name = "form") public class Form implements java.io.Serializable{ @Suppr
0
votes
0answers
17 views

Angular + Spring mvc : Getting Invalid CORS request error when making server call

when i tried to login from my angular login page. I am getting following. and response saying 'Invalid CORS request'. Request URL:http://127.0.0.1:8088/myproduct/login Request Method:OPTIONS Status C
1
votes
0answers
41 views

I can not get value from the controller (Spring MVC)

I'm a beginner in spring programming. (i'm not good in english) I have a problem that I can not get value from the controller. My previous jsp worked fine, but I did not work with this project about a