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
<h1>👋 Hello World!</h1> |
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
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo | |
sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo | |
sudo yum install -y apache-maven | |
mvn --version |
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
try { | |
// 创建临时文件 | |
File temp = File.createTempFile("pattern", ".suffix"); | |
//在程序退出时删除临时文件 | |
temp.deleteOnExit(); | |
// 向临时文件中写入内容 | |
BufferedWriter out = new BufferedWriter(new FileWriter(temp)); | |
out.write("aString"); |
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
两台机器 先主后从 启动服务 | |
service bind restart | |
数据文件会自动同步到从的 /var/named/slaves/ 目录下 | |
修改域名映射只需要修改主的 9push.com 即可 |
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
grant codebase "file:${java.home}/../lib/tools.jar" { | |
permission java.security.AllPermission; | |
}; |
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
JAVA_HOME=/web/jdk1.7.0_79 | |
# OS specific support. $var _must_ be set to either true or false. |
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
package com.hyxt.http; | |
import org.apache.http.client.HttpClient; | |
import org.apache.http.conn.ssl.SSLConnectionSocketFactory; | |
import org.apache.http.conn.ssl.SSLContexts; | |
import org.apache.http.conn.ssl.TrustSelfSignedStrategy; | |
import org.apache.http.conn.ssl.X509HostnameVerifier; | |
import org.apache.http.impl.client.HttpClients; | |
import javax.net.ssl.SSLContext; |
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
ResourceDatabasePopulator populator = new ResourceDatabasePopulator(); | |
populator.setScripts(new Resource[] { new ClassPathResource(SQL_FILE) }); | |
DatabasePopulatorUtils.execute(populator, dataSource); |
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
import org.apache.struts2.config.StrutsXmlConfigurationProvider; | |
import org.apache.struts2.dispatcher.Dispatcher; | |
import org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter; | |
import org.springframework.core.io.Resource; | |
import org.springframework.core.io.support.PathMatchingResourcePatternResolver; | |
import javax.servlet.FilterConfig; | |
import java.io.IOException; | |
/** |
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
import org.apache.struts2.config.StrutsXmlConfigurationProvider; | |
import org.apache.struts2.dispatcher.Dispatcher; | |
import org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter; | |
import org.springframework.core.io.Resource; | |
import org.springframework.core.io.support.PathMatchingResourcePatternResolver; | |
import javax.servlet.FilterConfig; | |
import java.io.IOException; | |
/** |
NewerOlder