![](https://img-blog.csdnimg.cn/20190918135101160.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
spring
spring
云飞扬12345
这个作者很懒,什么都没留下…
展开
-
普通类从spring容器中获取service
①//普通类从spring容器中拿出serviceWebApplicationContext webctx=ContextLoader.getCurrentWebApplicationContext();BRdbService brdbService = (BRdbService)webctx.getBean("brdbService");②ZYLLService zyllserv...原创 2019-06-14 15:29:23 · 3349 阅读 · 0 评论 -
springmvc之初学(1)
先来个HelloWord,要经过如下配置才能运行1.加入jar包2.配置 web.xml3.创建springmvc的配置文件<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:原创 2017-11-06 11:08:27 · 192 阅读 · 0 评论