上一页 1 ··· 27 28 29 30 31
摘要: FileWriter writer = null; String fileName="d://my.txt"; String line="要追加的内容"; try { // 打开一个写文件器,构造函数中的第二个参数true表示以追加形式写文件 ,false 表示覆盖原内容 writer = new 阅读全文
posted @ 2015-06-03 15:31 荣超 阅读(165) 评论(0) 推荐(0) 编辑
摘要: String path="D://my"; File folder=new File(path); if(!folder.exists() && !folder.isDirectory()){ //文件夾不存在時创建文件夾 folder.mkdirs(); } String fileName="D: 阅读全文
posted @ 2015-06-03 15:29 荣超 阅读(776) 评论(0) 推荐(0) 编辑
摘要: URL url = new URL("网关url");//使用post方式,这里不要带参数 HttpURLConnection httpCon = (HttpURLConnection) url.openConnection(); httpCon.setConnectTimeout(5 * 1000 阅读全文
posted @ 2015-06-03 15:28 荣超 阅读(1071) 评论(0) 推荐(0) 编辑
摘要: 提交时使用数组接收,遍历将数组添加到set集合用户表user 字段id,name,set xks=new HashSet();选课表xk 字段id,name表单姓名课程1课程2课程3UserController.javapublic String save(User user,String[] xk... 阅读全文
posted @ 2015-06-01 17:23 荣超 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 在外键字段的get方法上加入@JsonIgnore 阅读全文
posted @ 2015-05-26 14:03 荣超 阅读(211) 评论(0) 推荐(0) 编辑
摘要: ShiroUser user = (ShiroUser) SecurityUtils.getSubject().getPrincipal(); user.name = newName; 阅读全文
posted @ 2015-05-26 09:10 荣超 阅读(555) 评论(0) 推荐(0) 编辑
摘要: <script> function WidthCheck(str, maxLen){ var w = 0; var tempCount = 0; //length 获取字数数,不区分汉子和英文 for (var i=0; i<str.value.length; i++) { //charCodeAt 阅读全文
posted @ 2015-05-15 15:22 荣超 阅读(11279) 评论(0) 推荐(0) 编辑
摘要: 例如控件ID为user.id 使用$("#user.id")不能得到正确的结果 必须使用\\转义 即$("#user\\.id") 阅读全文
posted @ 2015-05-15 11:26 荣超 阅读(1024) 评论(0) 推荐(1) 编辑
上一页 1 ··· 27 28 29 30 31