Skip to content

Commit 4b429f0

Browse files
committed
update encoding config
1 parent cf144fd commit 4b429f0

File tree

3 files changed

+25
-13
lines changed

3 files changed

+25
-13
lines changed

README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,23 @@ metrics | @Timed
4848

4949
# ![springfox](src/main/webapp/image/swagger.png)
5050
---
51-
>
52-
> * develop开发分支
53-
> * cxf test `apache cxf`
54-
> * JdbcTemplate(test spring `jdbctemplate`/test `shiro`)
55-
> * springtask(test spring `task`/`quartz`)
56-
> * velocity(test `velocity` template)
57-
> * swagger (test `swagger` api doc)
51+
52+
## tomcat encoding
53+
54+
```
55+
<Connector port="8080" protocol="HTTP/1.1"
56+
connectionTimeout="20000"
57+
redirectPort="8443"
58+
URIEncoding="ISO-8859-1"/>
59+
```
60+
61+
62+
> * develop开发分支
63+
> * cxf test `apache cxf`
64+
> * JdbcTemplate(test spring `jdbctemplate`/test `shiro`)
65+
> * springtask(test spring `task`/`quartz`)
66+
> * velocity(test `velocity` template)
67+
> * swagger (test `swagger` api doc)
5868
5969
# other projects
6070
> `ssmbt(ssmbootstrap_table maven module )` github:[https://github.com/netbuffer/ssmbt](https://github.com/netbuffer/ssmbt)`/`git@osc:[https://gitee.com/netbuffer/ssmbt](https://gitee.com/netbuffer/ssmbt)

help/db.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
CREATE DATABASE u CHARACTER SET utf8 COLLATE utf8_general_ci;
2+
13
CREATE TABLE `user` (
24
`id` bigint(11) NOT NULL AUTO_INCREMENT,
35
`name` varchar(50) NOT NULL COMMENT '姓名',

src/main/resources/jdbc.properties

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
jdbc.driver=com.mysql.jdbc.Driver
2-
jdbc.url=jdbc:mysql://127.0.0.1:3306/u
2+
jdbc.url=jdbc:mysql://127.0.0.1:3306/u?useSSL=false&characterEncoding=utf8
33
jdbc.username=root
44
jdbc.password=root
5-
#\u5b9a\u4e49\u521d\u59cb\u8fde\u63a5\u6570
5+
#\u5B9A\u4E49\u521D\u59CB\u8FDE\u63A5\u6570
66
jdbc.initialSize=1
7-
#\u5b9a\u4e49\u6700\u5927\u8fde\u63a5\u6570
7+
#\u5B9A\u4E49\u6700\u5927\u8FDE\u63A5\u6570
88
jdbc.maxActive=2
9-
#\u5b9a\u4e49\u6700\u5c0f\u7a7a\u95f2
9+
#\u5B9A\u4E49\u6700\u5C0F\u7A7A\u95F2
1010
jdbc.minIdle=1
11-
#\u5b9a\u4e49\u6700\u957f\u7b49\u5f85\u65f6\u95f4
11+
#\u5B9A\u4E49\u6700\u957F\u7B49\u5F85\u65F6\u95F4
1212
jdbc.maxWait=6000
1313
jdbc.validationQuery=select 0
1414
#--------------------
@@ -17,5 +17,5 @@ jdbc.url2=jdbc:mysql://127.0.0.1:3306/u2
1717
jdbc.username2=root
1818
jdbc.password2=root
1919
jdbc.mysql.connectTime=86400
20-
#程序使用的端口
20+
#\u7A0B\u5E8F\u4F7F\u7528\u7684\u7AEF\u53E3
2121
appport=8080

0 commit comments

Comments
 (0)