spring
history version:
src底下
contextConfigLocation classpath*:/config/spring.xml
WEB-INF底下
contextConfigLocation spring.xml
配置文件读取成功有以下提示
09:01:38,352 INFO [factory.xml.XmlBeanDefinitionReader] Loading XML bean definitions from URL [file:/D:/workplace-ehi/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/zqv2/WEB-INF/classes/config/spring.xml]09:01:38,928 INFO [factory.annotation.AutowiredAnnotationBeanPostProcessor] JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
用于注册bean是否已初始化成功
BeanFactory factory = new ClassPathXmlApplicationContext("config/spring.xml");actionLogService = (ActionLogService) factory.getBean(com.zooqee.v2.service.ActionLogService.class);
Q: 用Jersey构建RESTful服务3--JAVA对象转成JSON输出
MessageBodyWriter not found for media type=application/json, type=class
A: http://blog.csdn.net/kkkloveyou/article/details/21485243