vickzhu

            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            151 隨筆 :: 0 文章 :: 34 評論 :: 0 Trackbacks

          2013年3月1日 #

          ##通用查詢?nèi)罩荆河涗浗⒌目蛻舳诉B接和執(zhí)行的語句
          ##慢查詢?nèi)罩荆河涗浰袌?zhí)行時間超過long_query_time值的所有查詢或者不使用索引的查詢
          ##查看數(shù)據(jù)庫版本
          SHOW VARIABLES LIKE '%version%';
          ##查看通用查詢?nèi)罩?/div>
          SHOW VARIABLES LIKE '%general%';
          ##設(shè)置通用查詢?nèi)罩緸殚_啟
          SET GLOBAL general_log=ON;
          ##設(shè)置通用查詢?nèi)罩緸殛P(guān)閉
          SET GLOBAL general_log=OFF;
          ##查看當前慢查詢?nèi)罩据敵龅母袷?,可以是FILE(存儲在數(shù)數(shù)據(jù)庫的數(shù)據(jù)文件中的hostname.log),也可以是TABLE(存儲在數(shù)據(jù)庫中的mysql.general_log)
          SHOW VARIABLES LIKE '%log_output%';
          ##設(shè)置查詢?nèi)罩据敵龅轿募?/div>
          SET GLOBAL log_output='file';
          ##設(shè)置慢查詢?nèi)罩颈4娴奈募?/div>
          SET GLOBAL slow_query_log_file="/var/lib/mysql/localhost-slow.log";
          ##查看慢查詢相關(guān)設(shè)置
          SHOW VARIABLES LIKE '%slow_query%';
          ##設(shè)置慢查詢閾值為1,默認為10
          SET GLOBAL long_query_time=1;
          ##設(shè)置慢查詢閾值為10,默認為10
          SET GLOBAL long_query_time=10;
          ##查看慢查詢的閾值
          SHOW GLOBAL VARIABLES LIKE '%long_query_time%';
          ##查看有多少慢查詢
          SHOW GLOBAL STATUS LIKE '%Slow_queries%';
          ##睡眠11秒,測試慢查詢
          ##select SLEEP(11);
          posted @ 2018-10-09 16:59 筱 筱 閱讀(184) | 評論 (0)編輯 收藏

          velocity properties加載時是放在HashMap中的,首先會加載configLocation中指定文件的內(nèi)容,然后加載VelocityConfigurer中通過velocityProperties配置的屬性,
          因此,在VelocityConfigurer中配置的屬性會覆蓋configLocation指定文件中的屬性
          posted @ 2014-08-22 11:03 筱 筱 閱讀(5897) | 評論 (0)編輯 收藏

          1、達到默認最大buffer size
          2、調(diào)用HttpServletResponse.flushBuffer()
          3、調(diào)用HttpServletResponse.getOutputStream().flush()或者HttpServletResponse.getWriter().flush()
          4、調(diào)用HttpServletResponse.sendError()或者HttpServletResponse.sendRedirect()
          posted @ 2014-07-23 13:11 筱 筱 閱讀(5907) | 評論 (0)編輯 收藏

          <plugins>
                <plugin>
                  <artifactId>maven-compiler-plugin</artifactId>
                  <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                    <encoding>UTF-8</encoding>
                    <compilerArguments>
                      <extdirs>WebContent/WEB-INF/lib</extdirs>
                    </compilerArguments>
                    </configuration>
                  </plugin>
                <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-war-plugin</artifactId>
                  <configuration>
                    <webXml>WebContent/WEB-INF/web.xml</webXml>
                    <warSourceDirectory>WebContent</warSourceDirectory>
                  </configuration>
                </plugin>
              </plugins>
          posted @ 2013-11-01 17:03 筱 筱 閱讀(6459) | 評論 (1)編輯 收藏

          在onPrepareDialog()中添加如下代碼:
          AlertDialog syncDialog = (AlertDialog) dialog;
          Button button = syncDialog.getButton(AlertDialog.BUTTON_POSITIVE);
          button.setText("確定");
          button.setVisibility(View.VISIBLE);
          button.setOnClickListener(new OnClickListener() {
              @Override
              public void onClick(View v) {

              }
          });
          posted @ 2013-03-01 12:51 筱 筱 閱讀(7036) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 万荣县| 肥城市| 正安县| 托里县| 凌海市| 和田市| 开封县| 广安市| 神池县| 江西省| 灌阳县| 揭阳市| 潮安县| 新兴县| 仁化县| 积石山| 八宿县| 玛多县| 西藏| 扶余县| 龙井市| 奉贤区| 庄河市| 彰化市| 岳池县| 遂溪县| 延津县| 望都县| 重庆市| 沾化县| 文安县| 洪江市| 富阳市| 什邡市| 健康| 金山区| 沂水县| 庄浪县| 循化| 肥东县| 大洼县|