貝貝爸爸的程序人生

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

          mac下mysql亂碼問題

          Posted on 2012-05-19 01:40 貝貝爸爸 閱讀(779) 評論(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>
          主站蜘蛛池模板: 基隆市| 海南省| 鹤壁市| 连平县| 蒲江县| 万源市| 庆云县| 通州区| 肥乡县| 广宁县| 文山县| 仪陇县| 海南省| 江孜县| 南安市| 绵竹市| 鄱阳县| 漠河县| 栾城县| 彰化县| 澄迈县| 阳曲县| 囊谦县| 临潭县| 武汉市| 巨鹿县| 郸城县| 永清县| 秦安县| 柘城县| 西乌珠穆沁旗| 西吉县| 祁门县| 潞西市| 大方县| 涿州市| 牙克石市| 辰溪县| 会同县| 中江县| 安国市|