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
1answers
14 views

How to create & drop table in mysql using NamedParameterJdbcTemplate?

I know how to insert, update and delete data in mysql table using NamedParameterJdbcTemplate. But how to create & drop table?
10
votes
5answers
13913 views

JDBCTemplate set nested POJO with BeanPropertyRowMapper

Given the following example POJO's: (Assume Getters and Setters for all properties) class User { String user_name; String display_name; } class Message { String title; String questio
0
votes
0answers
30 views

Spring Config Server encrypting issue of "=" sign

Can anyone experience problem while encrypting through config server with values having special characters? Currently I am doing this curl http://localhost:8888/configser/config/encrypt -d eF345edo
0
votes
0answers
7 views

Spring Schedule task for specific time at runtime

Does anyone has any experience with task scheduling in Spring? I understand you can schedule for a fixed time period or interval using annotations https://spring.io/guides/gs/scheduling-tasks/ But
0
votes
1answers
12 views

Spring Exception: MethodArgumentTypeMismatchException

I'm getting and exception that I do not understand. I have a controller, it gives me back a news object and it appears in the Console, so getting the actual news object is not the problem, @RequestM
0
votes
0answers
7 views

TransientObjectException when referenced ManyToOne property has ID of 0

I have a postgres DB, using Spring + Hibernate for persistence. I have an Entity A that has a @ManyToOne relationship defined for Entity type B, creating a foreign key relationship. I do not have any
0
votes
1answers
12 views

Custom media type in Spring Boot REST causes HttpMediaTypeNotSupportedException

Im using Spring Boot 1.5.2 and I have a simple REST controller as follows, @RestController @RequestMapping public class UserJWTController { @Inject private TokenProvider tokenProvider;
0
votes
0answers
12 views

Error creating bean with name 'routeDataUrl': Injection of autowired dependencies failed; nested except

I am getting this error from one week ago, I had tried all my best and gone through all the tutorials and solution on stackoverflow too but did'nt found any answer tried to implement all the answer bu
0
votes
1answers
12 views

How to solve Unparseable date:error in spring-boot

I having difficulty trying to solve an error with my date in Spring. I think i have exhausted almost all the solution on stack overflow an i still do not have a solution. I have implement a customDate
0
votes
1answers
22 views

Spring Webservices using Apache CXF is not getting deployed in the client server (weblogic)

I am working on building spring webservices for an application. I am using apache cxf for creating webservices and maven for building the war. I am using weblogic 12c to deploy the webservice in my PC
-1
votes
1answers
11 views

Spring Cron verification

Could you verify that all my jobs are correctly configured ? I'm not sure for year task //Every Hour @Scheduled(cron = "0 0 * * * * ") public void taskHour() {} //Every Day @Scheduled(cron = "0 0 0
0
votes
1answers
8 views

Best way host own sso Oauth2 service for web / native applications using Spring

I want: central oauth2 server which will hold all user accounts and will provide platform for user account management multiple services which will connect to central oauth2 server to verify user. E
0
votes
2answers
9 views

How do I set timeouts per request using Spring REST Template?

I have an application that makes use of multiple rest clients. Each of those REST clients use the same Spring REST template bean. I was wondering if there was a way to set the timeout value per reques
2
votes
2answers
8716 views

Spring BlazeDS flex.messaging.endpoints.AMFEndpoint

I have been struggling with this today for quite a while, removing everything but the default channels just to get it going. I have resolved all of my library issues (I hope) and now am getting the er
1
votes
1answers
36 views

Rest Controllers vs spring-data-rest RepositoryRestResource

I know this might feel like a duplicate of this. When to use @RestController vs @RepositoryRestResource But I have a few things which were not addressed in that question. With @RepositoryRestResou
0
votes
0answers
8 views

Spring dependencies not being injected into BeforeSuite method?

I am running a spring boot application that uses TestNG as the testing framework. My tests are set up like this: A parent class, which is in charge of setup logic and takes care of all of the configu
-3
votes
0answers
15 views

What does the java configuration equalivant to this look like?

enter image description here Thank You
0
votes
0answers
4 views

load one dispatcher servlet after another

I have a scenario where we have two dispatcher servlet in our web.xml file. One of the dispatcher servlet mentioned below have very minimal beans and starts quickly and pass health check and notifies
0
votes
0answers
28 views

Getting javax.transaction.TransactionManager exception when processing the jms message in another thread

We are using spring jmstemplate for jms message sending and processing. IN the intent of first receiving all the messages from the MQ queue and the process them in the application concurrently each by
0
votes
1answers
15 views

Spring Data JPA: Why does saving this entity work as intended (i.e. parent is thankfully not overwritten)?

I've been follow the Spring Boot Quick Start tutorial on Youtube. On this particular video in the playlist, I discovered something very peculiar. Snippet from CourseController.java @RequestMapp
0
votes
0answers
7 views

SpringXD and Spring Integration: Read from kafka topic every X minutes, then send to another Topic

I'm trying to implement a solution to create a SpringXD stream composed by a kafka source, a bridge module, and a kafka sink. So I have something like: <channel id="pollable"> <queue /&
1
votes
1answers
18 views

Spring Boot and PostgreSQL : Error creating bean with name 'entityManagerFactory' defined in class path resource

I just want to program an spring boot application with a PostgreSQL database So I configured the application.properties like this: # DATA SOURCE spring.jpa.database=POSTGRESQL spring.datasource.platf
1
votes
0answers
12 views

Partial auto-wire Spring prototype bean with runtime determined constructor arguments

The javadoc to ConstructorResolver.autowireConstructor(...) says Also applied if explicit constructor argument values are specified, matching all remaining arguments with beans from the bean facto
0
votes
0answers
14 views

Facing difficulty in creating Request Object in Front End Java Spring MVC, need to replicate following .NET-MVC code into java

I know it's not a good idea to develop front end with these technologies yet if someone can help. Need to replicate following 2 methods in Javaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaa aaaaaaa
0
votes
2answers
180 views

Size and Valid annotation not working in spring mvc project

I use @Size and @valid annotation in my spring mvc project but it did not work and did not display the message which i want to display.
0
votes
1answers
30 views

When using Spring, When is the Form class property stored in the value that's sent from the html form tag?

I should implement like execute(@ModelAttribute RegisterForm registerForm, Model model) in Controller class below. I forgot put the @ModelAttribute. However it works. When is name in RegisterForm clas
0
votes
0answers
12 views

Error during artifact deployment. See server log for details

I'm developing a maven web application with Spring MVC on IntelliJ IDEA and I want to include some unit test to test my controllers. When I want to deploy the project on tomcat server using the IDE, I
0
votes
1answers
42 views

Injecting UserService into SecurityConfiguration in jhipster leads to spring bean circular dependency

I'm trying to configure a jhipster 4 application to use auth0 for auth. When I initially generated the project I selected the JWT options, which seems to work fine and provide JWT support. What I am n
0
votes
0answers
24 views

Spring boot exception handling with controller advice and hosting static pages

I am developing a Spring Boot REST API. It uses @ControllerAdvice and @ExceptionHandler in a class that extends ResponseEntityExceptionHandler to catch exceptions. To get this to work, we added these
0
votes
2answers
20 views

Spring: couldn't autowire field - no beans of type found

I'm struggling this for couple of hours, but couldn't figure what is wrong with my settings... Currently, in the TestController, the engine field is marked with the error "could not autowire. No