C# Code First : Validation failed for one or more entities. See 'EntityValidationErrors' property for more details...
分类:
其他好文 时间:
2014-09-19 15:44:35
阅读次数:
195
自动装配
在我们了解过constructor-arg和property装配中,都需要配置相应的属性和值或者引用,如果在比较复杂的项目中,就会使得XML的配置变得复杂,自动装配可以使用较少的配置实现。主要通过使用bean的autowire属性来控制,autowire可取值:
byName:为属性自动装配id与该属性的名字相同的bean
例如:People中有一个名为...
分类:
编程语言 时间:
2014-09-19 01:13:54
阅读次数:
219
1.有些参数在某些阶段中是常量 ????比如:a、在开发阶段我们连接数据库时的连接url,username,password,driverClass等? ?????????????????b、分布式应用中client端访问server端所用的ser...
分类:
编程语言 时间:
2014-09-18 20:49:14
阅读次数:
237
Accessing Map Properties@property(nonatomic)MKMapTypemapType@property(nonatomic,getter=isZoomEnabled)BOOLzoomEnabled@property(nonatomic,getter=isScrol...
分类:
其他好文 时间:
2014-09-18 16:08:34
阅读次数:
387
使用 proxool,JDBC连接池,进行批量执行的时候遇到异常:
The Thread responsible was named ‘Thread-32′, but the last SQL it performed is unknown because the trace property is
not enabled.
问题原因:sql语句执行后,长时间未...
分类:
编程语言 时间:
2014-09-18 13:20:33
阅读次数:
474
原文地址:http://www.cnblogs.com/myitm/archive/2010/12/17/1909194.htmlWindows→Preferences→Java→Editor→Content Assist我们看到其中的AutoActivation Delay默认值为200(单位是毫...
分类:
系统相关 时间:
2014-09-18 11:24:03
阅读次数:
208
网络请求三部创建一个请求(添加接口,对接口进行解码,)设定请求方式(将接口转为NSURL,设置请求[请求地址,缓存策略,超时时间],设置请求方式)连接服务器([同步连接,异步连接]代理连接,block连接)#import"MainViewController.h"
@interfaceMainViewController()
@property(retain,n..
分类:
其他好文 时间:
2014-09-18 09:53:54
阅读次数:
270
创建动画CAKeyframeAnimation*keyFrame=[CAKeyframeAnimationanimationWithKeyPath:@"bounds"];修改属性keyFrame.duration=3;keyFrame.values=@[[NSValuevalueWithCGRect:CGRectMake(0,0,200,200)],[NSValuevalueWithCGRect:CGRectMake(0,0,250,250)],[NSValuevalueWithCGRect:..
分类:
其他好文 时间:
2014-09-18 03:17:33
阅读次数:
177
1.创建CATransition*transition=[CATransitionanimation];transition.duration=2;2.设置过度样式transition.type=kCATransitionMoveIn;//控制动画样式,transition.subtype=kCATransitionFromTop;//控制方向3.添加动画[self.changeView.layeraddAnimation:transitionforKey:nil];
分类:
其他好文 时间:
2014-09-18 03:17:23
阅读次数:
164
CABasicAnimation*basic=[CABasicAnimationanimationWithKeyPath:@"bounds"];basic.duration=5;basic.fromValue=[NSValuevalueWithCGRect:CGRectMake(0,0,200,200)];basic.toValue=[NSValuevalueWithCGRect:CGRectMake(0,0,300,300)];CAKeyframeAnimation*keyFrame=[CAKeyframe..
分类:
其他好文 时间:
2014-09-18 03:17:13
阅读次数:
205