`
文章列表

easyui

//后台将map转成json response.setContentType("text/json;charset=UTF-8"); response.getWriter().print(Json.toJson(returnMap)); //公用json方法 /** * JSON实用处理类 * @author */ public class Json { public static String toJson(Object obj) { String s = castToJson(obj); if (s != null) { r ...

IE8不兼容Echarts

//修改IE文档浏览模式,可以解决该问题 1.页面 <meta http-equiv="X-UA-Compatible" content="IE=edge"/> 2.j获取当前浏览器文档模式 engine = null; if (window.navigator.appName == "Microsoft Internet Explorer") {       // 这是一个 IE 浏览器。引擎处于哪种模式下?       if (document.documentMode) // IE8          engine ...
//前端js脚本 <script type="text/javascript"> mini.parse(); function onImport() {                 var inputFile = document.getElementById("Fdata").value;         var fjlx = document.getElementById("Fdata").getAttribute('accept');                 $.ajax({     ...
package com.wangxuegang.enitiy; import java.io.Serializable; import org.apache.commons.lang3.builder.ReflectionToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; /** * 基础 entity,所有实体类必须集成它 * * @author wangxuegang * @date 2018年7月13日 下午5:10:53 */ public cla ...

imageUtil

    博客分类:
  • tool
import java.awt.AlphaComposite; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Toolkit; import java.awt.color.ColorSpace; import java.awt.geom.AffineTransform; import java.awt.image.AffineTransformOp ...
1.服务提供方,在注册中心发现该服务 <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</mode ...
1.启动注册中心实例     pom.xml <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</ ...
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <templates> <template autoinsert="false" context="overridecomment_context" deleted="false" description="Comment for overriding methods" enabled="true&qu ...

封装jdbc

    博客分类:
  • java
1.定义实体类 package com.wangxuegang.model; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; public class JdbcObject { private Connection connection; //获取连接 private PreparedStatement preStatement; //执行器 private ResultSet resultSet; //返回结果 pu ...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>多张照片上传大于1M图片压缩</title> < ...

多张照片上传

思路: 将照片转base64传后台 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>多张照片上传</tit ...
1.在web.xml中配置监听,注意:要配置在Spring加载之后 <context-param> <description>是否缓存字典(配置值:true,false)</description> <param-name>cache_wangxuegang</param-name> <param-value>true</param-value> </context-param> <context-param> <description>缓存 ...

FtpUtil工具类

    博客分类:
  • java
package com.wangxuegang.utils;   import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream;   import org.apache.commons.net.ftp.FTP; imp ...

java照片压缩Demo

    博客分类:
  • java
package com.wangxuegang.image; import java.awt.Graphics; import java.awt.Image; import java.awt.image.BufferedImage; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; impor ...
//页面get传参中文,参数套两个encodeURI()方法例如   xxx.action?name='+encodeURI(encodeURI(name))+'//客户端,action里面解析,name为前端传来的值例如   URLDecoder.decode(name, "UTF-8") ;
Global site tag (gtag.js) - Google Analytics