Open ~/.bash_profile
in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {
{ | |
"openapi": "3.0.0", | |
"info": { | |
"title": "Matera SPI - Callback", | |
"description": "", | |
"version": "0.0.1" | |
}, | |
"paths": { | |
"/v1/instant-payments/callback/": { | |
"post": { |
"Project","ScanDate","DependencyName","DependencyPath","Description","License","Md5","Sha1","Identifiers","CPE","CVE","CWE","Vulnerability","Source","CVSSv2_Severity","CVSSv2_Score","CVSSv2","CVSSv3_BaseSeverity","CVSSv3_BaseScore","CVSSv3","CPE Confidence","Evidence Count"Sistema,"Fri, 12 Jul 2019 17:04:19 -0300",jasperreports-emp-6.4.0.5.jar,/home/user/.m2/repository/net/sf/jasperreports/jasperreports/emp-6.4.0.5/jasperreports-emp-6.4.0.5.jar,JasperReports Library,GNU Lesser General Public License: http://jasperreports.sourceforge.net/license.html,27ee5162e86f3b8554c1e7c2fa3cef85,bb7d23696424ceaacfc5ffba6dd0617ff8fa3d9c,pkg:maven/net.sf.jasperreports/[email protected],cpe:2.3:a:tibco:jasperreports_library:6.4.0.5:*:*:*:*:*:*:*,CVE-2017-5529,null,"JasperReports library components contain an information disclosure vulnerability. This vulnerability includes the theoretical disclosure of any accessible information from the host file system. Affects TIBCO JasperReports Library Community Edition (versions |
package sample; | |
import java.io.Serializable; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Types; | |
import java.util.Properties; | |
import org.hibernate.HibernateException; |
public static void main(String[] args){ | |
System.out.println(System.getProperty("user.name")); | |
//nome da maquina | |
InetAddress addr; | |
try{ | |
addr = InetAddress.getLocalHost(); | |
System.out.println(addr.getHostName()); | |
}catch(UnknownHostException e){ | |
// TODO Auto-generated catch block | |
e.printStackTrace(); |
public class Teste { | |
private static void printMultiplos(int n, int x, int y) { | |
if (n >= x && n <= y) { | |
System.out.println(n); | |
printMultiplos(n + 3, x, y); | |
} else if (n <= y) { | |
printMultiplos(n + 3, x, y); | |
} | |
} |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.1</version> | |
<configuration> | |
<source>1.7</source> | |
<target>1.7</target> | |
</configuration> |
import br.com.xkey.cax.model.Produto; | |
import br.com.xkey.cax.repository.produto.ProdutoRepository; | |
import javax.ejb.EJB; | |
import javax.faces.application.FacesMessage; | |
import javax.faces.component.UIComponent; | |
import javax.faces.context.FacesContext; | |
import javax.faces.convert.Converter; | |
import javax.faces.convert.ConverterException; | |
import javax.faces.convert.FacesConverter; |
<?xml version="1.0" encoding="UTF-8"?> | |
<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> | |
<persistence-unit name="CAX" transaction-type="JTA"> | |
<jta-data-source>CAX</jta-data-source> | |
<exclude-unlisted-classes>false</exclude-unlisted-classes> | |
<properties> | |
<property name="eclipselink.jdbc.cache-statements" value="true"/> | |
<!-- Optimization #10 - batch writing --> | |
<property name="eclipselink.jdbc.batch-writing" value="JDBC"/> | |
<property name="eclipselink.jdbc.batch-writing.size" value="1000"/> |