- 博客(4)
- 收藏
- 关注
原创 2016-06-12 解析漫云项目的root-servlet.xml
<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:aop="http://www.spr
2016-06-12 10:50:02 336
原创 xml文件:<context:annotation-config/>
在基于主机方式配置Spring的配置文件中,你可能会见到这样一条配置,他的作用是式地向 Spring 容器注册 AutowiredAnnotationBeanPostProcessor、CommonAnnotationBeanPostProcessor、 PersistenceAnnotationBeanPostProcessor 以及 RequiredAnnotationBeanPostPr
2016-06-12 10:23:39 258
原创 xml文件:类级别注解和方法级别注解
xml文件上: Java代码: @RequestMapping("demo") public class XXX{ @RequestMapping("/demo/login") public String login(){ } @RequestMapping("/demo/aad")
2016-06-12 10:11:23 351
原创 xml文件:使用注解属性绑定
用途: 在Spring中有一个注解@Value,他可以帮助我们来讲Spring加载的配置文件(*.perperties)文件中的信息自动的注入到我们的非静态属性中的。 在Spring的配置文件中加载属性文件: 然后在Java代码中使用@Value注解就可以注入值了,比如: @Value("${open_office_install_home}") private String op
2016-06-12 09:44:02 575
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人