貝貝爸爸的程序人生

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

          mac下mysql亂碼問題

          Posted on 2012-05-19 01:40 貝貝爸爸 閱讀(774) 評論(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>
          主站蜘蛛池模板: 金华市| 乌兰浩特市| 荥经县| 墨竹工卡县| 苍溪县| 湖南省| 柘城县| 丹江口市| 伊吾县| 新巴尔虎左旗| 铅山县| 敦化市| 河北区| 内江市| 东阳市| 葵青区| 新邵县| 林周县| 马尔康县| 莆田市| 洛浦县| 临江市| 堆龙德庆县| 寿宁县| 井研县| 河北省| 邵武市| 遵义县| 独山县| 九龙城区| 任丘市| 定州市| 鲁山县| 石城县| 青神县| 三门峡市| 连平县| 浦北县| 柘城县| 富锦市| 旬阳县|