1. applicationContext.xml配置 >此xml命名不可更改 <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="ht ...
分类:
编程语言 时间:
2020-03-18 11:53:11
阅读次数:
78
IF ( SELECT COUNT(*) FROM sys.index_columns INNER JOIN sys.indexes ON indexes.index_id = index_columns.index_id AND indexes.object_id = index_columns. ...
分类:
数据库 时间:
2020-03-18 09:16:58
阅读次数:
83
OPTIMIZE TABLE TableName; -- 优化表碎片(会锁表,数据量大的表执行时间相对较长) show table status from database_test like 'TableName'; -- 查询表状态 SELECT table_schema,TABLE_NAME ...
分类:
数据库 时间:
2020-03-17 11:30:22
阅读次数:
145
拓展方式注入分为两种 分别是: xmlns:p="http://www.springframework.org/schema/p" xmlns:c="http://www.springframework.org/schema/c" 把它们相应的添加到bean.xml文件中 1 package com ...
分类:
编程语言 时间:
2020-03-16 23:57:58
阅读次数:
100
1.pom <dependency> <groupId>com.dyuproject.protostuff</groupId> <artifactId>protostuff-core</artifactId> <version>1.0.8</version></dependency>2.代码 pac ...
分类:
其他好文 时间:
2020-03-16 12:39:16
阅读次数:
52
在eclipse中开发网页时,经常会遇到写xml文件时第一行无缘无故报错。在最左面的行数上面报出一个小红叉, 点击查看错误信息:Referenced file contains errors (http://www.springframework.org/schema/beans......之类的。 ...
分类:
其他好文 时间:
2020-03-15 14:59:50
阅读次数:
64
1. 下载示例数据库压缩包https://downloads.mysql.com/docs/sakila-db.zip 文件结构:1).sakila-data.sql //sakila库数据 2).sakila-schema.sql //sakila库的表结构sql语句 3).sakila.mwb ... ...
分类:
数据库 时间:
2020-03-15 11:49:07
阅读次数:
68
学习如何判断mysql 线程IO的过程中,发现mysql performance_schema库为空。没有数据,无法对照iotop来判断mysql各个线程的IO情况 经过网上查找资料,发现performance_schema默认是off,没有打开的 通过修改/etc/my.cnf配置文件,设置per ...
分类:
数据库 时间:
2020-03-15 11:39:05
阅读次数:
69
本文地址: 技术每天一点点--2017.09-2018.10月 本文提纲: 概述 每天进展 1.【遗留问题】 1.1)【问题】 问题列表 1.2)【todo】 2.【每天进展】 序号 日期 关键词 状态 内容 备注 01 2020.03.14 Java学习 进行中 1)【问题01】:加了pom.xm ...
分类:
其他好文 时间:
2020-03-14 22:21:27
阅读次数:
62
一、pt-online介绍 pt-online-schema-change是percona公司开发的一个工具,在percona-toolkit包里面可以找到这个功能,它可以在线修改表结构 原理: 首先它会新建一张一模一样的表,表名一般是_new后缀 然后在这个新表执行更改字段操作 然后在原表上加三个 ...
分类:
其他好文 时间:
2020-03-14 21:59:03
阅读次数:
61