貝貝爸爸的程序人生

          關注Seam、BPM
          posts - 23, comments - 10, trackbacks - 0, articles - 32
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          mac下mysql亂碼問題

          Posted on 2012-05-19 01:40 貝貝爸爸 閱讀(780) 評論(0)  編輯  收藏 所屬分類: 程序人生
          今天興致來了,說要在家搞搞平臺的東西,nnd,竟然遇到了莫名其妙的mysql亂碼問題,其實不是mysql的問題,是jdbc數據源的鏈接沒有指明字符集的問題,記下來備用:<datasource jta="false" jndi-name="java:jboss/datasources/MySqlDS" pool-name="bdp" enabled="true" use-java-context="true" use-ccm="true">
                              <connection-url>jdbc:mysql://localhost:3306/bdp-dev?useUnicode=true&amp;characterEncoding=utf8</connection-url>
                              <driver>com.mysql</driver>
                              <pool>
                                  <min-pool-size>10</min-pool-size>
                                  <max-pool-size>100</max-pool-size>
                                  <prefill>true</prefill>
                                  <use-strict-min>false</use-strict-min>
                                  <flush-strategy>FailingConnectionOnly</flush-strategy>
                              </pool>
                              <security>
                                  <user-name>root</user-name>
                              </security>
                              <statement>
                                  <prepared-statement-cache-size>32</prepared-statement-cache-size>
                                  <share-prepared-statements>true</share-prepared-statements>
                              </statement>
                          </datasource>
          主站蜘蛛池模板: 闽清县| 宁德市| 页游| 隆安县| 兴义市| 枣庄市| 资阳市| 象山县| 宣汉县| 曲水县| 承德县| 宝山区| 罗江县| 云阳县| 三江| 满洲里市| 宁波市| 新泰市| 东方市| 洛隆县| 临邑县| 昌平区| 淳化县| 霞浦县| 广宗县| 秦安县| 永德县| 庆元县| 梁河县| 巴彦县| 马关县| 武乡县| 两当县| 景德镇市| 乌苏市| 大安市| 邵东县| 屏山县| 惠来县| 灌阳县| 溆浦县|