解决办法:Window--->Preferences----->Android--------> LInt Error Checking----->when saving files, check for errors 。去掉勾选如果此方法还行不通,可能是你系统是64位的,但是安装的却是32位的ec...
分类:
移动开发 时间:
2014-12-16 09:59:51
阅读次数:
238
一、Spring头信息
Spring配置文件的头部信息一般是固定不变的,但每一个标签都有自己的含义,xml命名空间格式如下:
xml version="1.0" encoding="UTF-8"?>
beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www...
分类:
编程语言 时间:
2014-12-15 10:25:07
阅读次数:
189
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="ht...
分类:
数据库 时间:
2014-12-14 13:22:11
阅读次数:
280
BeansTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 2845DescriptionBean-eating is an interesting game, ever...
分类:
其他好文 时间:
2014-12-13 19:17:25
阅读次数:
284
前面一篇文章已经介绍了什么是Spring了,那里面到底有什么,可以用再什么地方,我们继续深入探讨。1.Spring架构图图 1-1 Spring架构图1).核心容器:包括Core、Beans、Context、EL模块。Core模块:封装了框架依赖的最底层部分,包括资源访问、类型转换及一些常用工具类。...
分类:
编程语言 时间:
2014-12-13 17:51:01
阅读次数:
253
beanFactory的继承关系如下图所示:在上节beanFactory的进化史,我们就讲到了上图的左边部分,这次我们来分析一下图的右边部分。AliasRegistry 是一个用于别名管理的通用接口,BeanDefinitionRegistry继承了该接口。SimpleAliasRegistry作为...
分类:
编程语言 时间:
2014-12-13 10:42:46
阅读次数:
235
在配置Spring或者是Hibernate配置文件的时候,经常需要输入类的全路径名称,也就是包路径,但是在双引号是没有提示信息的,如果希望有提示功能,需要安装两个插件,第一是Spring
Tool Suit(STS),第二个是Hibernate Tools。
一、
安装STS,打开eclipse中的help->Eclipse MarketPlace,输入sts搜索,得到STS fo...
分类:
Web程序 时间:
2014-12-12 23:37:48
阅读次数:
543
package com.sishuok.mvc.controller; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Aut...
分类:
编程语言 时间:
2014-12-12 19:28:06
阅读次数:
205
自定义类型转换器(例子是转换的Date类型)1、新建类型转换类DateConvert.java并继承java.beans.PropertyEditorSupport2、重写setAsText(String text)方法public class DateConvert extends Propert...
分类:
编程语言 时间:
2014-12-12 01:16:27
阅读次数:
220
例:有两个类AutoWiringDao和AutoWiringService两个类,AutoWiringDao是AutoWiringService的一个属性.在没用自动装配之前是这样配置的: <?xml version="1.0" encoding="UTF-8" ?>
<beans ........>
<bean id="...
分类:
其他好文 时间:
2014-12-11 22:34:09
阅读次数:
251