mirror of
https://gitee.com/coder-xiaomo/java-note
synced 2025-09-07 04:11:39 +08:00
2
This commit is contained in:
BIN
张博凯的Java学习笔记.assets/image-20220120152419754.png
Normal file
BIN
张博凯的Java学习笔记.assets/image-20220120152419754.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.5 KiB |
BIN
张博凯的Java学习笔记.assets/image-20220120153146124.png
Normal file
BIN
张博凯的Java学习笔记.assets/image-20220120153146124.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 92 KiB |
@@ -593,17 +593,9 @@ src/main/resources/applicationContext.xml
|
||||
|
||||
|
||||
|
||||
##### 配置Tomcat服务器
|
||||
##### idea与Tomcat集成
|
||||
|
||||
> Tomcat官网:https://tomcat.apache.org/
|
||||
>
|
||||
> 下载:https://tomcat.apache.org/download-90.cgi
|
||||
>
|
||||
> 
|
||||
>
|
||||
> 目录结构:
|
||||
>
|
||||
> 
|
||||
[配置Tomcat服务器](#配置Tomcat服务器)、[idea与tomcat集成](#idea与tomcat集成)
|
||||
|
||||
|
||||
|
||||
@@ -635,7 +627,7 @@ src/main/resources/applicationContext.xml
|
||||
|
||||
|
||||
|
||||
## Java
|
||||
## Java、Javaweb
|
||||
|
||||
### Lombok
|
||||
|
||||
@@ -691,8 +683,6 @@ https://mvnrepository.com/artifact/org.projectlombok/lombok
|
||||
|
||||
|
||||
|
||||
## Javaweb
|
||||
|
||||
### JDBC(以MySQL为例)
|
||||
|
||||
> Java连接数据库的技术
|
||||
@@ -794,6 +784,63 @@ public class UserJdbc {
|
||||
|
||||
|
||||
|
||||
### Tomcat
|
||||
|
||||
#### 配置Tomcat服务器
|
||||
|
||||
<span id="配置Tomcat服务器"></span>
|
||||
|
||||
> Tomcat官网:https://tomcat.apache.org/
|
||||
>
|
||||
> 下载:https://tomcat.apache.org/download-90.cgi
|
||||
>
|
||||
> 
|
||||
|
||||
##### 目录结构
|
||||
|
||||
> bin:启动或停止Tomcat服务器
|
||||
>
|
||||
> conf:核心配置文件,可以修改端口号等信息
|
||||
>
|
||||
> lib:所需的jar文件
|
||||
>
|
||||
> logs:日志信息
|
||||
>
|
||||
> temp
|
||||
>
|
||||
> webapps:项目部署
|
||||
>
|
||||
> work
|
||||
|
||||

|
||||
|
||||
##### 启动
|
||||
|
||||
| | Windows | Linux |
|
||||
| -------- | ---------------- | --------------- |
|
||||
| 启动服务 | bin/startup.cmd | bin/startup.sh |
|
||||
| 停止服务 | bin/shutdown.cmd | bin/shutdown.sh |
|
||||
|
||||
##### Tomcat核心文件讲解
|
||||
|
||||
conf/server.xml 配置或修改端口号(建议添加 `URIEncoding="utf-8")`
|
||||
|
||||
```xml
|
||||
<Connector port="8080" protocol="HTTP/1.1"
|
||||
connectionTimeout="20000"
|
||||
redirectPort="8443" URIEncoding="utf-8" />
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### idea与Tomcat集成
|
||||
|
||||
<span id="idea与tomcat集成"></span>
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
### Servlet
|
||||
|
Reference in New Issue
Block a user