Questions tagged as 'spring'

1
answer

@DateTimeFormat with daylight saving time day with error

I'm having a problem converting date from 10/15/2017 (start of daylight savings time) My mapping looks like this: @Column(nullable = false) @NotNull @DateTimeFormat(pattern = "dd/MM/yyyy") private Date dataVisita; When processing the req...
asked by 17.10.2017 / 15:31
1
answer

Configuration Instance Tomcat / NGinx java sprintg

I need to set up a new tomcat instance to host a new application, and in parallel to this, configure nginx to make the reverse proxy. The application is developed in java Spring. The application is two packages front and one back that will se...
asked by 25.02.2018 / 15:04
2
answers

Return null for method type ListString

I have a method with return type List<String> , when doing a query I can return a value or nothing: public class Repositorio { @PersistenceContext private EntityManager em; public List<String> listaEscritor...
asked by 02.08.2018 / 21:19
1
answer

What are the advantages and disadvantages of using Heroku for your application? [closed]

Mostly in business environment     
asked by 06.09.2015 / 21:29
1
answer

Return treated message when it occurs (com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException :)

Hello, good afternoon! Can someone help me to return a treated message when it occurs ** com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Can not delete or update parent row: a foreign key constraint fails ( loja...
asked by 08.09.2018 / 19:20
1
answer

Import github project into STS (Spring)

I'm having trouble importing a spring project from github, and I successfully import the project when it's in eclipse oxygen in the java (Desktop) perspective. Import Used Procedure: I go in the folder of my sts that are my projects...
asked by 04.05.2018 / 23:45
1
answer

How to upload multiple images using spring boot

I'm developing a manga project and want to save several photos in the database. PagesController @RequestMapping(value="/pagina", method = RequestMethod.POST) public @ResponseBody ResponseEntity<PaginasEntity> cadastrarPaginas...
asked by 11.12.2017 / 14:27
1
answer

Spring Publishing Error

I'm having trouble with this new version of Spring sts. Version: 3.6.1.RELEASE Build Id: 201408250818 Platform: Eclipse Luna (4.4) I'm using Linux operating system (Ubuntu) I had my projects working fine in the previous version of Sprin...
asked by 22.09.2014 / 20:06
1
answer

Get a Get in webclient by passing json as parameter

I am making the request this way, but I am not having success, someone who has already been through it? private static String vwsApiUrl = "http://vws.veloxtickets.com:82/wscinema.ws/Get_Cinema_Programacao"; String url = "'{\"AUTENTICACAO\":{...
asked by 19.07.2018 / 20:02
1
answer

My Rest With Spring does not work

The part of Rest I've circled almost all google and I still can not solve. the problem is exactly that when I make the query or I give a sava postman day or straight through the url to see if Json returns and nothing happens just the 404 error ....
asked by 29.11.2016 / 12:39