I have the following javascript
<script type="text/javascript">
function calculaReducao(){
var nd1 = document.getElementById("nrDentes1").value;
var nd2 = document.getElementById("nrDentes2").v...
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?
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...
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...
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...
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...
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." );
}...
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...
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...
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...