目录
目录README.md

boot-demo

A Java web server demo based on Spring boot.

Requirements

  1. jdk 1.8+
  2. maven
  3. spring-boot
  4. mybatis

Idea is recommended to import this project.

Module Introduction

module introduction
boot-cache cache components
boot-common contains common component code for the entire project
boot-common-dao common component code for DAO
boot-common-rpc common component code for rpc invocation based on HTTP
boot-common-web common component code for web server
boot-dao DAO service code
boot-origin summary of common reliance packages
boot-server HTTP server using Spring boot
boot-mybatis-generator custom mybatis mapper generator

Branches

  • master: default main branch
  • postgres: database using PostgreSQL

Filters and Interceptors

+--------------------------------+
| tomcat                         |
| +----------------------------+ |
| | Filter                     | |
| | +------------------------+ | |
| | | Servlet                | | |
| | | +--------------------+ | | |
| | | | Interceptor        | | | |
| | | | +----------------+ | | | |
| | | | | Controller     | | | | |
| | | | +----------------+ | | | |
| | | +--------------------+ | | |
| | +------------------------+ | |
| +----------------------------+ |
+--------------------------------+

Filters: 随着Tomcat等web容器启动时而进行初始化, 几乎可以拦截所有进入容器的请求

  • RequestBodyWrapper
  • XSSHTTPFilter
  • LogFilter

Interceptors: 随着spring启动而进行初始化, 只会对Controller请求或访问static目录下的静态资源请求起作用

邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号