# java-web-all-in-one
**Repository Path**: quanw20/java-web-all-in-one
## Basic Information
- **Project Name**: java-web-all-in-one
- **Description**: 学习 Java Web 主要是 Servlet
- **Primary Language**: Java
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-09-25
- **Last Updated**: 2023-06-08
## Categories & Tags
**Categories**: Uncategorized
**Tags**: Web
## README
# Read Me
Java web project
JSP Servlet
## 架构
docker 部署
---
```yaml
nginx:
role: Http服务器
port: 80
tomcat-10:
role: Servlet容器
port: 8081
redis:
role: [ 对象存储 ]
port: 6378
oracle-12c:
role: 持久化数据库DBMS
port: 1510
```
MVP 架构
---
```
+-----------+ 1.请求 +----------------+ 2.分发处理 +-----------------+ +-----------+
| | --------------> | Presenter | ---------------> | | | |
| View(JSP) | | (Controller) | | Model(JavaBean) | <-> | DBMS |
| | <-------------- | (Servlet) | <--------------- | | | |
+-----------+ 4.响应 +----------------+ 3.返回结果 +-----------------+ +-----------+
```
## curl
发送GET请求
```bash
curl http://localhost:8080/upload?fn=networklist.xml
```
发送POST请求
```bash
curl -d'a=1' http://localhost:8080
```
```bash
curl -X POST http://localhost:8080
```
## 引入资源
axios
```html
```
Bootstrap css
```html
```
Bootstrap Javascript
```html
```
jQuery
```html
```
chart.js
```html
```