Questions tagged as 'spring'

1
answer

post call does not work, returns error 405

I have the following javascript <script type="text/javascript"> function calculaReducao(){ var nd1 = document.getElementById("nrDentes1").value; var nd2 = document.getElementById("nrDentes2").v...
asked by 20.11.2017 / 19:43
0
answers

Build Spring Boot takes too long to compile?

I'm doing an example using Java with Spring, I'm using Intellij IDEA, it takes a long time to compile, I'm using TomCat, show a lot of message on the server, how to configure to be faster?     
asked by 31.08.2017 / 22:37
1
answer

Error initializing application with Spring Boot

I'm creating an application using Spring Boot with JPA. When I upload the application, the following message is displayed:    Description:   Can not determine embedded database driver class for database type NONE   Action:   If you want an em...
asked by 08.09.2017 / 02:33
1
answer

Is it possible to have a constant populated through a Spring @Service?

We have a web service that one of its parameters is called source and this source is always validated against a code in the database. For each of our services, I have to validate this code. This code does not change, so I want to keep it in a...
asked by 23.08.2017 / 06:02
1
answer

Rest Spring Server identifying a period as a regular expression

I have a Rest service with the following method: @RequestMapping(value = "/usuario/{login}", method = RequestMethod.GET) @ResponseBody public ResponseEntity<InputStreamResource> usuario(@PathVariable("login") String login, HttpSe...
asked by 20.07.2017 / 04:25
1
answer

Filter in OneToMany mapping (Spring)

I searched the internet but, I could not understand very well how I would do this using the Hibernate filters. Well, come on: I have a OneToMany: @OneToMany(mappedBy = "pedido", cascade = CascadeType.ALL) @Getter private final List<Pedid...
asked by 20.07.2017 / 02:41
1
answer

How do I redirect Exception to an error page?

How do I redirect UsernameNotFoundException to a page? if ( user == null ) { log.info( "Email " + email + " não é um ususário cadastrado." ); throw new UsernameNotFoundException( "Email " + email + " não é um ususário cadastrado." ); }...
asked by 31.07.2017 / 19:32
1
answer

Application with Spring + BootStrap with problem to find contextPath and apply CSS

The page is working normally, but CSS is not being applied, as images within the resources are not being localized. Here are methods of the configuration class to locate resources, and it does not work. @Override public void addResourceHandler...
asked by 06.07.2017 / 21:38
1
answer

Customize PDF file name made in jaspersoft, java and spring

I have several reports made in JasperSoft that generate PDF and when generated in Java, when downloading the report on my pc, it is like "document.pdf". How do I give a different name to this report, for example "report_clients.pdf"? The reports...
asked by 19.07.2017 / 19:17
2
answers

Create a Download according to element id

I created a system that uploads several files, however I ran into the following problem: I need to create a way to download according to the id of the element in the database. I wonder if anyone has an idea that I can take advantage of to do thi...
asked by 03.07.2017 / 14:48