2022年4月19日
摘要: 简单的环形 HTML代码 <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=de 阅读全文
posted @ 2022-04-19 21:52 bug鸭~ 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 1.先看看项目的整体结构。 2.上代码 applicationContext.xml核心配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xml 阅读全文
posted @ 2022-04-19 21:21 bug鸭~ 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 1.首先先看一整个项目的目录结构及所用的包。 2.IOC控制反转 + DI依赖注入 将对象通过spring的核心配置注入到spring容器中 使用容器创建对象,不需要自己new,降低耦合性 3.话不多说,直接上代码 applicationContext.xml配置文件 <?xml version=" 阅读全文
posted @ 2022-04-19 21:10 bug鸭~ 阅读(18) 评论(0) 推荐(0) 编辑
摘要: HTML代码 <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-w 阅读全文
posted @ 2022-04-19 20:54 bug鸭~ 阅读(338) 评论(0) 推荐(0) 编辑