Parcourir la Source

主机启动慢的原因测试1

wanyao 4 ans auparavant
Parent
commit
16d1d23fee

+ 25 - 25
ebc-sea-platform/src/main/resources/dev/ipu-mybatis-config.xml

@ -1,25 +1,25 @@
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!DOCTYPE configuration
3
    PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
4
    "http://mybatis.org/dtd/mybatis-3-config.dtd">
5
6
<configuration>
7
    <settings>
8
		<setting name="defaultFetchSize" value="1000" /> <!-- 结果集获取数量提示值,分批传输 -->
9
	</settings>
10
    <plugins>
11
        <!-- 分页插件,可根据参数定制化 -->
12
	    <plugin interceptor="com.github.pagehelper.PageInterceptor"></plugin>
13
		<plugin interceptor="com.ai.ipu.sql.mgmt.mybatis.SqlMgmtPlugin"></plugin>
14
	</plugins>
15
	<environments default="ebc">
16
		<environment id="ebc">
17
			<transactionManager type="JDBC" />
18
			<dataSource type="com.ai.ipu.database.datasource.DruidDataSourceFactory">
19
				<property name="jdbcUrl" value="jdbc:mysql://10.19.90.34:3307/ebc" />
20
				<property name="username" value="ebc" />
21
				<property name="password" value="ebc@123" />
22
			</dataSource>
23
		</environment>
24
	</environments>
25
</configuration>
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!DOCTYPE configuration
3
    PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
4
    "mybatis-3-config.dtd">
5

6
<configuration>
7
    <settings>
8
		<setting name="defaultFetchSize" value="1000" /> <!-- 结果集获取数量提示值,分批传输 -->
9
	</settings>
10
    <plugins>
11
        <!-- 分页插件,可根据参数定制化 -->
12
	    <plugin interceptor="com.github.pagehelper.PageInterceptor"></plugin>
13
		<plugin interceptor="com.ai.ipu.sql.mgmt.mybatis.SqlMgmtPlugin"></plugin>
14
	</plugins>
15
	<environments default="ebc">
16
		<environment id="ebc">
17
			<transactionManager type="JDBC" />
18
			<dataSource type="com.ai.ipu.database.datasource.DruidDataSourceFactory">
19
				<property name="jdbcUrl" value="jdbc:mysql://10.19.90.34:3307/ebc" />
20
				<property name="username" value="ebc" />
21
				<property name="password" value="ebc@123" />
22
			</dataSource>
23
		</environment>
24
	</environments>
25
</configuration>

+ 117 - 0
ebc-sea-platform/src/main/resources/mybatis-3-config.dtd

@ -0,0 +1,117 @@
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!--
3
4
       Copyright 2009-2016 the original author or authors.
5
6
       Licensed under the Apache License, Version 2.0 (the "License");
7
       you may not use this file except in compliance with the License.
8
       You may obtain a copy of the License at
9
10
          http://www.apache.org/licenses/LICENSE-2.0
11
12
       Unless required by applicable law or agreed to in writing, software
13
       distributed under the License is distributed on an "AS IS" BASIS,
14
       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
       See the License for the specific language governing permissions and
16
       limitations under the License.
17
18
-->
19
<!ELEMENT configuration (properties?, settings?, typeAliases?, typeHandlers?, objectFactory?, objectWrapperFactory?, reflectorFactory?, plugins?, environments?, databaseIdProvider?, mappers?)>
20
21
<!ELEMENT databaseIdProvider (property*)>
22
<!ATTLIST databaseIdProvider
23
type CDATA #REQUIRED
24
>
25
26
<!ELEMENT properties (property*)>
27
<!ATTLIST properties
28
resource CDATA #IMPLIED
29
url CDATA #IMPLIED
30
>
31
32
<!ELEMENT property EMPTY>
33
<!ATTLIST property
34
name CDATA #REQUIRED
35
value CDATA #REQUIRED
36
>
37
38
<!ELEMENT settings (setting+)>
39
40
<!ELEMENT setting EMPTY>
41
<!ATTLIST setting
42
name CDATA #REQUIRED
43
value CDATA #REQUIRED
44
>
45
46
<!ELEMENT typeAliases (typeAlias*,package*)>
47
48
<!ELEMENT typeAlias EMPTY>
49
<!ATTLIST typeAlias
50
type CDATA #REQUIRED
51
alias CDATA #IMPLIED
52
>
53
54
<!ELEMENT typeHandlers (typeHandler*,package*)>
55
56
<!ELEMENT typeHandler EMPTY>
57
<!ATTLIST typeHandler
58
javaType CDATA #IMPLIED
59
jdbcType CDATA #IMPLIED
60
handler CDATA #REQUIRED
61
>
62
63
<!ELEMENT objectFactory (property*)>
64
<!ATTLIST objectFactory
65
type CDATA #REQUIRED
66
>
67
68
<!ELEMENT objectWrapperFactory EMPTY>
69
<!ATTLIST objectWrapperFactory
70
type CDATA #REQUIRED
71
>
72
73
<!ELEMENT reflectorFactory EMPTY>
74
<!ATTLIST reflectorFactory
75
type CDATA #REQUIRED
76
>
77
78
<!ELEMENT plugins (plugin+)>
79
80
<!ELEMENT plugin (property*)>
81
<!ATTLIST plugin
82
interceptor CDATA #REQUIRED
83
>
84
85
<!ELEMENT environments (environment+)>
86
<!ATTLIST environments
87
default CDATA #REQUIRED
88
>
89
90
<!ELEMENT environment (transactionManager,dataSource)>
91
<!ATTLIST environment
92
id CDATA #REQUIRED
93
>
94
95
<!ELEMENT transactionManager (property*)>
96
<!ATTLIST transactionManager
97
type CDATA #REQUIRED
98
>
99
100
<!ELEMENT dataSource (property*)>
101
<!ATTLIST dataSource
102
type CDATA #REQUIRED
103
>
104
105
<!ELEMENT mappers (mapper*,package*)>
106
107
<!ELEMENT mapper EMPTY>
108
<!ATTLIST mapper
109
resource CDATA #IMPLIED
110
url CDATA #IMPLIED
111
class CDATA #IMPLIED
112
>
113
114
<!ELEMENT package EMPTY>
115
<!ATTLIST package
116
name CDATA #REQUIRED
117
>

+ 2 - 2
ebc-sea-platform/src/main/resources/pro/ipu-mybatis-config.xml

@ -1,7 +1,7 @@
1 1
<?xml version="1.0" encoding="UTF-8" ?>
2 2
<!DOCTYPE configuration
3
		PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
4
		"http://mybatis.org/dtd/mybatis-3-config.dtd">
3
    PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
4
    "mybatis-3-config.dtd">
5 5

6 6
<configuration>
7 7
	<settings>

+ 25 - 25
ebc-sea-platform/src/main/resources/test/ipu-mybatis-config.xml

@ -1,25 +1,25 @@
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!DOCTYPE configuration
3
    PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
4
    "http://mybatis.org/dtd/mybatis-3-config.dtd">
5
6
<configuration>
7
    <settings>
8
		<setting name="defaultFetchSize" value="1000" /> <!-- 结果集获取数量提示值,分批传输 -->
9
	</settings>
10
    <plugins>
11
		<!-- 分页插件,可根据参数定制化 -->
12
		<plugin interceptor="com.github.pagehelper.PageInterceptor"></plugin>
13
		<plugin interceptor="com.ai.ipu.sql.mgmt.mybatis.SqlMgmtPlugin"></plugin>
14
	</plugins>
15
	<environments default="ebc">
16
		<environment id="ebc">
17
			<transactionManager type="JDBC" />
18
			<dataSource type="com.ai.ipu.database.datasource.DruidDataSourceFactory">
19
				<property name="jdbcUrl" value="jdbc:mysql://10.19.90.34:3307/ebc" />
20
				<property name="username" value="ebc" />
21
				<property name="password" value="ebc@123" />
22
			</dataSource>
23
		</environment>
24
	</environments>
25
</configuration>
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!DOCTYPE configuration
3
    PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
4
    "mybatis-3-config.dtd">
5

6
<configuration>
7
    <settings>
8
		<setting name="defaultFetchSize" value="1000" /> <!-- 结果集获取数量提示值,分批传输 -->
9
	</settings>
10
    <plugins>
11
		<!-- 分页插件,可根据参数定制化 -->
12
		<plugin interceptor="com.github.pagehelper.PageInterceptor"></plugin>
13
		<plugin interceptor="com.ai.ipu.sql.mgmt.mybatis.SqlMgmtPlugin"></plugin>
14
	</plugins>
15
	<environments default="ebc">
16
		<environment id="ebc">
17
			<transactionManager type="JDBC" />
18
			<dataSource type="com.ai.ipu.database.datasource.DruidDataSourceFactory">
19
				<property name="jdbcUrl" value="jdbc:mysql://10.19.90.34:3307/ebc" />
20
				<property name="username" value="ebc" />
21
				<property name="password" value="ebc@123" />
22
			</dataSource>
23
		</environment>
24
	</environments>
25
</configuration>