Questions tagged as 'spring'

2
answers

Handling Exception Services REST Spring

In a REST service application with Spring, where should exception handling / posting occur? No Controller or Service? Example 1 - Handling the Controller (In case I'm just returning a badrequest as an example) @GetMapping public ResponseEnt...
asked by 21.03.2017 / 16:54
2
answers

Questions about the Spring XML file?

I'm developing an application that uses JAVA SE + SPRING. I have some questions regarding XML: Where do I create the file xml of Spring ? What is the name I give to arquivo xml ? The XML would be the settings for the S...
asked by 01.09.2016 / 21:21
1
answer

How do I check if my spring application is in the production environment?

When in production, when I fall into an exception, send an email to the support but only in production, in development I do not want it to perform this task.     
asked by 19.08.2015 / 20:55
1
answer

Spring Rest - Use of various Services and Repositories

I have a question about the best way to implement some services with Spring Rest , but I could not find material for this case: Let's say I have a service for making a release ( LancamentoService ). This service launches, updates the balance...
asked by 17.10.2018 / 18:36
1
answer

AngularJS and Java backend [closed]

Hello, I'm failing to use the JSF framework to start using AngularJS. I would like to know if anyone has an example of integrating AngularJS with Java Backend, so that I can see the operation of the parameter pass from Front-end to Back-end a...
asked by 28.09.2016 / 19:08
1
answer

How to implement Service Layer with Spring?

Does anyone know of any tutorial, examples ... any source to learn how to implement service layer?     
asked by 21.12.2015 / 15:48
1
answer

Is it possible to send all Java Exceptions by email?

I have a Java Web application, using Spring MVC, and would like to email all Exceptions posted to the system. Is it possible to do this? Set up a default email so that it receives all the Exceptions and the stacktrace, so that I can follow th...
asked by 23.06.2016 / 15:41
1
answer

Spring FileCopyUtils With Strange Behavior

I do not know if anyone here uses the FileCopyUtils offered by Spring , but I'm using an image replication method on my system. It aims to "get" the images that are in the temp folder of my system and replicate to another connect on the serve...
asked by 27.08.2014 / 00:25
1
answer

Problem generating javascript graph using Spring

I'm implementing graphics in a web application I'm developing in Spring. I have already done my API, is bringing Json with all the information of my Cart object, but the graph is not being generated in the html page. Can someone help me solve th...
asked by 21.07.2018 / 22:00
1
answer

Strategy Pattern with Spring Boot

I've been looking for strategy pattern solutions with spring boot, but nothing I've found so far seems performative or even functional. I have an interface like: public interface UserService { User getById(Integer id); } And I have t...
asked by 23.05.2018 / 19:09