Questions tagged as 'spring-boot'

1
answer

Can not deserialize instance of java.util.ArrayList out of START_OBJECT token

Using angular, I am not able to insert an array of genres into the Gender property that is in the Manga object. Using postman to insert the Generos array into the API / manga would look like this. { "nome": "BORUTO", "status": "...
asked by 20.11.2017 / 16:31
1
answer

Treating null pointer exception

I'm getting a json object from the screen in my back end like this: { "pessoa": { "nome": "aa", "nomeSocial": "aa", "tipoPessoa": "F", "nomePai":"", "dataNascimento": "15/06/1983", "nomeMae":...
asked by 30.11.2017 / 12:43
3
answers

HTTP status 500 internal server error

I have a problem in my web application spring boot compiles and starts the server, however when starting localhost:8080/buscar the following error appears: Classcontroller:packagecom.web.app.Bresource;importjava.util.ArrayList;importj...
asked by 08.10.2017 / 09:42
1
answer

NullPointerException when calling method return in another class

I have the following method in the LoginController class @RequestMapping(value = "/usuarioEntidade", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, method = RequestMethod.POST) public Resposta usuarioEntidade(@RequestBody EntidadesAdministr...
asked by 11.10.2017 / 18:31
1
answer

Filter in a project that consists of several projects and that run on different ports (Spring Boot)

I would like to know if there is (and how can I) develop an application that is made up of several other applications and to access these other parts of the application I need to be logged in. Do I believe that this concept is linked to micros...
asked by 01.07.2017 / 06:36
1
answer

JsonFormat changing date in a get request

I have a web service in java using Spring Boot, in a class I have an attribute of type date and I use JsonFormat to format the date and be able to convert on the client side, using Gson. However, even setting the locale for the zone of Brazil, w...
asked by 09.04.2017 / 01:09
1
answer

Upload and download image to project folder using Spring Boot

I'm developing a web module that I need to upload an image. Do save in the project folder, I'm using the Apache Commons Io: public class FileUtil { public static void saveFile(String path, MultipartFile file){ File saveFile = new...
asked by 07.02.2017 / 22:11
1
answer

How to upload a Spring Boot project to a Glassfish or Tomcat server

I can run the application normally through the main class with 'tomcat embedded' as a dependency.     However when trying to run the application on some server the IDE itself Eclipse informs that the application can not be run on a server.     I...
asked by 07.10.2016 / 15:31
4
answers

Application with Tomcat and Spring Boot

Hello I have the following problem in my application. After running the main method below and typing in the browser the address of my application localhost: 9090 / restauranteWeb is opening a popUp requesting user and password, I thought it...
asked by 24.06.2016 / 01:37
2
answers

Problem giving the build in the Spring Boot project

When I try to copy it generates this error; main] o.a.coyote.http11.Http11NioProtocol : Failed to start end point associated with ProtocolHandler ["http-nio-8080"] java.net.BindException: Address already in use: bind at sun.ni...
asked by 10.01.2016 / 18:01