This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @GET | |
| public Response allBooks() { | |
| UriBuilder uriBuilder = uriInfo.getAbsolutePathBuilder().clone(); | |
| // Given a list of books | |
| List<Book> books = Lists.newArrayList(new Book("1234567890"), new Book("0123456789")); | |
| // Convert to GenericEntity and return in response | |
| GenericEntity<List<Book>> entities = new GenericEntity<List<Book>>(books){}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Configurar filebeat em JBOSS/Wildfly | |
| 1. Instalar o filebeat | |
| > curl -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-oss-6.3.2-amd64.deb | |
| > dpkg -i filebeat-oss-6.3.2-amd64.deb | |
| 2. Configurar o filebeat | |
| > /etc/filebeat/filebeat.yml |