02 2017 档案
摘要:完整项目带lib参考http://toyota2006.iteye.com/blog/540316判断编码package change;import info.monitorenter.cpdetector.io.CodepageDetectorProxy;import info.monitorenter.cpdetector.io.JChardetFacade;import java.io.Fi...
阅读全文
摘要:因阿里云数据库标准访问模式不支持外网接入因此导出一份到本地,注意选择编码为utf8mysql 命令行用source导入有utf8编码的sql文件时导入的数据有乱码解决办法 set names utf8;最终可简化为mysql->use ace;mysql->set names utf8;注意路径符号用/mysql->source D:/Users/sgy/Desktop/ace_249510_al...
阅读全文
摘要:field.getModifiers() 返回值public static final 的值是 25private 的值是2 测试如下Class clazz=MyModel.class;Field[] fields = clazz.getDeclaredFields();for (int i = 0; i getFields(Class clazz) { List fieldList = n...
阅读全文
摘要:http://blog.csdn.net/feihong247/article/details/7828143http://my.oschina.net/anomynous/blog/1689991 引入spring-test org.springframework spring-test ${spring.version} 2 代码,注意,sts中SpringJUnit4ClassRunne...
阅读全文
摘要:默认以System.getProperty("user.dir")为准用LOGGER.warn(System.getProperty("user.dir"));查看,是准确的,不要用System.out.println(System.getProperty("user.dir"));查看null
阅读全文
摘要:直接使用em.remove会报错,IllegalArgumentException: Removing a detached instance即对象处于脱管的状态,使用merge使之被session管理改写方法如下,@Overridepublic void delete(En en) { em.remove(em.contains(en)?en:em.merge(en));}当然也可以只是用mer...
阅读全文
摘要:http://blog.csdn.net/dyllove98/article/details/8866357http://www.iteye.com/problems/86864 insert标签中加上useGeneratedKeys="true" keyProperty="id" 会将id组装到返回对象中而不是作为返回值官方文档只这么说的:useGeneratedKeys该属性会告诉Myba...
阅读全文
摘要:http://www.oschina.net/p/druid/ Druid是一个JDBC组件,它包括三部分: DruidDriver 代理Driver,能够提供基于Filter-Chain模式的插件体系。 DruidDataSource 高效可管理的数据库连接池。 SQLParser Druid可以做什么? 1) 可以监控数据库访问性能,Druid内置提供了一个功能强大的StatFilter插件,...
阅读全文
摘要:package cn.itcast.mybatis.jdbc;import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException;/** * * Title: JdbcTes...
阅读全文
摘要:mybatis-generator.xml null
阅读全文
摘要:使用了mybatis-generator后,寻找只写一个table标签就可以全部生成的方法下载mybatis-generator-core-1.3.2-bundle.zip解压后打开docs发现tableName可以是sql通配符,这就好办了,%就可以批量生成The name of the database table (not including the schema or catalog). ...
阅读全文
摘要:version controlnull
阅读全文
摘要:iml文件是ide配置文件,要被版本控制器忽略com=commondcommond+fn+f12相当于outlinecom+o com+shift+o 搜索类Edit-Find-Find in Path 所有项目中查找一个关键字文件编辑区右键--localhistory--show history文件右键--git--show historycom+b 在定义方法名显示被那些引用com+alt+b...
阅读全文
摘要:http://blog.csdn.net/asmcvc/article/details/171449511、下载安装AndroidStudio:http://developer.android.com/sdk/installing/studio.html2、界面字体大小设置File菜单->Settings->Appearance->Override default fonts by(not rec...
阅读全文
摘要:http://jingyan.baidu.com/article/380abd0a6abe731d90192ce4.html http://guchao2012.iteye.com/blog/1929951 首先,在eclipse中点击“help”-"Install New Software"。Properties Editor安装(在线安装):Name: Properties EditorLoc...
阅读全文
摘要:SpringJUnit4ClassRunner找不到,不会自动修复,只能复制引用过去import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;null
阅读全文
摘要:到2018年0524chenzhengSerial:pLR8ZC-855550-635079590216430720160103Subscriber:huazai Subscription Code:uLR8ZC-855550-61565856301609203Subscriber:feifei Subscription Code:sLR8ZC-855550...
阅读全文
摘要:bug 在json2bean中如果不进行转换 if(bean instanceof HttpLogin){,将调用的市父类的Json2Meß 此并非最好的解决办法,应该用官方的json.toobject
阅读全文
摘要:1 ng-model="standardCourse.showHours"代替name2 ng-selected = "1"代替selected="selected",但问题是select下会多出一个无用的option3 在数据准备时设置,$scope.standardCourse.showHours= '1';解决多出的一个无用的option是否显示课时数 radio也是 ng-checked...
阅读全文
摘要:添加ng-model后checked="checked"失效,可见angularjs也不好,会失效html标准属性解决:添加ng-checked="1" null
阅读全文
摘要:https://cnodejs.org/topic/549007b44823a0234c9e1716 myAppModule.controller('FrmController', ['$scope',function($scope){ $scope.colors = [{name:'black', shade:'dark'},{name:'white', shade:'light'},{nam...
阅读全文
摘要:$index用来取顺序 null
阅读全文
摘要:如果要使用$location,$stateParams,那么必须有相应形参controller: function ($rootScope, $http, $scope, $state,$location,$stateParams) {$location的参数,可用于登录跳转null
阅读全文
摘要:if(!confirm("您确定删除吗?")){return;}
阅读全文
摘要:1 传参url跳转 2 将url存到网页session或cookie中 3 angularjs $location的参数,可用于登录跳转
阅读全文
摘要:测试浏览器:chrome 当有父元素的子元素未定义时undefined和null均为true,类型为undefined 当元素赋给null后undefined和null均为true,类型为object,因此建议设置为null 当直接用未定义顶级元素x时,无论是x==undefined或if(x)都会
阅读全文

浙公网安备 33010602011771号