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
13 views

Spring security - configuring classes | AuthenticationManagerBuilder

I am trying to configure class that extends WebSecurityConfigurerAdapter. class SecurityConfig extends WebSecurityConfigurerAdapter { } and in the class I have such defined function: @Override
0
votes
3answers
18 views

Spring Hibernate TransientPropertyValueException after deleting oneToOne

I need some help resolving a Hibernate TransientPropertyValueException We have two entities: @Entity @Table(name = "TABLE_A") public class TableA { @Id @Column(name = "EXT_ID", nullable = fa
1
votes
2answers
16 views

Where should I put the bean definition in Spring MVC project?

I am not familiar with Spring MVC. I found that there should be a root application context and web application context in a typical spring MVC project. These two xml files (when using the xml approach
-1
votes
0answers
10 views

Intercept database Queries (using NamedParameterJdbcTemplate) executed from particular method signature AOP

I need to log all the database queries from a certain methods that have method signature of (Object x, Map) using spring boot AOP. Below is the code. My class Class ABC { getEmployeeRecord(Object x,
0
votes
1answers
30 views

Can't enter a method in debugging mode in IntelliJ?

In debugging mode, once I finish the debugging in one method, and need to return to the caller, the program gets stuck because it enters into the logic of external library's code, i.e. spring framewor
2
votes
1answers
25 views

Determining Subclasses Types with Attribute

I have the following class hierarchy Promotion - abstract - Coupon - Sales - Deals (Coupons, Sales and Deals are all subclasses of Promotion) and would like to determine the type of the
0
votes
1answers
32256 views

Request processing failed; nested exception is java.lang.NullPointerException

i created a form and on post i want to save those values to the database and show the saved values on the page. i am new to spring mvc and hence i am not understanding where i am going wrong. Here is
0
votes
0answers
15 views

Spring rest service. Invalid chunk header

I have spring rest controller like this. The request has content-type as "application/octet-stream" and it has gz file in body. I am parsing gz body in byte[]. public ResponseEntity<String> tes
0
votes
0answers
12 views

Spring @JsonFormat set date with one day less

I have a problem with Date and Jackson. If in the DB the date is "11-06-2018", when I get the output value the result is "10-06-2018". In the model file, I declare the field like this: @Temporal
0
votes
2answers
1323 views

LDAP: error code 50 - The entry [email protected],ou=People,o=Drive,dc=company,dc=com cannot be added due to insufficient access rights

I am trying to add account to OpenDS running of windows. I am using spring, opends2.2.1, hibernate and Jboss 5.1 When I tried to add the user, I get the following errors. javax.faces.FacesException:
1
votes
1answers
31 views

How to bind data for shared fragment only once for all controllers and pages?

I want to show category list in all pages. I have this code for showing items in nav.jsp: <c:forEach var="category" items="${categoryList}"> <p><a href="showCategory?id=${catego
0
votes
0answers
16 views

How to edit existing .SVG file with java

I'm working on a java project and that required to edit .svg file and put some text on runtime. i don't know how to do this in a optimal way, please guide me? following is my .svg file: I want it
0
votes
1answers
14 views

Jpa repository findBy method signature with multiple or operators?

I have Entity class for Product like this: @Entity public class Product { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Integer ID_product; @NotNull private String prodName;
0
votes
2answers
28 views

How to log request body using spring boot and aspect

I have created an aspect to log the request body passed in a controller function: This is what i am trying @Pointcut("execution(* com.test.test.test.controller.*.* (..))") public void executeContr
2
votes
2answers
505 views

Spring Integration - handlers vs interceptors

In Spring Integration, handlers and interceptors look like they basically achieve the same thing. There are even some 'duped' implementations, such as MessageTransformingChannelInterceptor and Messag
0
votes
1answers
15 views

Spring Boot MongoDB Indexed with expireAfterSeconds to Auto delete Document does not work

I have a problem with the "time to live" settings in MongoDB. I created an Indexed Annotation in my Spring-Boot 2.0.2.RELEASE project in my Entity which represents my Document in the MongoDB. I set th
0
votes
0answers
20 views

How to run mysql update batch query in Hibernate?

I've got a mysql (SQL) batch query: START TRANSACTION; UPDATE home SET currentSeq = 2 WHERE resId = '6hiuxhqkw4s1bta9a'; UPDATE home SET currentSeq = 4 WHERE resId = 'hpvihvzk0vainpkgg'; UPDATE home
10
votes
4answers
43850 views

cvc-elt.1: Cannot find the declaration of element 'beans'

I am trying to get a bean object to authenticate the user login functionality with Spring Security: ApplicationContext context = new ClassPathXmlApplicationContext( "com/humandevice/d
0
votes
1answers
19 views

AOP advice on methods other than execute method of spring batch tasklet not being applied

This issue has started after migrating from spring 4.1.2 to 5.0.5, spring batch to 3.0.9 to 4.0.1 and hibernate 4.2.0 to 5.2.16 I have a spring batch tasklet of the format - public class MyTasklet i
0
votes
1answers
13 views

hibernate relationship can't found foreign key on annotation way

I'm new to hibernate try lean hibernate relationship and have tow table, relationship is one to many create table student( id bigint primary key auto_increment, name varchar(20), stude
-1
votes
0answers
6 views

Spring and Angular: How and In which format JSON data and file send in the same request

Hello I am now working on spring and angular js for backend Hibernate and mysql I am using I have one form in that form I have many fields like email password and also sending image as file input My
0
votes
1answers
19 views

Spring Hibernate - Self joined many-to-many entity can't be updated

I'm trying to add a comment to a parent if it belongs to it. Comment is a self joined many-to-many entity, as attached below. In this function, I'm trying to find if a Comment belongs to a parent, by
-1
votes
0answers
10 views

How to access Spring boot oauth2 google auth APIs from react.js app

I secured my Spring boot rest APIs using Google oauth2 authentication, Provided login button with window.location.href for API call After Authentication When I am trying consume APIs using fetch fu
0
votes
0answers
8 views

How to set mod_reqtimeout in spring boot and embedded tomcat?

I have spring boot application that uses embedded tomcat and i want to set mod_reqtimeout to prevent slow http dos attack. how can i set or initialize this module in spring boot configurations? acune
1
votes
2answers
486 views

Render a template as string in a service in Grails 3 rest-api profile app

I've created a Grails 3.2.1 app with rest-api profile and want to render a GSP template as a String. For this I first added, apply plugin:"org.grails.grails-gsp" in build.gradle then based on the code
0
votes
0answers
516 views

java spring mvc many to many

I'm trying to make a many-to-many example app with spring mvc and hibernate. I have 2 classes, book and author. I've mapped these 2 class created all relations, but the problem is I can't add values
0
votes
1answers
11 views

Spring Webflow : Skip view-state/ transition auto-select

I wrote a spring webflow. This webflow have some action-state/decision-state then come to a view-state. Normally the user should select a button or link to choose a transition. What i need is when t
79
votes
3answers
52993 views

Spring DAO vs Spring ORM vs Spring JDBC

I was going through data access technologies supported by Spring, and I noticed that it mentions multiple options and I am not sure about the difference among them: Spring-DAO (http://docs.spring.io
34
votes
4answers
16792 views

About multiple containers in spring framework

In a typical Spring MVC project there two "containers": One created by ContextLoaderListener and the other created by DispatchServlet. I want to know, are these really two IoC container instance?( I
0
votes
0answers
12 views

Getting "Scope 'step' is not active for the current thread" while creating spring batch beans

In my Spring batch configuration, I'm trying to setup a partitioned step, which accesses values from JobParameters as follows : @Bean @Qualifier("partitionJob") public Job partitionJob() throws Excep