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

2
votes
2answers
372 views

Spring auto-add 'X-Total-Count' header

I'm using 'admin-on-rest' UI for my Web-application and it has next restriction: Note: The jsonServer REST client expects the API to include a X-Total-Count header in the response to GET_LIST ca
0
votes
0answers
17 views

Sending email with java: AuthenticationFailedException: Username and Password not accepted

I see the similar questions, but none of them helped me. I am going to send an email using javaMailSender. Although, I am sure, I have utilized the valid credential it complains that my username and p
-1
votes
2answers
17 views

fetching data from two tables and pass it to a list - hibernate and spring

I want to fetch data from two tables using hibernate and concat the result into a single list. I have been on this for days now but seem to be no head way. Here is a snippet of the two tables returnin
-2
votes
1answers
46 views

Controller not working after deploying the application from windows to Linux

I used Spring in a Java dynamic web project and it works fine on Windows, but after I deployed it to Ubuntu VM the controller doesn't work, I also created a .war file on Eclipse Windows and deployed i
0
votes
0answers
12 views

TLV to pojo/bean using binder

I have a Tag Length Value(TLV) message as a03AAAb02BBc04CAT1c04CAT2. Here in, Tag is small-case letter followed by two digit numeric length and value alphanumeric. Need to convert it into existing po
1
votes
0answers
15 views

How to filter emails based on subject while polling in Spring Integration

I would like to poll emails based on subject. If we would like to poll emails which has the Subject as "Test”, the below code fetches all the emails. But we need to filter the ones with subject "Tes
0
votes
0answers
17 views

Spring JPA persistence configuration - BeanCreationException error

I have problems configuring the java persistence. I'm trying from 3 days to use QueryDSL library, with JPA and Hibernate, but I'm crushing against Spring and maven configurations. This is my root-cont
20
votes
7answers
72967 views

Spring application context external properties?

i have a Spring application and its working well so far. Now i want the properties file in an external config folder and not in the packed jar to change things without the need to repack. This is what
0
votes
0answers
7 views

Is there any sure shot way to know Maven is not able to download dependencies because of Internet Access Issue

We will not able to download dependencies because of various Issues. Is there any particular way to find, Internet Access is causing the Issue, so that we can directly check with proxy settings.
0
votes
1answers
10 views

How to send header message in JmsTemplate?

I am trying to insert message header into amq. There is no specific method in JMSTemplate for setting header in amq. when I set like this it will save in StringProperty instead of header. For saving i
0
votes
0answers
9 views

@Autowired Spring service is null in Play Framework 2.6 application

I'm refactoring an application from Play Framework 2.2.x to Play Framework 2.6.x, and in the updated version of the app an @Autowired spring service is null (I didn't use "new" so that Spring would be
2
votes
1answers
15 views

How to update an integer array element in Mongo DB using Spring Data?

We need to update the latitude coordinate (address.coord[0]) whose value is less than 50. How to build the query to do this using Spring Data. The following few snippets show the methods we tried.
0
votes
1answers
6 views

@ApiParam is not working with springfox swagger 2

i'm using Springfox swagger 2 for my api documentation and i have the following controller: HelloController.java import org.springframework.http.HttpStatus; import org.springframework.http.Respo
0
votes
1answers
723 views

How to Change Error Cannot invoke Tomcat manager: Server returned HTTP response code: 403

Error occurred when run an java-thymeleaf-maven-spring application Here am using tomcat7. Here show steps Download project from git-hub mvn clean install shows Build Success mvn tomcat:deploy Bui
2
votes
1answers
6119 views

How exactly does queryForMap() and queryForList() methods provided by the Spring JdbcTemplate work internally?

I am studying for the Spring Core certification and I have some doubt related to the use of the JdbcTemplate use. I know that JdbcTemplate gives me different methods to perform queries (that are writ
1
votes
3answers
525 views

What's the best way to add a new property source in Spring?

I'd like to add a new property source that could be used to read property values in an application. I'd like to do this using Spring. I have a piece of code like this in a @Configuration class: @Bean
0
votes
1answers
12 views

thymeleaf Array index

I want to put a variable Between array's brackets [...] Like : th:value="${MyArray[${cmp.id}].checked}" Here is my code <tbody> <tr th:each="cmp : ${allcomps}" > <td&g
0
votes
2answers
1471 views

Running Spring app as jar, beans not found

When using eclipse, I get no errors, however once i export my project as a runnable jar file and try running it w/ java -jar myjar.jar, it gives me this error. Jun 05, 2014 1:46:22 PM org.springframe
2
votes
2answers
3409 views

Is there a way to access the CXF message exchange from a JAX-RS REST Resource within CXF?

Currently we have a a RESTful API using CXF 2.4.2. In one of my resource methods, I would like to process some query parameters and store the result in the CXF message exchange for an output intercept
0
votes
1answers
48 views

Spring boot custom taglib is not working

I need to create a custom tag in spring boot.Please help me to do this.It is giving null point. Java code with the functionality import java.util.List; public class CustomJstl{ public st
0
votes
1answers
12 views

How to integrate Jasypt with a Spring 4 app with Java configuration?

I want to add properties files encryption with Jasypt in my Spring 4 app (without Spring Boot). The configuration is in Java. I found solution for Spring 3.1 XML config, and for Spring Boot but not S
0
votes
1answers
10 views

Spring application should start even database is not available at startup

I have an old spring application which uses jee:jndi-lookup for datasource. This application running on Tomcat 8. <jee:jndi-lookup id="datasource" jndi-name="java:/comp/env/jdbc/Tomcat8Database"
10
votes
3answers
14430 views

Spring JDBC RowMapper usage for eager fetches

The question is about the best practice usage for RowMapper in master/detail scenarios where we want to eagerly fetch details using spring jdbc. Assume that we have both Invoice and InvoiceLine class
0
votes
0answers
16 views

It helps to show and hide tabs according to the option chosen in the checkbox using JavaScript, Spring and Thymeleaf

I am trying to hide and show tabs dynamically according to the option selected by the user in several checkboxes that are generated dynamically by the system and I am not able to make the tabs show ac
0
votes
0answers
17 views

Map not being initialzed from YAML file values

I have the following YAML File contents: reports: reportPaths: 10: \\\\path\\Reports\\ 10M: \\\\path\\Reports\\ This is my Configuration class for reports. I am trying to read in ya
1
votes
2answers
27 views

Inner static class with @Configuration picked up by spring scanner for all tests. What is wrong?

Spring picks up inner @Configuration for Test1 from Test2. I need a mocked IService in Test2 but a real ServiceImpl in Test1. Also I want to have common TestConfiguration for all my tests. But I alway
3
votes
3answers
14232 views

.Getting a java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V in my spring hibernate application

I'm using spring and hibernate in my application. For building REST APIs, Im using jersey and it is a gradle based project. These are dependencies I've specified in build.gradle: compile 'org.springf
0
votes
0answers
16 views

How to configure Login page in Angular 2 and Spring Security in Rest API

I have a login page developed in angular2 , Looks like service method in angular2 is not calling the rest controller. My angular2 code and rest controller code are in different repo. Angular : ---
0
votes
0answers
25 views

Spring boot xml bean initialization eagerly

I have a similar requirement like here. i.e. from my project, I am referring a library project through maven and initializing xml beans from this library project. But in my case, I have to initialize
0
votes
1answers
5007 views

jpa2.0 + spring3.1 + hibernate4.1 Unable to build EntityManagerFactory

I have deal with it all day, but I didn't solve it. Help me, please. Do I lose some jars? I use Junit4 to test my code, and in the first line code: ApplicationContext context = new ClassPathXmlAppl