Questions tagged as 'spring-boot'

1
answer

Problems with select component

I have a problem submitting my list of items from my select. In my HTML I use ng-repeat to list all items, and when my screen loads my first and only item is: {{list.name}} , when I click on that item {{list.name} , then load the list corre...
asked by 13.06.2017 / 21:28
2
answers

Spring Boot x Spring MVC [duplicate]

Is Spring Boot the same as Spring MVC? In practice, do not you use Spring MVC (or, should not you use it) and only Spring Boot?     
asked by 02.06.2017 / 05:21
2
answers

Annotation @Scheduled Spring check environment

I have a controller annotated with @Scheduled but when the test environment is active it also runs. Is it possible to check the environment in which application is running for the method to run only in production?     
asked by 11.07.2018 / 21:39
1
answer

Conflict with MBean name when uploading two Spring Boot applications on the same Tomcat

I have two applications in Spring Boot that use a common nomenclature for beans . In this case, my pool of connections to the database is managed by HikariCP. Due to an infrastructure problem, I had to upload two of my Spring Boot projects...
asked by 18.04.2018 / 22:17
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
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

HTTPS in Rest Architecture

I have a web service written using SpringBoot running on Tomcat and a client application written in AngularJS running on Apache2. I would like to know how the SSL issue works for this case. Should SSL be configured on Tomcat and Apache2? If so,...
asked by 14.02.2017 / 11:52
3
answers

Search / object register via REST url and register with SPRING

I'm new to REST and Spring. I'm doing an exercise where I have to fetch a client via url and return (GET) it in JSON format and insert (POST) a client in JSON format. To search will be in the template below, using GET: http://localhost:8080...
asked by 28.10.2016 / 00:42
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
1
answer

Can not pass a null GrantedAuthority collection Spring Security

I'm developing a web application with Spring Boot, and I'm trying to implement authentication using spring security. I'm following the Michelli tutorial, but I have the following error: ButIalreadyregisteredtheuserandassignRoletohim,usingmysq...
asked by 04.06.2018 / 17:07