冫^浩

博客园 首页 新随笔 联系 订阅 管理

2014年3月11日 #

摘要: @Repository、@Service、@Controller和@Component@Repository、@Service、@Controller 和 @Component 将类标识为 BeanSpring 自 2.0 版本开始,陆续引入了一些注解用于简化 Spring 的开发。@Repository 注解便属于最先引入的一批,它用于将数据访问层 (DAO 层 ) 的类标识为 Spring Bean。具体只需将该注解标注在 DAO 类上即可。同时,为了让 Spring 能够扫描类路径中的类并识别出 @Repository 注解,需要在 XML 配置文件中启用 Bean 的自动扫描功能,这可 阅读全文
posted @ 2014-03-11 12:15 冫^浩 阅读(169) 评论(0) 推荐(0)

摘要: jsp对控件显示 jquery js对windows media player控制1 (function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=fun... 阅读全文
posted @ 2014-03-11 08:57 冫^浩 阅读(436) 评论(0) 推荐(0)

2013年12月11日 #

摘要: 1 3 4 5 6 7 卷内目录配置 8 9 10 11 12 档案类型 --> 17 18 19 20 21 22 23 档案类型&nbsp 24 26 27 28 29 30 31 ... 阅读全文
posted @ 2013-12-11 12:30 冫^浩 阅读(1827) 评论(0) 推荐(0)

2013年11月27日 #

摘要: 一:struts2运行机制: Tomcat一启动,一些信息就已经加载完成,例如StrutsPrepareAndExecuteFilter加载的那些strut.xml以及Action的class类文件 1)客户端在浏览器中输入一个url地址 2)这个url请求通过http协议发送给tomcat。 3)tomcat根据url找到对应项目里面的web.xml文件。 4)在web.xml里面会发现有struts2的配置。 5)然后会找到struts2对应的struts.xml配置文件。 6)根据url解析struts.xml配置文件就会找到对应的class。 7)调用完class返回一... 阅读全文
posted @ 2013-11-27 10:58 冫^浩 阅读(204) 评论(0) 推荐(0)

2013年11月26日 #

摘要: 看一下server.xml,conf/localhost/,web.xml是否配置了其他的WEBAPP应用,但实际地址已经被移除,清空WORK目录试试http://blog.163.com/mouse_lb/blog/static/6945620067863934935/http://zhidao.baidu.com/question/165259640.htmlhttp://www.newsmth.net/pc/pccon.php?id=10003032&nid=402938tomcat中三种部署项目的方法第一种方法:在tomcat中的conf目录中,在server.xml中的,节点 阅读全文
posted @ 2013-11-26 15:25 冫^浩 阅读(1615) 评论(0) 推荐(1)

摘要: 键盘按键 取值(数字) A 65 B 66 C 67 D 68 E 69 F 70 G 71 H 72 I 73 J 74 K 75 L 76 M 77 N 78 O 79 P 80 Q 81 R 82 S 83 T 84 U 85 V 86 W 87 X 88 Y 89 Z 90 0 48 1 49 2 50 3 51 4 52 5 53 6 54 7 55 8 56 9 57 数字鍵盤 1 96 数字鍵盤 2 97 数字鍵盤 3 ... 阅读全文
posted @ 2013-11-26 09:32 冫^浩 阅读(861) 评论(0) 推荐(0)

2013年11月25日 #

摘要: Flex: IModelLocator:IModelInstance 接口声明公开元数据信息的函数,该元数据信息依赖于由 Adobe 应用程序建 模技术生成的值对象的实例状态。针对在模型中声明的每个实体,都会生成该接口的实现。与值对象对应的实例可通 过其_model属性进行访问。IModelLocator公共方法: 1,getAvailableProperties():IPropertyIterator返回由变体确定的该实例所有可用属性的名称。 2,getDependantInvalidConstraints(propertyName:String):Array返回其值可能因 ... 阅读全文
posted @ 2013-11-25 14:41 冫^浩 阅读(291) 评论(0) 推荐(0)

摘要: 错误:Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.双击servers打开Tomcat的配置视图 -> 在Timeouts配置里在Star(in seconds)后面把里面的时间值修改成较大的值 -> 然后保存配置。 在包资源管理器里面打开server.xml 找到下列代码并释放此列代码(代码被注释): 阅读全文
posted @ 2013-11-25 12:21 冫^浩 阅读(241) 评论(0) 推荐(0)

2013年11月22日 #

摘要: spring的三种注入方式:接口注入(不推荐)getter,setter方式注入(比较常用)构造器注入(死的应用)关于getter和setter方式的注入:autowire="defualt"autowire=“byName”autowire="bytype"例如:有如下两个类需要注入1packageorg.jia;23publicclassOrder{4privateStringorderNum;5@SuppressWarnings("unused")6privateOrderItemorderitem;78publicOrderI 阅读全文
posted @ 2013-11-22 09:18 冫^浩 阅读(138) 评论(0) 推荐(0)

2013年11月21日 #

摘要: //最常规的一种遍历方法,最常规就是最常用的,虽然不复杂,但很重要,这是我们最熟悉的,就不多说了!! public static void work(Map map) { Collection c = map.values(); Iterator it = c.iterator(); for (; it.hasNext();) { System.out.println(it.next()); } } //利用keyset进行遍历,它的优点在于可以根据你所想要的key值得到你想要的 values,更具灵活... 阅读全文
posted @ 2013-11-21 13:17 冫^浩 阅读(328) 评论(0) 推荐(0)