其他分享
首页 > 其他分享> > Spring注解开发

Spring注解开发

作者:互联网

使用注解需要导入的依赖

<?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="http://www.springframework.org/schema/beans
        https://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/context
        https://www.springframework.org/schema/context/spring-context.xsd">
     <!--开启注解支持-->
    <context:annotation-config/>

</beans>

标签:Qualifier,Autowired,Spring,private,开发,value,注解,属性
来源: https://www.cnblogs.com/luoking/p/15872678.html