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
0answers
3 views

Spring Security Request method 'POST' not supported

I'm using Spring Boot and I want to add custom login page in Spring Security. I'm using AngularJS too. When I'm trying to login I have this error: "Request method 'POST' not supported". SecurityConfi
1
votes
2answers
10 views

How do I import configuration classes in a @DataJpaTest in a SpringBootTest?

I have a SpringBoot Application and I a config package with @Configuration @EnableJpaAuditing public class PersistenceConfig { } But the PersistenceConfig does not get picked up in a PersonReposito
0
votes
0answers
2 views

grails-errorhandler with Spring Security3

2017-04-30 19:04:47,198 [http-bio-8083-exec-5] DEBUG rest.RestCasAuthenticationFilter - Request authenticated. Storing the authentication result in the security context 2017-04-30 19:04:47,
1
votes
3answers
3249 views

Initial amount of memory to run a Spring Boot application

Is there any initial amount of memory I should set to run a Spring Boot application? For example, to run a embedded Tomcat/Undertow application we could set a typical amount of memory for -Xms and -X
0
votes
0answers
14 views

Spring + HibernateTemplate + AOP for transaction mamangement not working

I am using simple "helloWorld"ish application to learn Spring,Hibernate and transaction management using AOP. But is not working as expected. I am getting exception in transaction management. Details
0
votes
0answers
10 views

Correct Error Handling in Spring Statemachine

I am evaluating Spring Statemachine and would like to understand how to recover from a transition error. I defined an error action for an action executed during a transition. The execution of S1
0
votes
0answers
10 views

Updated information is not reflecting in mysql databse

I have setup a project by referring this blog but instead of using maven I have used gradle. Registration and Login Example with Spring Security, Spring Data JPA, Spring Boot Everything works fine ex
0
votes
1answers
15 views

NoSuchMethodError on startup of webapp

I'm getting an exception on startup of my webapp java.lang.NoSuchMethodError: org.springframework.data.util.ClassTypeInformation.from(Ljava/lang/Class;)Lorg/springframework/data/util/ClassTypeInforma
0
votes
0answers
13 views

Deployment Failed

How to solve Deployment failed issues? "The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instance
0
votes
2answers
18 views

java.lang.UnsupportedOperationException adding to a list

I have some really strange problem. I want to call the method called create but unfortunately the server throws error, but I don't know why. Here is my sample REST controller import org.springframewo
0
votes
0answers
15 views

hasRole always return 403

I can't seem to get my security configuration right. No matter what I do when using hasRole my endpoints always return 403. Also I can't get anything to work unless I duplicate my antMatchers under b
0
votes
2answers
53 views

How to connect @ManyToMany relationships in Spring

I am creating an application that uses a many to many relationship between employees and shifts. However, I am having difficulties in understanding how I can assign/connect an employee to a shift.
0
votes
0answers
8 views

Spring websocket (STOMP) registration

Good day! I have a simple chat with Spring websocket and STOMP. In some examples I have seen authentication with spring-security-web and spring-security-config - something like @Configuration @Enabl
0
votes
0answers
7 views

Distinguish between Connect Timeout and Read Timeout with okhttp

I am using okhttp with ribbon using spring. I wish to retry on another service instance on connect timeout but not on read timeout(for obvious reasons). This retry will be handled by a custom ribbon r
0
votes
1answers
16 views

How to configure jenkins to build and run spring boot project periodically?

I have spring boot application(maven build) and I want to configure Jenkins to pull code from GitHub and build project, finally run the project and stop building while the application is still running
0
votes
0answers
13 views

Different Hibernate save() interpretation

I making my first Spring+Hibernate+PostgreSQL project and faced a strange behavior of the hibernate interpretation of getCurrentSession().save(). Here my entities: @Entity @Table(name = "orders") @C
0
votes
0answers
7 views

Springboot web mvc JSP dispatcherServlet ERROR and page edit not?

I have 3 page for index, add and edit with jsp this my problem is on edit.jsp doesn't passing value from input and any servlet error from springboot, this is my source from github https://github.com/a
0
votes
1answers
16 views

CrudRepository not returning database elements from API

I'm building a Spring boot app which populates data into a hibernate database. I have written DAOs which pull data from an external API and load them into my database (this works fine). However, I'd l
0
votes
0answers
7 views

grails 3 multipart request with spring security

I have a grails 3 rest application, with a call to save uploaded files. def saveAll() { request.fileNames.each { filename -> if(!filename.empty){ File file = params[filenam
0
votes
1answers
22 views

Spring REST error 500

I am implementing REST service using Spring. When i call delete function the request doesn't reach controller and from JS i receive error: angular.js:12587 DELETE http://localhost:8080/Guard_Server/re
-1
votes
0answers
15 views

How to display list of mail ids as per domain name by using java

I want to implement Google search for list of mail id's to display to customer as per user given domain name like https://clearbit.com/ . I want same functionality.please help me what are the steps by
0
votes
0answers
7 views

Returning a view with Spring Reactive Web

When trying to return a view with Spring Reactive Web, in the same style of Spring MVC, it does not find any view. Are there no view resolvers registered by default? With the view index.html in the r
0
votes
1answers
11 views

Spring + Hibernate annotatedPackages tag not working

I have annotated class package com.kaushik.winnersoft.data; @Entity @Table(name="Customer") public class Customer { int id; String name,surname; @Id public int getId() { return id; } public void
0
votes
2answers
19 views

Calling Spring Reactive Web controller through Javascript

I'm trying to find a way to call a Spring Reactive Web controller using Javascript, so I can get a "streamed" result from the backend, building up the results in my UI progressively. There seems to be
2
votes
2answers
697 views

Write a Spring Web Socket project without SpringBoot or Maven/Gradle

How to create a Spring Java Web socket project with XML or Java Config but without Spring Boot. Where can I find a step-by-step tutorial. I dont know how to use spring boot in ecliplse. Also I dont wa
9
votes
2answers
8048 views

how do i get transaction info in spring whether transaction is committed or rollback in a declarative transaction management

i use following declarative spring transaction. <!-- Declare a transaction manager--> <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"
0
votes
1answers
27 views

Spring Data Rest projection does not work for single resources

I have the following projection written for an entity class. @Projection(name = "instituteProjection", types = { Institute.class }) public interface InstituteProjection { String getOrganizationN
0
votes
1answers
11 views

antMatchers that matches any beginning of path

I've got REST Service that will be used for authentication. The authentication endpoint will look like /api/v.1/authentication. The api version is a variable that can be changed to reflect updated ver
0
votes
2answers
41 views

MongoDb with SpringData - global setting to create all indexes in background

We are using: spring-data-mongodb version 1.7.2.RELEASE (but we are open for upgrading) spring version 4.2.6.RELEASE (but we are open for upgrading) MongoDB version 3.2.8 (Not sure about upgrade opt
0
votes
0answers
19 views

index unique strange behaviour

I'm new to spring data and mongo, so may be my pbm is something realy easy... I've got a simple document User with an ID object ID and a login String with annotation @Indexed(unique = true). User ar