Day07:环境配置

2017-07-19  本文已影响0人  宇宙超人喵学长

1、thymeleaf模板引擎

<ul class="list-group"> <li class="list-group-item" th:each="person:${people}"> <span th:text="${person.name}"></span> <span th:text="${person.age}"></span> </li> </ul>

2、集成Spring MVC

3、Web相关配置

4、静态首页,index可以自动映射的路径

classpath:/META-INF/resources/index.html classpath:/resources/index.html classpath:/static/index.html classpath:/public/index.html

5、接管springboot的web配置

@Override public void addViewControllers(ViewControllerRegistry registry) { registry.addViewController("/xx").setViewName("/xx"); }

6、Servlet容器配置

server.port= server.session-timeout= #用户会话session过期时间,以秒为单位 server.context-path= #配置访问路径,默认为/ server.tomcat.url-encoding= server.tomcat.compression= #tomcat是否开启压缩,默认关闭

7、SSL(secure sockets layer,网络套接层)

上一篇 下一篇

猜你喜欢

热点阅读