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
# npm install --save-dev gulp-connect | |
//LiveReload | |
var gulp = require('gulp'), | |
connect = require('gulp-connect'); | |
gulp.task('connect', function() { | |
connect.server({ | |
root: 'app', |
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
#Configuration Proxy | |
#Git | |
git config --global http.proxy http://<username>:<password>@<proxy-port> | |
git config --global https.proxy http://<username>:<password>@<proxy-port> | |
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.javamais.helper; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import javax.faces.application.FacesMessage; | |
import javax.faces.bean.ManagedBean; |
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
<!-- Spring 3 --> | |
<context-param> | |
<param-name>contextConfigLocation</param-name> | |
<param-value> | |
/WEB-INF/spring-security.xml, | |
/WEB-INF/spring-data.xml, | |
/WEB-INF/spring-mail.xml | |
</param-value> | |
</context-param> |
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
<!-- Controla a sessao --> | |
<listener> | |
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> | |
</listener> | |
<listener> | |
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> | |
</listener> | |
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
<error-page> | |
<error-code>404</error-code> | |
<location>/erropage</location> | |
</error-page> |
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
<error-page> | |
<exception-type>java.lang.Exception</exception-type> | |
<location>/erropage/</location> | |
</error-page> |
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
<!-- Bloqueia o acesso à arquivos xhtml --> | |
<security-constraint> | |
<web-resource-collection> | |
<web-resource-name>xhtml files</web-resource-name> | |
<url-pattern>*.xhtml</url-pattern> | |
</web-resource-collection> | |
<auth-constraint/> | |
</security-constraint> |
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
<context-param> | |
<param-name>primefaces.THEME</param-name> | |
<param-value>aristo</param-value> | |
</context-param> |
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
<!-- Enable escaping of form submission contents --> | |
<context-param> | |
<param-name>defaultHtmlEscape</param-name> | |
<param-value>true</param-value> | |
</context-param> |
NewerOlder