随笔分类 - Java
摘要://FileReader FileWriter 读写英文 public void FileReaderAndWriter1() throws Exception { File filePath = new File("E:/iotest"); if (!filePath.exists()) {...
阅读全文
摘要:1、Get请求,方案有两种 A:修改Tomcat配置文件 server.xml URIEncoding="UTF-8" 如:B:将从Request作用域中取的参数按iso-8859-1编码得byte值,再转成utf-8编码字符串 如: String userName= request.getPar...
阅读全文
摘要:JDK的动态代理,只适用面向接口编程定义接口public interface UserService { public void buy(String userName); public String Say(String words);}实现类public class UserServiceImp...
阅读全文
摘要:ClassLoader loader= Thread.currentThread().getContextClassLoader(); Class clz = loader.loadClass("com.easeye.test.Student"); Constructor[] con=...
阅读全文