- 博客(7)
- 资源 (14)
- 收藏
- 关注
原创 Spring源码:Spring 容器资源加载模板模式应用
模板位于:abstract class AbstractXmlApplicationContext : protected void loadBeanDefinitions(XmlBeanDefinitionReader reader) throws BeansException, IOException { Resource[] configResources = getConfig
2015-07-31 13:21:18 835
原创 MyBatis与Spring 整合后,创建Bean报奇葩错的解决
代理了MaBatis Generator自动生成的Mapper的类package com.aliapp.wxxd.material.service;import interfaces.EntityWrapperInterface;import java.util.List;import org.springframework.beans.factory.annotation.Aut
2015-07-30 13:56:56 24416
原创 MySQL 查询某个列中相同值的数量统计
数据现在是这样的,我想确定出type列中的news和image。。。。甚至以后有其他值,他们分别有多少个。SELECT type, count(1) AS countsFROM materialGROUP BY typecount(1),代表统计第一列,写上1 比写 *的效率高!
2015-07-22 09:06:37 35386 3
原创 Java泛型,结合JSONObject动态生成指定的对象
private T getTargetClass(String resultString, T t) { System.out.println(resultString); JSONObject result = JSONObject.fromObject(resultString); return (T) JSONObject.toBean(result, t.getClass()
2015-07-15 16:48:02 12434 1
原创 Springmvc JSON交互
先上前端javascript,ajax代码 function testAjaxS(){ $.ajax({ type:'post', url:'material/testAjax', data:'MediaId=手', success:function(data){//返回json结果 alert("success"); }
2015-07-15 15:33:34 3509
原创 JAVA WEB 获取properties文件,存放路径 及 获取路径
首先明白,ClassPath : 指的是:WEB-INF\classes这个目录下,通常把文件放在src文件夹下,或者新建文件并且添加到build path即可。IDE在同步文件到tomcat时会自动将文件放在classes下。 获取properties的代码: public Properties loadProperties() { Properties properties = ne
2015-07-10 15:00:39 8926
原创 XStream 数组(List)输出结构
微信SDK初步结构 恩..这是微信工程的结构,嘻嘻~ http://b.hiphotos.baidu.com/image/pic/item/d1a20cf431adcbeff71cbb18aeaf2edda3cc9f80.jpg 原以为应该:根对象中有个Articles类中,Articles类中包含一个变量名为 item的数组(list)对象才
2015-07-09 17:13:46 3901
SpringMVC+Mybatis+Spring+Shiro+ehcache整合配置文件
2015-08-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人