This file contains 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
package br.com.ggdio.gists; | |
public enum MimeType | |
{ | |
GIF(".gif","image/gif"), | |
JPG(".jpg","image/jpg"), | |
JPEG(".jpeg","image/jpeg"), | |
BMP(".bmp","image/bmp"), | |
PNG(".png","image/png"), | |
DOC(".doc","application/msword"), |
This file contains 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
package br.com.ggdio.gists; | |
import java.io.ByteArrayInputStream; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.InputStream; | |
import javax.servlet.ServletOutputStream; | |
import javax.servlet.http.HttpServletResponse; |
This file contains 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
src/main/java Application/Library sources | |
src/main/resources Application/Library resources | |
src/main/filters Resource filter files | |
src/main/assembly Assembly descriptors | |
src/main/config Configuration files | |
src/main/scripts Application/Library scripts | |
src/main/webapp Web application sources | |
src/test/java Test sources | |
src/test/resources Test resources | |
src/test/filters Test resource filter files |
This file contains 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
mvn install:install-file -Dfile=file.jar -DgroupId=br.com.ggdio -DartifactId=artifactId -Dversion=1.0.0 -Dpackaging=jar |
This file contains 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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<!-- DADOS --> | |
<groupId>br.com.ggdio</groupId> | |
<artifactId>default-example</artifactId> | |
<packaging>jar</packaging> | |
<version>1.0.0</version> |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<Server port="8005" shutdown="SHUTDOWN"> | |
<Listener SSLEngine="on" className="org.apache.catalina.core.AprLifecycleListener"/> | |
<Listener className="org.apache.catalina.core.JasperListener"/> | |
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/> | |
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/> | |
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/> | |
<GlobalNamingResources> |
This file contains 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
file_export_version=3.0 | |
/instance/org.codehaus.groovy.eclipse.ui/groovy.editor.groovyDoc.keyword.enabled=true | |
/instance/org.codehaus.groovy.eclipse.ui/groovy.editor.groovyDoc.link.enabled=true | |
/instance/org.codehaus.groovy.eclipse.ui/groovy.editor.groovyDoc.tag.enabled=true | |
/instance/org.eclipse.ui.editors/AbstractTextEditor.Color.SelectionForeground.SystemDefault=false | |
/instance/org.eclipse.ui.editors/AbstractTextEditor.Color.SelectionBackground.SystemDefault=false | |
/instance/org.eclipse.ui.editors/AbstractTextEditor.Color.Background.SystemDefault=false | |
/instance/org.eclipse.ui.editors/AbstractTextEditor.Color.Foreground.SystemDefault=false | |
/instance/org.epic.perleditor/AbstractTextEditor.Color.Background.SystemDefault=false | |
/instance/org.epic.perleditor/AbstractTextEditor.Color.Foreground.SystemDefault=false |
This file contains 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
create table users ( | |
username varchar(50) not null primary key, | |
password varchar(50) not null, | |
enabled boolean not null | |
) engine = InnoDb; | |
create table authorities ( | |
username varchar(50) not null, | |
authority varchar(50) not null, | |
foreign key (username) references users (username), |
This file contains 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
package br.com.ggdio.gists; | |
import java.awt.Component; | |
import java.util.ArrayList; | |
import java.util.List; | |
import javax.swing.JFormattedTextField; | |
import javax.swing.JFrame; | |
import javax.swing.JInternalFrame; | |
import javax.swing.JOptionPane; |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<endpoints xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime" version="2.0"> | |
<!-- WEBSERVICE MAPPING --> | |
<endpoint | |
implementation="br.com.ggdio.gists.ws.service.MyServiceWs" | |
name="MyService" | |
url-pattern="/services/myservice" | |
/> | |
</endpoints> |