摘要: 简介 Spring集合Web环境:通过Listener自动创建ApplicationContext,并放入ServletContext中。通过这样不用每次都new ApplicationContext() 操作 1. web.xml中配置ContextLoaderListener监听器,监听Web启 阅读全文
posted @ 2021-11-19 17:57 remix_alone 阅读(43) 评论(0) 推荐(0)
摘要: dd 阅读全文
posted @ 2021-11-19 17:55 remix_alone 阅读(18) 评论(0) 推荐(0)
摘要: 简介 通过<bean> 标签配置数据源 原来,<bean>标签本质上将对象加载到Spring容器里。用<property name="" value=""> 对该对象get/set方法设置。 CombopoolDataSource有setUrl,setDriver,setUser,setPasswo 阅读全文
posted @ 2021-11-19 17:54 remix_alone 阅读(81) 评论(0) 推荐(0)
摘要: Spring是一个存储Bean的容器。但不像AndroidStudio那样自动化,需要编写applicationContext.xml // 标签配置方式 对于bean标签需要找到和标记。 class,id 对于property标签需要找到和赋值 -- name,value(ref) // 注解配置 阅读全文
posted @ 2021-11-19 11:37 remix_alone 阅读(30) 评论(0) 推荐(0)