Spring的官方网站中的项目例子
springframework的官网
https://spring.io/projects/spring-framework
spring-mvc
https://github.com/spring-projects/spring-mvc-showcase
spring宠物医院
https://github.com/spring-projects/spring-petclinic
本地运行指导
spring绿房子
https://github.com/spring-projects/greenhouse
spring-boot
https://github.com/spring-projects/spring-boot
项目中的spring的配置
清理git仓库的分支
切换到主分支上,将新的新开创的分支提交到远程仓库
再和主分支合并
git merge
重新理解,分支开发,合并到主分支,master ,然后发布master
git branch --set-upstream-to=origin/v1.2
正式开始spring和springMVC的实操
导入三个配置文件
applicationContext.xml :spring容器的主配置
applicationContext-datasource.xml 是applicationContext.xml中分离出来的配置文件
mmall.properties
在webapp下WEB-INF中加入一个配置文件 dispatcher-servlet.xml 是spring-mvc的配置
在将web.xml文件替换掉
解决下面的问题
logback.xml 日志管理的配置文件加载进来
ftp服务器的相关配置
mmall.properties
还有两个idea的配置
idea的注入和自动编译的配置
这又是什么鬼???
多了一个problems 可以实时编译
另一个配置默认是error
修改为warning
项目初始化的代码提交到git上
1.git status 查看文件变更
2.确认分支无误 git branch
3.git add . 添加所有文件
4. git commit -am "第四次提交:项目初始化代码提交 project init"
5. git push 推送远程同名分之
代码提交完成,远程仓库刷新确认
翻墙安装了两个插件到chrome浏览器上
json序列化,美观代码
好多使用的功能
模拟http请求的
尝试模拟请求百度
主要是用来调试各种请求