萌新提问,求大佬指点
spring吧
全部回复
仅看楼主
level 1
按照教程打的,为什么运行不了?_?哭死,好难啊。。。。
2019年05月07日 13点05分 1
level 1
自顶!d=====( ̄▽ ̄*)b,在线等大佬
2019年05月08日 03点05分 2
level 1
你没配置bean吧
2019年05月08日 05点05分 3
level 1
<bean id="user" class="com.test.TestMethods.User"/> 这个在xml里面配置
获取bean:
ApplicationContext context = new ClassPathXmlApplicationContext("app.xml");
User user = (User)context.getBean("user");
user.hello();
2019年05月08日 06点05分 4
level 3
用junit为什么不用junit去加载spring配置文件
2019年05月08日 11点05分 5
level 3
还有既然都用注解了,为什么不直接auto进来
2019年05月08日 11点05分 6
level 1
类上面注解@Runwith(SpringRunner.class)
2019年05月17日 02点05分 7
1