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

The best host for angular 5 e-commerce?

I'll an e-commerce digital download store using Angular 5, Java Spring and MySQL. What's the cheapest hosting and domain solution for this angular 5 app? I'm expecting around 200+ clients a year pay
1
votes
1answers
482 views

hibernate.hbm2ddl.auto create-drop with production Database

I am in need to clarify below , Is it mandatory to set the hibernate.hbm2ddl.auto property If we are using Hibernate. hibernate.hbm2ddl.auto create-drop will affect any thing in the production DB
2
votes
3answers
8607 views

How to build a dynamic url in spring mvc

I am trying to send one url which I will generate on basis of some dynamic value. But I don't want to hard code it nor want to use response or request object. Example:- http://localhost:8585/app/imag
0
votes
1answers
28 views

How Is Maven Helping me in the Spring Tutorial

I followed this Getting Started with Spring/Maven Tutorial to well, get started with spring and maven. I thought Maven helps me with deploying libraries/dependencies etc. But in the tutorial for maven
0
votes
1answers
14 views

How to avoid complex Model class in Spring boot?

I have a json request message which I am going to receive in my restcontroller. { address:{ addressline:{ phone:{ primary:"989898000", secondary:"00909000"
1
votes
2answers
71 views

Appengine multiple modules local dev - Java

I have 3 java modules using Google Appengine Standard: The first one module uses Java 7 with Servlet 2.5 + web.xml + Spring 4 The second module uses Java 8 with Servlet 3.1 without web.xml + Spring
0
votes
0answers
3 views

error when using Requestmapping at class level

I am trying to write a basic Spring Rest hello world example using Spring 4. But I am getting 404 error when trying to use @RequestMapping with @RestController at the class level. When I remove the @
0
votes
0answers
5 views

Issue with Mockito and JpaRepository

I have a Spring boot project that I'm migrating to Spring boot 2. Some of my tests that where working with the previous version are failing with the new version. The issue is easy to reproduce. I cr
2
votes
1answers
28 views

Spring: avoid logins during night/weekend for non-admin

We are working on an authentication system, using Spring 5 (I'm new at using this Framework). We use AuthenticationManagerBuilder, and, for security reasons, I have to extend the system to avoid tha
0
votes
2answers
30 views

Why the java saveSpreadsheetRecords method limits in 65535 rows to write an xls file?

I'm implementing the snipet code bellow to export an xls file in the browser in a spring application : @RequestMapping(method = RequestMethod.POST, value = ResourcesPath.EXCEL, consumes = Med
0
votes
1answers
35 views

Dynamically fetch associated entities

I have 3 entities Project.java @Entity public class Project { @Id @GeneratedValue private Long id; @Column(nullable = false) private String name; @OneToMany(mappedBy = "pro
0
votes
0answers
6 views

Spring-security way of authenticating a user

Let's say a user can authenticate via: username + password preauthenticated token (including username) + totp code preauthenticated token (including username) + backup code etc. After reading Spr
0
votes
0answers
8 views

How to get a csv list from JdbcTemplate?

I have the following sql query and would like to use it with JdbcTemplate from spring: String sql = "SELECT name, age FROM EMPLOYEE WHERE age >= ?"; List<Employee> employees = jdbcTe
1
votes
2answers
1200 views

When to use service or component in spring?

When to use service or component in spring? For example, is a module responsible for sending email or common business logic a "service" or a "component"? and what's the difference? Is a service able
0
votes
0answers
5 views

springmvc mustache - form not submitted to controller

I'm unable to read the form that i submit from mustache.ms file to java controller My mustache file, <body> <form method="POST" id="updateItemSubmit" > <table style="width:100%"
2
votes
2answers
1298 views

What is Hystrix in Spring?

Can some one please explain me about Hystrix. I googled it, but still I am not clear. What is Hystrix? Why do we use Hystrix? Please provide me an example of Hystrix usage. Thanks for any help.
0
votes
0answers
43 views

Implementation can't be assignable from Interface?

Assume I have: public interface A { BigDecimal getAmountValue(); void setAmountValue(BigDecimal amountValue); String getCurrency(); void setCurrency(String currency); } and
2
votes
0answers
15 views

Spring WebFlux: Serve files from controller

Coming from .NET and Node I really have a hard time to figure out how to transfer this blocking MVC controller to a non-blocking WebFlux annotated controller? I've understood the concepts, but fail to
0
votes
0answers
9 views

Failed to write HTTP message: no properties discovered to create BeanSerializer

I am getting error 500 on this one. I have already added in my java but still can't get any data from the java @JsonIgnoreProperties({"hibernateLazyInitializer", "handler"} This is the error Failed
12
votes
6answers
11886 views

Spring Boot logging pattern

I have a problem with configuration on Logback in a Spring Boot application. I want my consoleAppender to look like the default Spring Boot console appender. How to inherit pattern from Spring Boot de
-2
votes
0answers
15 views

Spring WebSocketStompClient fails to create more than 2100 StompSession

I was testing the spring websocket performance, and I am able to create 2100 StompSession but after that, I get the below error: 2018-03-13 14:50:20.896 ERROR 21402 --- [ main] o.s.w.socket
1
votes
2answers
48 views

Kill slow queries in REST API Java Spring Boot

We're designing an API Rest with the following technologies : spring-boot 1.5.7 spring-data-jpa MySQL 5.5.59 It's a Java REST API designs with spring-boot and connected to a MySQL database via a
1
votes
1answers
26 views

Spring Data REST making range check with QueryDSL binding

I have request like this: http://localhost:4000/services/querywithdsl?min=30&max=90 My domain entity only consists of id : @Entity @Data public class ServiceNumberPorting { @Id @Genera
0
votes
1answers
8 views

Spring Integration message polling

I have a Spring configuration setup for polling messages from a db queue: <int:annotation-config default-publisher-channel="messageChannel" /> <task:executor id="messageTaskExecutor" pool-s
0
votes
0answers
22 views

How to create BeanDefinition for annotated bean?

Let suppose we have a generic class for controller. public class MyController<T> { MyController(Class<T> clazz) { } } Now we can use it, by writing following code: @RestControl
0
votes
2answers
42 views

Spring Boot: Can I post multiple objects as multiple @RequestParams to a REST service?

Using Spring Boot I've build a toy REST service with a single resource like so: @RestController @RequestMapping("/checkout") public class CheckoutRestController { @PostMapping("/book") publi
3
votes
1answers
64 views

org.springframework.http.converter.HttpMessageNotWritableExceptionand com.fasterxml.jackson.databind.JsonMappingException:

I am using Querydsl (4.1.1) for implementing search filter. I want to know how to select specific column in Querydsl. I tried to select specific column using Querydsl select clause. But I am getting
0
votes
1answers
21 views

Spring MVC - Thymeleaf form binding with an arraylist

On a specific view I do have an expandable list of employees. Each employee has 2 fields and those are hoursWorked & advancePayments. With 1 button click, I would like to post the whole form. To a
0
votes
0answers
9 views

no transaction is in progress using entity manager spring boot

This is the configuration of one out of three data-sources that my web app uses: @Configuration @EnableTransactionManagement @EnableJpaRepositories(basePackages = {"it.cpmapave.mux.cliente.domain.rep
1
votes
0answers
10 views

How can I use thymleaf with spring security, using Keycloak inside the .html files?

I'm using keycloak for authentication and authorization with Spring Boot and Thymeleaf. I'm trying to secure some areas, for example if the user has the role ROLE_TEC, I have to hide some part of the