
SpringBoot
HUI?
这个作者很懒,什么都没留下…
展开
-
SpringBoot Web——员工管理系统
一、准备工作 1.静态资源及导入 .html放入templates中,asserts中的文件放入static中 2.写pojo和dao 二、首页实现 MyMvcConfig.java @Override public void addViewControllers(ViewControllerRegistry registry) { registry.addViewController("/").setViewName("index"); registry.add原创 2020-09-19 18:42:00 · 619 阅读 · 1 评论 -
SpringBoot Web——thymeleaf模板引擎
1.三个网址: 1、Thymeleaf官网: http://www.thymeleaf.org 2、Thymeleaf在Github的主页: http://github.com/thymeleaf/thymeleaf 3、Spring官方文档:“http://docs.spring.io/spring-boot/docs/2.0.3.RELEASE/reference/htmlsingle/#using-boot-starter 模板引擎的作用就是我们来写一个页面模板 2.结论: 只要需要使用thyme原创 2020-09-14 10:38:20 · 223 阅读 · 0 评论 -
SpringBoot Web——首页和图标定制
1.首页定制 新建文件index.html,设置“首页” 可放置目录: -resources -> public -resources -> static 2.图标定制 图标命名及形式:favicon.ico 放置目录:-resources -> public 注:新版本中没有,老版本才有,比如2.1.7 图示地方为版本号,可自己修改,修改后reload Maven ...原创 2020-09-14 09:25:25 · 277 阅读 · 0 评论 -
SpringBoot Web——静态资源导入探究
总结 1.在springboot中,我们可以使用以下方式处理静态资源 webjars localhost:8080/webjars/ public, static,/** resources localhost:8080/ 2.优先级: resources>static(默认)>public原创 2020-09-13 10:41:06 · 123 阅读 · 0 评论