2018年7月16日
摘要: 笔者知道这招非常高兴,SpringBoot本身集成TomCat等web服务器,Tomcat用的比较熟,但怎么访问上传进来的文件呢?Root文件夹都没有。难道部署到服务器上,还要在服务器上开个Tomcat?我相信SpringBoot应该不... 阅读全文
posted @ 2018-07-16 22:20 张风捷特烈 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 现在来介绍SpringBoot基于jpa对MySQL进行操作。既然是数据库操作总有点目标和资源吧,现在来做一个:《万界神兵录》收集一下天下神兵,从剑开始一.前期准备1.个人还是比较喜欢自己建表:建表CREATE TABLE sword(... 阅读全文
posted @ 2018-07-16 19:35 张风捷特烈 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 需要使用引擎模板thymeleaf,如果不清楚,可见04--SpringBoot之模板引擎--thymeleaf1.新建表单网页:templates/upfile.html Title 文件上传 2.控制器:t... 阅读全文
posted @ 2018-07-16 19:19 张风捷特烈 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 一.前期工作1.添加依赖 org.springframework.boot spring-boot-starter-thymeleaf2.thymeleaf 静态资源配置:src\main\resources\applica... 阅读全文
posted @ 2018-07-16 19:02 张风捷特烈 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 避免修改内容后必须重启才能再继续玩耍1:添加依赖:toly01\pom.xml org.springframework.boot spring-boot-dev... 阅读全文
posted @ 2018-07-16 13:10 张风捷特烈 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 一:url传参1.get方式Url传参:@PathVariable ////------get方式Url传参 @GetMapping({"/id/{the_Param}"}) public String id(@Pat... 阅读全文
posted @ 2018-07-16 09:55 张风捷特烈 阅读(152) 评论(0) 推荐(0) 编辑