04 2015 档案
摘要:在maven工程的pom.xml文件中加入如下代码:在里面加入如下代码: org.apache.maven.plugins maven-compiler-plugin 2.3.2 ...
阅读全文
摘要:处理百万级以上的数据提高查询速度的方法:1.应尽量避免在 where 子句中使用!=或操作符,否则将引擎放弃使用索引而进行全表扫描。2.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。3.应尽量避免在 where 子句中对字段进行 null 值...
阅读全文
摘要:mapper.xml:delete from where purchase_apply_id = #{purchaseApplyId}org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.r...
阅读全文
摘要:jQuery提供css()的方法来实现嵌入式改变元素样式,css()方法在使用上具有多样性。其中一种接受两个输入参数:样式属性和样式值,它们之间用逗号分开。比如我们要改变链接颜色,我们可以使用下面的代码:$("#61dh a").css('color','#123456');//这里选择器‘$("#...
阅读全文
摘要:ByteArrayOutputStream类是在创建它的实例时,程序内部创建一个byte型别数组的缓冲区,然后利用ByteArrayOutputStream和ByteArrayInputStream的实例向数组中写入或读出byte型数据。在网络传输中我们往往要传输很多变量,我们可以利用ByteArr...
阅读全文
摘要:test date
阅读全文
摘要:mybatis3: mysql文如下,传入参数为string类型时‘preCode’,运行报错为:There is no getter for property named 'preCode' in 'class java.lang.String执行sql:mapper.xml文件: 发现不能...
阅读全文
摘要:radio: radio: var item = $('input[name=items][checked]').val(); var item = $('input[name=items]:checked').val(); 如果上一个不行,则用下一个。 jQuery获取Select选择的Text和
阅读全文
摘要:Mysql:主键自增长。加上:keyProperty="id"就可以获得了。insert into (name, code, version) values (#{name}, #{code}, #{version})========================================...
阅读全文
摘要:该问题,我百度了下,根本没发现什么有价值的文章;还是看源代码(详见最后附录)中的注释,最有效了!insert,返回值是:新插入行的主键(primarykey);需要包含 insert into desktop_unlock_tag(id,name,description,...
阅读全文
摘要:问题:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error updating database. Cau...
阅读全文