摘要:
xml配置。编写接口方法,和实现类,把配置类和实现类放进IOC容器中 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http:/ 阅读全文
posted @ 2021-01-20 13:57
程序练习生1412
阅读(58)
评论(0)
推荐(0)
摘要:
1、常量注入 <bean id="student" class="com.kuang.pojo.Student"> <property name="name" value="小明"/> </bean> 测试: @Test public void test01(){ ApplicationContex 阅读全文
posted @ 2021-01-20 10:24
程序练习生1412
阅读(119)
评论(0)
推荐(0)

浙公网安备 33010602011771号