@Resource的作用相当于@Autowired,只不过@Autowired按byType自动注入,而@Resource默认按byName自 动注入罢了。@Resource有两个属性是比较重要的,分是name和type,Spring将@Resource注解的name属性解析为bean的 名字,而t...
分类:
其他好文 时间:
2014-08-04 21:16:27
阅读次数:
194
首先看看Demo的截图: 下面我将一步步展示实现这个Demo的过程,这个需求就是读出Zip文件中的图片与视频。 Demo整体架构: 首先我们准备几张图片和视频,然后将其压缩至resource.zip文件中,做完之后,我们建立一个resource.xml文件记录压缩包内的资源 ...
分类:
Web程序 时间:
2014-08-04 16:56:07
阅读次数:
340
代码: 为了探寻??‘@Resource’, ‘@Autowired’, 和‘@Inject’如何解决依赖注入中的问题,我创建了一个“Party”接口,和它的两个实现类“Person”,“Organization”。这样我就可以在注入Bean的时候不必使用...
分类:
编程语言 时间:
2014-08-04 14:50:47
阅读次数:
333
用Eclipse在线安装的方式:Help-->Install New Software地址输入:http://m2eclipse.sonatype.org/sites/m2e/,列表中打勾勾上后点击Next安装maven插件时遇到了如下的错误:Cannot complete the install ...
分类:
其他好文 时间:
2014-08-04 13:42:47
阅读次数:
255
要安装 readline , readline-dev 开发包,要么使用 --without-readline 选项关闭 readline 功能。#yum install readline;#yum install readline-dev;readline 也就是命令行编辑,关闭的话,你直接用ps...
分类:
数据库 时间:
2014-08-03 20:22:15
阅读次数:
424
输入一个字符串S,再输入一个字符c,要求在字符串S中查找字符c。如果找不到则输出“Not found”;若找到则输出字符串S中从c开始的所有字符。输入格式:输入在第1行中给出一个不超过80个字符长度的、以回车结束的非空字符串;在第2行中给出一个字符。输出格式:在一行中按照题目要求输出结果。输入样例1...
分类:
其他好文 时间:
2014-08-03 15:09:15
阅读次数:
145
【Phong Shading】 The most serious problem with Gouraud shading occurs when specular highlights are found in the middle of a large polygon. Since these....
分类:
其他好文 时间:
2014-08-03 12:43:25
阅读次数:
223
[root@node1/]#yuminstallpython-pip-ypipinstallpython-novaclientpipinstallpython-ceilometerclientpipinstallpython-cinderclientpipinstallpython-glanceclient-haserrorwheniinstallpipinstallpython-heatclientpipinstallpython-keystoneclientpipinstallpython-neutron..
分类:
编程语言 时间:
2014-08-03 07:57:55
阅读次数:
443
Problem Description
The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze was changed and the way he came in was lost.He realized that the bo...
分类:
其他好文 时间:
2014-08-02 23:31:54
阅读次数:
274
说明了JSP页面里引用安全登录页面的jsp路径代码:这句代码引用的路径是错误的。解决办法:确认路径并修改成正确路径即可。
分类:
Web程序 时间:
2014-08-02 18:18:53
阅读次数:
223