1
0
mirror of https://gitee.com/coder-xiaomo/java-note synced 2025-09-06 03:51:37 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-01-20 16:02:28 +08:00
parent 329c516b35
commit 5f257ea712
5 changed files with 35 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

View File

@@ -631,10 +631,44 @@ src/main/resources/applicationContext.xml
> - resources配置文件
> - webapp静态资源html, css, 图片等)
##### 运行
##### 启动
在 webapp 目录下创建 index.jsp ,然后运行就可以看到了。
> Tomcat控制台输出乱码解决方案
>
> ![image-20220120155801302](张博凯的Java学习笔记.assets/image-20220120155801302.png)
>
> 在这两个地方添加下方配置
>
> ```
> -Dfile.encoding=UTF-8
> ```
>
> 1. idea
>
> ![image-20220120160009256](张博凯的Java学习笔记.assets/image-20220120160009256.png)
>
>
>
> ![image-20220120160041194](张博凯的Java学习笔记.assets/image-20220120160041194.png)
>
> 2. tomcat
>
> ![image-20220120160127852](张博凯的Java学习笔记.assets/image-20220120160127852.png)
>
> 添加完后重启idea即可
##### 配置SpringMVC
###### 导入依赖
- spring-context
- spring-jdbc
- spring-
### 连接数据库