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

Package recommendation for server's availability status in Java

I am looking for a Java technology for checking availability of Java servers, I will explain: I have multiple Spring Applications running on multiple servers (one app on each server), and want to che
0
votes
1answers
145 views

How to trigger the Spring Boot CRON job automatically when tomcat is up and running?

I have created CRON job using spring boot process and this job will repeat the execution for every 1 hour. From eclipse, it is working fine. Now, Spring Boot application (CRON Job) has exported as war
0
votes
0answers
28 views

How to configure Spring Boot application run inside Eclipse STS

I have a Spring Boot application developed in STS which connects to SAP through SAP Java connector. That connector comes in a jar whose rules forbid renaming or repackaging the archive. Since the app
0
votes
0answers
7 views

how to use pivotal-tc-server to deploy my local web project in macOS

I want to deploy my web application in pivotal-tc-server to collect my spring project information. well, the plugin named "tc Server Support" in IntelliJ IDEA is already configured.It seems like it do
6
votes
4answers
3564 views

Springboot - Resource interpreted as Stylesheet but transferred with MIME type text/htm

I see a number of answers to this question previously but none of the solutions I have tried worked. My login.css is not getting applied to login.html in my Spring Boot application. I am also using T
12
votes
3answers
25891 views

No converter found capable of converting from type to type

I am getting the following stacktrace: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [referencedata.ABDeadlineType] to type [referenc
6
votes
1answers
62 views

'+' (plus sign) not encoded with RestTemplate using String url, but interpreted as ' ' (space)

We are moving from Java 8 to Java 11, and thus, from Spring Boot 1.5.6 to 2.1.2. We noticed, that when using RestTemplate, the '+' sign is not encoded to '%2B' anymore (changes by SPR-14828). This wou
0
votes
0answers
9 views

Sever Sent Event IOException causing uncatchable IllegalStateException

I have an application where clients receive an SseEmitter, the SseEmitter will relay jms messages to the client. There's an issue when the client closes the connection (closing the browser). An IOExc
1
votes
0answers
21 views

Spring/Spring Boot conversion - how to make a chain on Converters?

Please look at the example below: class Foo class Bar class Baz @Component class FooToBarConverter : Converter<Foo, Bar> { override fun convert(source: Foo) = Bar() } @Component class Bar
0
votes
0answers
11 views

Set secure cookie from weblogic.xml for HTTPS

Cookie is defined into weblogic.xml <session-descriptor> <cookie-name>A_JSESSIONID</cookie-name> </session-descriptor> When we use HTTPS connection A_JSESSIONID cookie h
2
votes
0answers
15 views

How can I configure Jaxb2 Marshaller through Spring xml?

im trying to configure JaxB2Marshaller in order to get rid of the special characters that Jaxb is indenting in my marshalled XML before making the request to the webservice . I read a post that said t
3
votes
1answers
41 views

How do I convert this code from Spring to Spring Boot?

I have cut and pasted an MVC MitreID Spring web app into a basic boot web app. When I try and run it I get: A component required a bean named 'namedAdmins' that could not be found The code is: im
3
votes
3answers
40 views

JsonIgnore property if called from entity relation

I'm trying to conditionally @JsonIgnore some fields from an entity if they're serialized from an other entity's collection (many to one). I've tried to add @JsonIgnoreProperties to the collection but
0
votes
0answers
17 views

Problem in Handling Unit of work using Hibernate JPA

I use Spring + Hibernate + JPA I need to handle the list of customers by inserting their orders. Here is the Unit of work : for(Customer customer: CustomerList) { List<Order> orderList
0
votes
3answers
58 views

Spring Dependency Injection in RestController POJOs

Is there a way to inject dependencies into POJOs supplied by Spring RestControllers? For example, if you wanted to implement polymorphic behavior. The following example fails with a NullPointerExceti
2
votes
1answers
31 views

MultipartFile + String as Request Param using RestTemplate in Spring

In my spring boot Application, I need to pass String value along with MultipartFile as Requestparam. Controller is below where I'm converting MultipartFile to java.io.File and then passing it to DAO
54
votes
5answers
21635 views

Missing CrudRepository#findOne method

I am using Spring 5 in my project. Until today there was available method CrudRepository#findOne. But after downloading latest snapshot it suddenly disappeared! Is there any reference that the method
0
votes
0answers
13 views

SQLSTATE(08006), ErrorCode(17002) When Using HikariCP JDBC Connection Pool

In our Server we are using scheduler to perform a particular tasks. There are already many scheduler running on the server which are working smoothly and Perfrorming DB Operations without any hurdle.
0
votes
1answers
17 views

Couldn't create org.apache.maven.archetypes:maven-archetype-quickstart in Mac

I couldn't create a new maven project in spring test suite. Getting the following error Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.4 from any of the configur
0
votes
0answers
13 views

Connect multiple authentication mechanisms Spring Boot Security

I have a security configuration for my application that authenticates the user via LDAP. This works out pretty fine, but now I'd like to add another AuthenticationProvider that does some more checks o
5
votes
1answers
2596 views

Spring Data Rest : How to expose custom rest controller method in the HAL Browser

i have created a custom rest controller and I can access the API and get the result from the resource, the problem is, it doesn't appear in the HAL Browser.. how to expose this custom method in the HA
1
votes
1answers
60 views

How to get mongodb objectId from HTTP response

I am testing an endpoint that saves an object in the database. Post method works as intended and object goes to database. I am trying to figure out how to get the mongo objectID from the HTTP response
0
votes
1answers
28 views

Spring Security: Rest endpoint is not found after securing with @Secured

I am trying to secure a REST endpoint via the @Secured annotation of Spring Security. My main application (Spring Boot App) with the security config and the rest controller are in different packages a
0
votes
0answers
13 views

Deployment error while using Spring Integration with Spring MVC

I had done a poc on SI in a spring boot application where I was able to send and receive mesages from TcpOutBoundGateway. Now I'm trying to merge my sample spring integration module to my actual enter
0
votes
1answers
24 views

Flyway dependencies can't be resolved after changing branches

I am working on a separate branch on a project, in which I had to implement Flyway. It worked out well, after I staged, committed and pushed everything to my branch. I have done the checkout to the m
2
votes
4answers
2819 views

MapStruct - @Mapper annotation don't create bean

I downloaded application from this source https://github.com/springframeworkguru/spring5-mvc-rest/tree/vendor-api And I have a problem with MapStruct. @Mapper public interface CategoryMapper { Categ
0
votes
0answers
11 views

Exception in thread "main" java.lang.NoSuchMethodError: org.slf4j.impl.StaticLoggerBinder.getSingleton()

Spring Boot Application I am making a Tag Reader Application where am keep Getting This issue Note: i am not using any Property file input This my Simple Spring boot application import org.sp
0
votes
0answers
27 views

Naming a function getTaxonomyId makes my app to crash, all other names are fine

I've got a Spring Boot 2 app, using Spring Data on an Oracle Database and the following issue happens in an entity. First of all, I was trying to code the following: @JsonProperty(value = "taxonomy_
0
votes
1answers
15 views

spring boot application according to ldap groups

I 'm using ldap authentication to secure a spring boot app. I want to authorize endpoints for specific groups of ldap server. Any suggestions? Here's my SecurityConfig.java file. @Override protected
1
votes
0answers
11 views

Spring Cassandra: Creating Schema in run time in another keyspace

I have Spring Boot 2 project with spring-cassandra where I am creating keyspace in runtime with @RefreshScope and I am executing query to use that keyspace but the schemas are not created from the ent