摘要: liunx环境下: 在tomcat/bin/catalina.sh 加入 CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" windows环境下: 在tomcat/bin/cat 阅读全文
posted @ 2018-09-17 16:03 Azjs丶V1 阅读(126) 评论(0) 推荐(0)
摘要: 1.将tomcat 和 jdk的包解压 2.在tomcat的catalina.sh和setclasspath.sh文件中添加jdk和jre路径 export JAVA_HOME=/jdk解压路径/jdk1.7.0_75export JRE_HOME=/jdk解压路径/jdk1.7.0_75/jre 阅读全文
posted @ 2018-08-28 15:38 Azjs丶V1 阅读(333) 评论(0) 推荐(0)
摘要: 1 public static String getIpAddr(HttpServletRequest request) { 2 String ipAddress = request.getHeader("x-forwarded-for"); 3 if (ipAddress == null || ipAddress.length() == 0 || "unk... 阅读全文
posted @ 2018-08-09 09:07 Azjs丶V1 阅读(11117) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-07-25 13:54 Azjs丶V1 阅读(657) 评论(0) 推荐(0)
摘要: @SuppressWarnings("deprecation") public class HttpClientUtil { private static Logger logger = LoggerFactory.getLogger(HttpClientUtil.class); private static final String ContentEncoding = "UTF... 阅读全文
posted @ 2018-07-17 14:15 Azjs丶V1 阅读(488) 评论(0) 推荐(0)
摘要: public class HttpUtils { public static final MediaType JSON = MediaType.parse("application/json;charset=utf-8"); public static String httpGet(String url,String authorization) throws IOExcep... 阅读全文
posted @ 2018-07-17 14:00 Azjs丶V1 阅读(4807) 评论(0) 推荐(0)
摘要: 1.按天统计 2.按周统计 2.按月统计 3.按年统计 阅读全文
posted @ 2018-07-13 16:24 Azjs丶V1 阅读(1051) 评论(0) 推荐(0)
摘要: 读取方式: InputStream in = CMSutils.class.getClassLoader().getResourceAsStream("文件名"); Properties pss = new Properties(); pss.load(in); 下面是我自己写的读取properti 阅读全文
posted @ 2018-06-22 15:30 Azjs丶V1 阅读(323) 评论(0) 推荐(0)
摘要: 1.使用xshell连接到公网(ip:port)用户名密码 2.在此处添加转移规则 3.右键点击添加(选择socks4/5协议 端口 填写你需要转发的端口) 3.连接到内网 跟之前一样(ip:port)不过,这里需要代理 4.添加代理端口 上传文件可使用(xftp)也可以根据RZ命令 阅读全文
posted @ 2018-06-21 19:49 Azjs丶V1 阅读(541) 评论(0) 推荐(0)
摘要: 解决问题:java.sql.SQLException: null, message from server: "Host '0.0.0.0' is not allowed to connect to this MySQL server" 1.在服务器开启的情况下,进入mysql数据库命令: mysq 阅读全文
posted @ 2018-04-25 10:06 Azjs丶V1 阅读(416) 评论(0) 推荐(0)