文章目录
Spring2.5引入使用注解定义Bean
@Component 描述Spring框架中的Bean
@Repository用于对DAO实现类进行标注
@Service用于对Service实现类进行标注
@Controller用于对Controller实现类进行标注
找文档:
spring-framework-4.2.4.RELEASE/docs/spring-framework-reference/html/xsd-configuration.html
找到下面的,40.2.8the context schema
<?xml version="1.0" encoding="UTF-8"?>
<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" xsi:schemaLocation&#