摘要: 依赖注入 (普通、引用、集合:list、map、property) √ bean的创建方法、singleton和sterotype √ 属性的注入方法 √数据源配置抽取propertiesxml配置spring,把springcontext放入servletcontextspring注解开发(原始注 阅读全文
posted @ 2022-03-13 23:16 `安安安安安 阅读(35) 评论(0) 推荐(0)
摘要: 1.配置DispatcherServlet 顺手将spring和springmvc的Context放入HttpServlet域; 2.配置spring和springmvc的: 组件扫描 注解驱动,以用来注解开发。 阅读全文
posted @ 2022-03-13 21:47 `安安安安安 阅读(128) 评论(0) 推荐(0)
摘要: ①spring包 <!-- https://mvnrepository.com/artifact/org.springframework/spring-context --><dependency> <groupId>org.springframework</groupId> <artifactId 阅读全文
posted @ 2022-03-13 21:16 `安安安安安 阅读(32) 评论(0) 推荐(0)
摘要: ①指定maven的包目录; ②修改settings.xml: 仓库位置 镜像设置 阅读全文
posted @ 2022-03-13 21:07 `安安安安安 阅读(15) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/ssllkkyyaa/article/details/80855133 https://blog.csdn.net/chenpuzhen/article/details/80368405 多个模块可以是相互独立的,但是也可以相互导入坐标引用 建多模块的好处 阅读全文
posted @ 2022-03-13 20:44 `安安安安安 阅读(152) 评论(0) 推荐(0)
摘要: 原始方式整合配置文件: 1.web.xml ①spring的监听器; ②springmvc的DispacherServlet; ③防乱码的filter。 2.applicationContext.xml ①组件扫描。 3.spring-mvc.xml ①组件扫描; ②mvc的注解驱动; ③内部资源视 阅读全文
posted @ 2022-03-13 16:09 `安安安安安 阅读(29) 评论(0) 推荐(0)