Skip to content

Instantly share code, notes, and snippets.

View brunocroh's full-sized avatar
🤣
I use arch btw

Bruno Rodrigues brunocroh

🤣
I use arch btw
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<persistence:persistence xmlns:persistence="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.0"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd " >
<persistence:persistence-unit name="onzeVencedorPu"/>
</persistence:persistence>
{
"usuario":{
"nome":"Bruno Rodrigues",
"email":"[email protected]"
},
"produtos":[
{
"ean":123,
"img":"https://firebasestorage.googleapis.com/v0/b/venda-top.appspot.com/o/61r0Xu9NoSL.jpg?alt=media&token=763eb81d-70f8-4879-83e8-89bfd953c378",
"name":"God Of War 3 Ps3",
{
"usuario":{
"nome":"Bruno Rodrigues",
"email":"[email protected]"
},
"produtos":[
{
"ean":123,
"img":"https://firebasestorage.googleapis.com/v0/b/venda-top.appspot.com/o/61r0Xu9NoSL.jpg?alt=media&token=763eb81d-70f8-4879-83e8-89bfd953c378",
"name":"God Of War 3 Ps3",
@brunocroh
brunocroh / filter example
Created September 30, 2017 01:30
to john
package servlets;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;