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

How to exclude a test from appearing in the documentation

I'm working with Dredd the HTTP API Testing Framework to test my backend apis. Well the idea is that each time you create a test case a documentation will be generated automatically which is a good p
1
votes
2answers
15 views

Using Tomcat in Production for Spring Boot apps

As a novice with Spring Boot , I need to know the following as I could not find google results in a straight forward manner. What application servers do they really use for deploying those Spring Boo
0
votes
0answers
4 views

Webflux webclient and generic types

I am trying to build a generic class that will consume a REST api. The api returns lists of objects depending on the url. I have built a Generic class public class RestConsumer<T> { WebCl
0
votes
0answers
10 views

Spring: handle ambiguous mapping with BadRequest

I'm developing a Spring application, and at the moment I'm implementing a search on our customers registry. A key-pointy of our users request is that the search can be done for at most ONE of the f
1
votes
2answers
15 views

Unsatisfied depedency in spring boot

My model class package com.darshan.spring.model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @En
0
votes
1answers
13 views

AuditingEntityListener is not working for the entity that extends another entity in spring jpa

I have used the @CreatedBy, @CreatedDate, @LastModifiedBy, and @LastModifiedDate annotation on their respective fields. By using @MappedSuperclass,@EntityListeners i able to persist above columns. B
1
votes
0answers
24 views

Spring, Apache Avro, Allargs constructor

I have a problem deserialising messages which have been posted to a Kafka topic. I'm using spring-boot, spring cloud stream, apache kafka, and apache avro. The object I am trying to deserialise has
0
votes
0answers
5 views

Spring JPA working with many unrelated tables

I'm working on the back-end of an administration console (Angular Material) that should allow users to filter, create, update and delete rows on a single PostgreSQL DB schema. The DB consists of 80 ta
1
votes
0answers
29 views

Spring Bean Overriding throws error in JpaAuditingRegistrar

Switching to Spring-Boot 2.1.0.RELEASE bean overriding is not allowed by default anymore. This causes following error: ... Caused by: org.springframework.beans.factory.support.BeanDefinitionOverrideE
0
votes
0answers
9 views

Can Spring-EL expressions be executed within a sandbox?

I am using Spring-EL to create dynamic csv-field to class-field mappings used in different Spring-Batch import jobs. (Different input files, same output classes). This is working very good but the ide
3
votes
2answers
4328 views

Best practices on rest client using spring RestTemplate

I have read some tutorials about implementing REST client in java web application that use SPRING to manage beans. Every example I found, every time doing a REST request it creates new RestTemplate.
0
votes
1answers
25 views

Spring MVC app: No qualifying bean found for dependency [JpaRepository]

I'm trying to get Spring to autowire an interface ReviewRepository which extends JpaRepository. I've followed multiple tutorials and tried to reconfigure the app over and over but I'm still getting th
41
votes
12answers
50155 views

Spring Rest POST Json RequestBody Content type not supported

When I try to post new object with post method. RequestBody could not recognize contentType. Spring is already configured and POST could work with others objects, but not this specific one. org.sprin
0
votes
0answers
8 views

Get Current User for Delete Trigger - Spring MyBatis - Liquibase

I have a Spring services project that uses MyBatis and Liquibase. I've made an audit table that has triggers for INSERT/UPDATE/DELETE. With INSERT/UPDATE I'm already storing the user id so it's not a
0
votes
1answers
14017 views

SOAP - don't know what my endpoint URL is

I hope this problem is extremely simple and it's just me being an idiot. I am new to SOAP and am attempting to set up a SOAP WebService (using Java and Spring) and then using the tool SoapUI I attempt
0
votes
3answers
53 views

@Query annotation with custom Class Spring Boot Java

question for JPA-Users, is the following somehow possible? @Query(value = "SELECT * FROM Users u WHERE u.status = :sampleClass.status", nativeQuery = true) List<SampleClass> findBySampleClas
0
votes
1answers
15 views

Customize Path to REST params in Pageable

I am using spring to build a REST api with PageAble, to get numberofPages,itens... first, i did a mapping like this public ResponseEntity<Data> findByName(@PathVariable(value="name",required
1
votes
1answers
20 views

Error: Failed to execute goal on projectorg.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile

I tried configuring spring framework in eclipse. And try building a sample. It is giving me the following error. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0
0
votes
1answers
18 views

Spring Boot Mail send email using acces token

I have simple mail sending functionality in project which configured in one bean. @Bean public JavaMailSender javaMailSender() { JavaMailSenderImpl javaMailSender = new JavaMailSenderImpl();
0
votes
2answers
25 views

How can I return a response Body with Spring Rest MVC when i have also to return a Web page for MVC process?

This is my Code, i know that i should not make 2 return statements, but just for explaining my issue. Thanks @PostMapping @ResponseStatus(HttpStatus.Created) public String addStudent(@RequestBody Stu
0
votes
2answers
26 views

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'controllery'

I want create Rest Web Services And it worked . I changed the code and now i have this error : org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name '
0
votes
0answers
31 views

Spring, 1 form 2 entities

I want to save 2 x entity, author and book from a single form. How I can do this? I know I must first save author, but I don't know how. Author is in a one-to-many relationship with book. I have se
12
votes
2answers
2606 views

Stomp.js is out of date and no longer maintained - which Stomp client to use with Spring Websockets?

I found it surprising that the current documentation for the Spring WebSocket Support directs users to use stomp.js for their client-side JavaScript implementation. This project, on the ReadMe on it'
1
votes
1answers
22 views

Java Outbound Adaptor processing

I have created an application that adds inbound adaptors at run time for ftp servers and registers them for removing at a certain stage if needed, this app will pull a csv file from ftp server(s) and
0
votes
0answers
18 views

Spring Boot LDAP authentication and matching with database users

I have a Spring Boot MVC application which uses LDAP for authentication. This works fine, but now I have to match authenticated user (from LDAP repository) with users from my database. I created LDAP
5
votes
3answers
6528 views

Configure spring boot to redirect 404 to a single page app

I want to configure my Spring Boot app to redirect any 404 not found request to my single page app. For example if I am calling localhost:8080/asdasd/asdasdasd/asdasd which is does not exist, it shou
2
votes
3answers
60 views

How do I get multiple default values in properties across different profiles?

I have a few microservices with the same configuration, with each depending on a Spring profile. @ConfigurationProperties takes the values that I have in my YAML application profile file. I want to mo
0
votes
0answers
33 views

how to provide different transactional 'timeout' value based on different work environment

In my Spring 4 based project somehow I can not use @Transactional annotation and <tx:annotation-driven> ( as I want to make 'timeout' property's value configurable and want to read it's value fr
6
votes
8answers
13903 views

Spring boot with redirecting with single page angular2

I have a single page angular app with spring boot. It looks like the following src main java controller HomeController CustomerController OtherController webapp js
0
votes
1answers
10 views

Validation failed for query method with aggregation function

I wrote this query method in Spring: @Query("SELECT MAX(TO_NUMBER(ban.codiBanca)) FROM DBanche ban WHERE LENGTH(TRIM(TRANSLATE(ban.codiBanca, '0123456789', ' '))) IS NULL") public BigDecimal getMaxCo