Skip to content

Commit

Permalink
BUG ao retornar grandes objetos:
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelbernabeu committed Mar 12, 2021
1 parent fd60a4c commit 246d766
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/rest/ProdutoResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import dto.ProdutoDTO;
import entities.Produto;
import org.jboss.resteasy.annotations.GZIP;
import rest.interfaces.IProdutoResource;

import javax.annotation.security.RolesAllowed;
Expand Down Expand Up @@ -33,7 +34,12 @@ public Produto get(@PathParam("id") Long id) {
return produtoResource.get(id);
}

/**
* Bug ao retornar grandes objetos.
* https://github.com/quarkusio/quarkus/issues/14695
*/
@GET
@GZIP
@RolesAllowed("admin")
@Produces("application/json")
public List<ProdutoDTO> list() {
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
quarkus.log.level=DEBUG
quarkus.http.host=0.0.0.0
quarkus.http.cors=true
quarkus.resteasy.gzip.enabled=true
quarkus.http.enable-compression=true

#quarkus.http.insecure-requests=redirect
#quarkus.http.ssl.certificate.file=META-INF/resources/certificate.crt
#quarkus.http.ssl.certificate.key-file=META-INF/resources/privateKey.pem
Expand Down

0 comments on commit 246d766

Please sign in to comment.