static:保存所有的静态资源: js css images; templates:保存所有的模板页面;(Spring Boot默认jar包使用嵌入式的Tomcat,默认不支持JSP页面);可以使用模板引擎(freemarker、thymeleaf); SpringBoot使用一个全局的配置文件, ...
分类:
编程语言 时间:
2019-08-18 15:50:29
阅读次数:
91
前端网站学习地址 https://www.codecademy.com/ freeCodeCamp W3schools Please have a look at the templates at o https://www.w3schools.com/w3css/w3css_templates.a ...
分类:
Web程序 时间:
2019-08-17 15:06:55
阅读次数:
167
1、引入模板thymeleaf 增加配置 2、增加接口 3、创建Html页面 index.html 路径为:resources/templates/index.html 4、查看效果 ...
分类:
编程语言 时间:
2019-08-16 18:52:09
阅读次数:
113
快看小说网 我们在做Web应用的时候,请求处理过程中发生错误是非常常见的情况。Spring Boot提供了一个默认的映射:/error,当处理中抛出异常之后,会转到该请求中处理,并且该请求有一个全局的错误页面用来展示异常内容。我怎么这么有钱 选择一个之前实现过的Web应用(Chapter3-1-2) ...
分类:
编程语言 时间:
2019-08-11 21:27:11
阅读次数:
130
一、ansible--roles使用 ansible在之前说明了playbook的使用,接下来介绍roles的使用(因剧本太多且杂乱,不在一一写出,请见谅) 1.Nginx安装信息: 2.PHP安装信息: 3.MySQL安装信息: 4.playbook安装结构: 5.playbook安装如下: 6. ...
分类:
其他好文 时间:
2019-08-10 13:59:47
阅读次数:
57
1. templates 2. v-if, v-for ...
分类:
其他好文 时间:
2019-08-10 11:28:59
阅读次数:
55
代码: yml配置: 把html放在templates中: ...
分类:
其他好文 时间:
2019-08-09 19:15:06
阅读次数:
346
进入设置: File -> Settings 进入设置: File -> Settings 依次选择: Editor -> File and Code Templates -> Files -> Class (根据需要选择Interface 和 Enum) 注释模板: /*** @program: ...
分类:
其他好文 时间:
2019-08-09 15:20:03
阅读次数:
659
一、extends使用方法 首先extends也就是继承,子类继承父类的一些特性。在django模板中通过继承可以减少重复代码。 首先我们建立一个app,名字叫做hello。别忘了在settings.py中的INSTALLED_APPS注册这个app。不注册会出现hello目录下的templates ...
分类:
其他好文 时间:
2019-08-07 22:33:04
阅读次数:
101
? my_project git:(master) ? php bin/console make:controller BrandNewController created: src/Controller/BrandNewController.php created: templates/brand ...
分类:
Web程序 时间:
2019-07-31 15:19:42
阅读次数:
161