仓库地址 w4ngzhen/springboot-simple-guide: This is a project that guides SpringBoot users to get started quickly through a series of examples (github.com) Chapter01-如何用Spring框架声明Bean 前言 在上一章中,我们已经掌握了Spring最基本的使用方式: 通过使用@Component注解标记我们的类作为一个Bean组件. 使用Spr…
仓库地址 w4ngzhen/springboot-simple-guide: This is a project that guides SpringBoot users to get started quickly through a series of examples (github.com) Chapter03-基于SpringBoot的Web服务 前言 终于,我们的教程来到了SpringBoot核心功能的介绍.对于本章,各位读者至少具备以下的知识: maven的使用 HTTP Spri…
仓库地址 w4ngzhen/springboot-simple-guide: This is a project that guides SpringBoot users to get started quickly through a series of examples (github.com) Chapter02-Spring依赖注入的方式 我们在Chapter00-2.2节依赖注入已经介绍了Spring的对象依赖注入的方式,在那个例子中,我们使用了字段的setter方法对字段进行了注入.…
仓库地址 w4ngzhen/springboot-simple-guide: This is a project that guides SpringBoot users to get started quickly through a series of examples (github.com) Chapter00 学习SpringBoot前的基本知识 一 反射 在Java中,我们可以通过反射(Reflection)来获取任何类的类型信息,其中最值得关注的就是Class类.通过Class类,…
仓库地址 w4ngzhen/springboot-simple-guide: This is a project that guides SpringBoot users to get started quickly through a series of examples (github.com) Chapter05-SpringBoot中的AOP面向切面编程简介 在上一章中,我们编写了一款基于SpringBoot的书籍信息管理Web应用,实现了对书籍信息的增删查改操作.现在,我们有了一个新的…
仓库地址 w4ngzhen/springboot-simple-guide: This is a project that guides SpringBoot users to get started quickly through a series of examples (github.com) Chapter04-基于SpringBoot的书籍管理Web服务 从本章开始,我们将会基于SpringBoot框架,来编写一块书籍管理的应用.为了契合我们的简单教程原则,项目不会出现复杂的结构,只会…
目录 安装python 安装git 安装powerline字体 主题定制 安装oh-my-posh 查看策略组的执行权限 使用choco 安装终端模拟器 - ConEmu 优化 PowerShell 的配色 将powershell的提示符改为 Emoji 不从Window terminal中使用 Powershell 接着之前的文章 黑科技抢先尝(续) - Windows terminal中WSL Linux 终端的极简美化指南,依然假定你安装好了windows terminal预编译版本. 这…
1. id属性和name属性的区别 * id -- Bean起个名字,在约束中采用ID的约束,唯一 * 取值要求:必须以字母开始,可以使用字母.数字.连字符.下划线.句话.冒号 id:不能出现特殊字符 * name -- Bean起个名字,没有采用ID的约束(了解)现在不使用name了,因为struts1已经不使用了 * 取值要求:name:出现特殊字符.如果<bean>没有id的话 , name可以当做id使用 * Spring框架在整合Struts1的框架的时候,Struts1的框架的访问…
一.Bean 的完整生命周期 在传统的Java应用中,bean的生命周期很简单,使用Java关键字 new 进行Bean 的实例化,然后该Bean 就能够使用了.一旦bean不再被使用,则由Java自动进行垃圾回收. 相比之下,Spring管理Bean的生命周期就复杂多了,正确理解Bean 的生命周期非常重要,因为Spring对Bean的管理可扩展性非常强,下面展示了一个Bean的构造过程 Bean 的生命周期 如上图所示,Bean 的生命周期还是比较复杂的,下面来对上图每一个步骤做文字描述:…
目录 修改默认源,为apt-get安装提速 安装python 和 python pip 安装 zsh 安装powerline-font中的特定字体 安装powerline-shell 修改~目录下的配置文件 .bashrc 和 .zshrc zsh主题定制 安装 oh_my_zsh 从 Windows 10 的 Bash 中运行 WSL 之前,本人写了一篇文章 黑科技抢先尝 - Windows全新终端初体验(附无需编译就能安装的Preview版本及代码Build全过程,介绍了玩转Windows…