• 大小: 363KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-07
  • 语言: 其他
  • 标签: Spring-boot  

资源简介

Spring-boot web项目实例,前后端数据传递,页面搭建。

资源截图

代码片段和文件信息

package org.sang;

import org.springframework.boot.context.embedded.ConfigurableembeddedServletContainer;
import org.springframework.boot.context.embedded.embeddedServletContainerCustomizer;
import org.springframework.boot.web.servlet.ErrorPage;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;

import java.util.concurrent.TimeUnit;

/**
 * Created by sang on 16-12-21.
 */
@Component
public class CustomServletContainer implements embeddedServletContainerCustomizer {
    @Override
    public void customize(ConfigurableembeddedServletContainer container) {
        container.setPort(8443);
        container.addErrorPages(new ErrorPage(HttpStatus.NOT_FOUND“/404.html“));
        container.setSessionTimeout(10 TimeUnit.MINUTES);
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        272  2018-01-03 10:46  Test20-Thymeleaf1\.gitignore

     文件       1260  2018-01-03 10:46  Test20-Thymeleaf1\.keystore

     文件      49502  2018-01-03 10:46  Test20-Thymeleaf1\.mvn\wrapper\maven-wrapper.jar

     文件        111  2018-01-03 10:46  Test20-Thymeleaf1\.mvn\wrapper\maven-wrapper.properties

     文件       2556  2018-01-03 10:46  Test20-Thymeleaf1\keystore.p12

     文件       7291  2018-01-03 10:46  Test20-Thymeleaf1\mvnw

     文件       5150  2018-01-03 10:46  Test20-Thymeleaf1\mvnw.cmd

     文件       1493  2018-01-03 10:46  Test20-Thymeleaf1\pom.xml

     文件        595  2018-01-03 10:46  Test20-Thymeleaf1\src\main\java\org\sang\bean\Person.java

     文件        808  2018-01-03 10:46  Test20-Thymeleaf1\src\main\java\org\sang\CustomServletContainer.java

     文件       2760  2018-01-03 10:46  Test20-Thymeleaf1\src\main\java\org\sang\Test20Thymeleaf1Application.java

     文件        626  2018-01-03 10:46  Test20-Thymeleaf1\src\main\java\org\sang\WebMVCConfig.java

     文件        640  2018-01-03 10:46  Test20-Thymeleaf1\src\main\resources\application.properties

     文件      22979  2018-01-03 10:46  Test20-Thymeleaf1\src\main\resources\favicon.ico

     文件        142  2018-01-03 10:46  Test20-Thymeleaf1\src\main\resources\static\404.html

     文件      22197  2018-01-03 10:46  Test20-Thymeleaf1\src\main\resources\static\bootstrap\css\bootstrap-theme.css

     文件      41933  2018-01-03 10:46  Test20-Thymeleaf1\src\main\resources\static\bootstrap\css\bootstrap-theme.css.map

     文件      19203  2018-01-03 10:46  Test20-Thymeleaf1\src\main\resources\static\bootstrap\css\bootstrap-theme.min.css

     文件     143948  2018-01-03 10:46  Test20-Thymeleaf1\src\main\resources\static\bootstrap\css\bootstrap.css

     文件     366866  2018-01-03 10:46  Test20-Thymeleaf1\src\main\resources\static\bootstrap\css\bootstrap.css.map

     文件     114015  2018-01-03 10:46  Test20-Thymeleaf1\src\main\resources\static\bootstrap\css\bootstrap.min.css

     文件      20335  2018-01-03 10:46  Test20-Thymeleaf1\src\main\resources\static\bootstrap\fonts\glyphicons-halflings-regular.eot

     文件      63154  2018-01-03 10:46  Test20-Thymeleaf1\src\main\resources\static\bootstrap\fonts\glyphicons-halflings-regular.svg

     文件      41280  2018-01-03 10:46  Test20-Thymeleaf1\src\main\resources\static\bootstrap\fonts\glyphicons-halflings-regular.ttf

     文件      23320  2018-01-03 10:46  Test20-Thymeleaf1\src\main\resources\static\bootstrap\fonts\glyphicons-halflings-regular.woff

     文件      68089  2018-01-03 10:46  Test20-Thymeleaf1\src\main\resources\static\bootstrap\js\bootstrap.js

     文件      34659  2018-01-03 10:46  Test20-Thymeleaf1\src\main\resources\static\bootstrap\js\bootstrap.min.js

     文件        496  2018-01-03 10:46  Test20-Thymeleaf1\src\main\resources\static\bootstrap\js\npm.js

     文件     392856  2018-01-03 10:46  Test20-Thymeleaf1\src\main\resources\static\jquery-3.1.1.js

     文件        131  2018-01-03 10:46  Test20-Thymeleaf1\src\main\resources\templates\hello.html

............此处省略25个文件信息

评论

共有 条评论