探索日记
f5d17c798287e6d27d0e8968f54a971ccdf5f4cb14b7bd9407445fe1e3cb43393281e9fbb57cec1b5877ad6c465d245ce0586701b8d37af175121863bc3d1346a6cbcee4a0f871c76fbb085703a4fc3b63b082768758e08d899ab34808144e1e40db48749bd8df6eef02507b3b388887dab48f0d48f132f66e13b8dd0966fa1b337ade879ef04e12d85adf8fb4e1d644b519b874111e1a6dbb38d683b3d1a19cfeff9c55fcd1d786d32fbd9a5c944ebb72c50f5bc783b7431446de101a08e9e7b6ceea14bbe265f43db84b1a854ce09be4877b9d5603fd8c30062d470a52275dc9d1b4e51cb437c63e51d3d9abfad7a0a949ca56ce295d136 ...
Spring-Day01— IOC&DI
Spring-Day1 — IOC&DI学什么 简化开发: Spring框架中提供了两个大的核心技术
IOC
AOP
核心概念IOC & IOC容器 & Bean
IOC(Inversion of Control)控制反转
不自己new对象,交给容器new – 解耦
IOC容器负责对象的创建、初始化等一系列工作,其中包含了数据层和业务层的类对象
被创建或被管理的对象在IOC容器中统称为Bean
DI
(Dependency Injection)依赖注入
建立容器中对象与对象之间的绑定关系
service运行需要依赖dao对象
案例解耦BookDao
pom.xml添加依赖
添加案例中需要的类
添加spring配置文件applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post$ hexo new "My New Post"
More info: Writing
Run server$ hexo server
More info: Server
Generate static files$ hexo generate
More info: Generating
Deploy to remote sites$ hexo deploy
More info: Deployment