- 博客(6)
- 收藏
- 关注
原创 springboot前端H5通过url访问项目外静态资源
本文基于springboot的web项目,打包为war包部署到外部容器tomcat的webapps下方式一、直接在配置文件中配置#静态文件路径spring.mvc.static-path-pattern=/image/**#资源映射地址为file:F:/tomcat/outImage,图片存放的真实路径spring.resources.static-locations=file:F...
2018-08-19 10:10:47 3401
转载 Spring Boot:内置tomcat启动和外部tomcat部署总结
springboot的web项目的启动主要分为:一.使用内置tomcat启动启动方式:1、IDEA中main函数启动2、mvn springboot-run 命令3、java -jar XXX.jar配置内置tomcat属性:关于Tomcat的属性都在org.springframework.boot.autoconfigure.web.ServerProperties配...
2018-08-19 08:59:08 2852
转载 Push to origin/master was rejected or refusing to merge unrelated histories
使用git进行更新报错Git Pull Failed: refusing to merge unrelated histories或者提交报错Push rejected: Push to origin/master was rejected原因是git拒绝合并两个不相干的内容解决办法:$ git pull origin master --allow-unrelated-histories...
2018-08-14 20:54:00 708
原创 在IDEA上将本地git仓库的代码上传到github步骤
1、IDEA配置git settings-->Version Control-->Git-->右侧Path to Git executable找到git安装地址的git.exe -->Test测试一下,出现版本信息OK2、将本地的项目目录建为本地git仓库,鼠标先选中整个项目根目录,点击工具栏VCS-->import into Version Control--&...
2018-08-11 14:26:38 1887
原创 在IDEA上springboot项目修改文件后无需重启(热部署)
想在调试springboot项目时,修改静态资源文件后不重启可以通过下面两步来达到目的1、在pom中直接引入依赖<dependency> <groupId>org.springframework</groupId> <artifactId>springloaded</artifactId> <ver...
2018-08-11 09:42:53 8572
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人