Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
MybatisTraning
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
training
MybatisTraning
Commits
2a7a53d3
Commit
2a7a53d3
authored
Jan 02, 2020
by
闲人
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Merge branch 'master' into 'dev201912'"
This reverts merge request !3
parent
7c4d6dba
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
0 additions
and
1122 deletions
+0
-1122
compiler.xml
MybatisTraning/.idea/compiler.xml
+0
-17
Maven__com_alibaba_fastjson_1_2_56.xml
...ng/.idea/libraries/Maven__com_alibaba_fastjson_1_2_56.xml
+0
-14
Maven__com_google_protobuf_protobuf_java_3_6_1.xml
...raries/Maven__com_google_protobuf_protobuf_java_3_6_1.xml
+0
-14
Maven__junit_junit_4_12.xml
MybatisTraning/.idea/libraries/Maven__junit_junit_4_12.xml
+0
-14
Maven__mysql_mysql_connector_java_8_0_16.xml
...ea/libraries/Maven__mysql_mysql_connector_java_8_0_16.xml
+0
-14
Maven__org_hamcrest_hamcrest_core_1_3.xml
....idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml
+0
-14
Maven__org_mybatis_mybatis_3_4_5.xml
...ning/.idea/libraries/Maven__org_mybatis_mybatis_3_4_5.xml
+0
-14
misc.xml
MybatisTraning/.idea/misc.xml
+0
-14
modules.xml
MybatisTraning/.idea/modules.xml
+0
-9
workspace.xml
MybatisTraning/.idea/workspace.xml
+0
-552
MybatisTraning.iml
MybatisTraning/MybatisTraning.iml
+0
-22
pom.xml
MybatisTraning/pom.xml
+0
-55
User.java
...aning/src/main/java/com/cesgroup/mybatis/entity/User.java
+0
-35
MyTypeHandler.java
...main/java/com/cesgroup/mybatis/handler/MyTypeHandler.java
+0
-38
MybatisLogInterceptor.java
...m/cesgroup/mybatis/interceptor/MybatisLogInterceptor.java
+0
-81
MyMapper.xml
MybatisTraning/src/main/resources/MyMapper.xml
+0
-14
db.properties
MybatisTraning/src/main/resources/db.properties
+0
-4
mybatis-config.xml
MybatisTraning/src/main/resources/mybatis-config.xml
+0
-31
mybatis.sql
MybatisTraning/src/main/resources/mybatis.sql
+0
-31
MybatisTest.java
...aning/src/test/java/com/cesgroup/mybatis/MybatisTest.java
+0
-55
MyMapper.xml
MybatisTraning/target/classes/MyMapper.xml
+0
-14
User.class
...ing/target/classes/com/cesgroup/mybatis/entity/User.class
+0
-0
MyTypeHandler.class
.../classes/com/cesgroup/mybatis/handler/MyTypeHandler.class
+0
-0
MybatisLogInterceptor.class
.../cesgroup/mybatis/interceptor/MybatisLogInterceptor.class
+0
-0
db.properties
MybatisTraning/target/classes/db.properties
+0
-4
mybatis-config.xml
MybatisTraning/target/classes/mybatis-config.xml
+0
-31
mybatis.sql
MybatisTraning/target/classes/mybatis.sql
+0
-31
MybatisTest.class
...arget/test-classes/com/cesgroup/mybatis/MybatisTest.class
+0
-0
No files found.
MybatisTraning/.idea/compiler.xml
deleted
100644 → 0
View file @
7c4d6dba
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"CompilerConfiguration"
>
<annotationProcessing>
<profile
name=
"Maven default annotation processors profile"
enabled=
"true"
>
<sourceOutputDir
name=
"target/generated-sources/annotations"
/>
<sourceTestOutputDir
name=
"target/generated-test-sources/test-annotations"
/>
<outputRelativeToContentRoot
value=
"true"
/>
<module
name=
"MybatisTraning"
/>
</profile>
</annotationProcessing>
<bytecodeTargetLevel>
<module
name=
"MybatisTraning"
target=
"1.8"
/>
</bytecodeTargetLevel>
</component>
</project>
\ No newline at end of file
MybatisTraning/.idea/libraries/Maven__com_alibaba_fastjson_1_2_56.xml
deleted
100644 → 0
View file @
7c4d6dba
<component
name=
"libraryTable"
>
<library
name=
"Maven: com.alibaba:fastjson:1.2.56"
>
<CLASSES>
<root
url=
"jar://$MAVEN_REPOSITORY$/com/alibaba/fastjson/1.2.56/fastjson-1.2.56.jar!/"
/>
</CLASSES>
<JAVADOC>
<root
url=
"jar://$MAVEN_REPOSITORY$/com/alibaba/fastjson/1.2.56/fastjson-1.2.56-javadoc.jar!/"
/>
</JAVADOC>
<SOURCES>
<root
url=
"jar://$MAVEN_REPOSITORY$/com/alibaba/fastjson/1.2.56/fastjson-1.2.56-sources.jar!/"
/>
</SOURCES>
</library>
</component>
\ No newline at end of file
MybatisTraning/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_6_1.xml
deleted
100644 → 0
View file @
7c4d6dba
<component
name=
"libraryTable"
>
<library
name=
"Maven: com.google.protobuf:protobuf-java:3.6.1"
>
<CLASSES>
<root
url=
"jar://$MAVEN_REPOSITORY$/com/google/protobuf/protobuf-java/3.6.1/protobuf-java-3.6.1.jar!/"
/>
</CLASSES>
<JAVADOC>
<root
url=
"jar://$MAVEN_REPOSITORY$/com/google/protobuf/protobuf-java/3.6.1/protobuf-java-3.6.1-javadoc.jar!/"
/>
</JAVADOC>
<SOURCES>
<root
url=
"jar://$MAVEN_REPOSITORY$/com/google/protobuf/protobuf-java/3.6.1/protobuf-java-3.6.1-sources.jar!/"
/>
</SOURCES>
</library>
</component>
\ No newline at end of file
MybatisTraning/.idea/libraries/Maven__junit_junit_4_12.xml
deleted
100644 → 0
View file @
7c4d6dba
<component
name=
"libraryTable"
>
<library
name=
"Maven: junit:junit:4.12"
>
<CLASSES>
<root
url=
"jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12.jar!/"
/>
</CLASSES>
<JAVADOC>
<root
url=
"jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12-javadoc.jar!/"
/>
</JAVADOC>
<SOURCES>
<root
url=
"jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12-sources.jar!/"
/>
</SOURCES>
</library>
</component>
\ No newline at end of file
MybatisTraning/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_16.xml
deleted
100644 → 0
View file @
7c4d6dba
<component
name=
"libraryTable"
>
<library
name=
"Maven: mysql:mysql-connector-java:8.0.16"
>
<CLASSES>
<root
url=
"jar://$MAVEN_REPOSITORY$/mysql/mysql-connector-java/8.0.16/mysql-connector-java-8.0.16.jar!/"
/>
</CLASSES>
<JAVADOC>
<root
url=
"jar://$MAVEN_REPOSITORY$/mysql/mysql-connector-java/8.0.16/mysql-connector-java-8.0.16-javadoc.jar!/"
/>
</JAVADOC>
<SOURCES>
<root
url=
"jar://$MAVEN_REPOSITORY$/mysql/mysql-connector-java/8.0.16/mysql-connector-java-8.0.16-sources.jar!/"
/>
</SOURCES>
</library>
</component>
\ No newline at end of file
MybatisTraning/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml
deleted
100644 → 0
View file @
7c4d6dba
<component
name=
"libraryTable"
>
<library
name=
"Maven: org.hamcrest:hamcrest-core:1.3"
>
<CLASSES>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar!/"
/>
</CLASSES>
<JAVADOC>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-javadoc.jar!/"
/>
</JAVADOC>
<SOURCES>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar!/"
/>
</SOURCES>
</library>
</component>
\ No newline at end of file
MybatisTraning/.idea/libraries/Maven__org_mybatis_mybatis_3_4_5.xml
deleted
100644 → 0
View file @
7c4d6dba
<component
name=
"libraryTable"
>
<library
name=
"Maven: org.mybatis:mybatis:3.4.5"
>
<CLASSES>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/mybatis/mybatis/3.4.5/mybatis-3.4.5.jar!/"
/>
</CLASSES>
<JAVADOC>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/mybatis/mybatis/3.4.5/mybatis-3.4.5-javadoc.jar!/"
/>
</JAVADOC>
<SOURCES>
<root
url=
"jar://$MAVEN_REPOSITORY$/org/mybatis/mybatis/3.4.5/mybatis-3.4.5-sources.jar!/"
/>
</SOURCES>
</library>
</component>
\ No newline at end of file
MybatisTraning/.idea/misc.xml
deleted
100644 → 0
View file @
7c4d6dba
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"MavenProjectsManager"
>
<option
name=
"originalFiles"
>
<list>
<option
value=
"$PROJECT_DIR$/pom.xml"
/>
</list>
</option>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_8"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/out"
/>
</component>
</project>
\ No newline at end of file
MybatisTraning/.idea/modules.xml
deleted
100644 → 0
View file @
7c4d6dba
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectModuleManager"
>
<modules>
<module
fileurl=
"file://$PROJECT_DIR$/MybatisTraning.iml"
filepath=
"$PROJECT_DIR$/MybatisTraning.iml"
/>
</modules>
</component>
</project>
\ No newline at end of file
MybatisTraning/.idea/workspace.xml
deleted
100644 → 0
View file @
7c4d6dba
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"51b8d25e-34d8-4cca-ba49-18ae22f565f9"
name=
"Default"
comment=
""
/>
<ignored
path=
"$PROJECT_DIR$/out/"
/>
<ignored
path=
"$PROJECT_DIR$/target/"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"TRACKING_ENABLED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_NON_ACTIVE_CHANGELIST"
value=
"false"
/>
<option
name=
"LAST_RESOLUTION"
value=
"IGNORE"
/>
</component>
<component
name=
"FileEditorManager"
>
<leaf>
<file
leaf-file-name=
"pom.xml"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/pom.xml"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"531"
>
<caret
line=
"46"
column=
"41"
lean-forward=
"true"
selection-start-line=
"46"
selection-start-column=
"41"
selection-end-line=
"46"
selection-end-column=
"41"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"db.properties"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/resources/db.properties"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"90"
>
<caret
line=
"3"
column=
"15"
lean-forward=
"true"
selection-start-line=
"3"
selection-start-column=
"15"
selection-end-line=
"3"
selection-end-column=
"15"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"User.java"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/cesgroup/mybatis/entity/User.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"210"
>
<caret
line=
"7"
column=
"15"
lean-forward=
"false"
selection-start-line=
"7"
selection-start-column=
"11"
selection-end-line=
"7"
selection-end-column=
"15"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#224#225#0"
expanded=
"true"
/>
<element
signature=
"e#249#250#0"
expanded=
"true"
/>
<element
signature=
"e#281#282#0"
expanded=
"true"
/>
<element
signature=
"e#309#310#0"
expanded=
"true"
/>
<element
signature=
"e#340#341#0"
expanded=
"true"
/>
<element
signature=
"e#367#368#0"
expanded=
"true"
/>
<element
signature=
"e#406#407#0"
expanded=
"true"
/>
<element
signature=
"e#438#439#0"
expanded=
"true"
/>
<element
signature=
"e#473#474#0"
expanded=
"true"
/>
<element
signature=
"e#500#501#0"
expanded=
"true"
/>
<element
signature=
"e#543#544#0"
expanded=
"true"
/>
<element
signature=
"e#575#576#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"MybatisLogInterceptor.java"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/cesgroup/mybatis/interceptor/MybatisLogInterceptor.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"0"
>
<caret
line=
"15"
column=
"0"
lean-forward=
"true"
selection-start-line=
"15"
selection-start-column=
"0"
selection-end-line=
"15"
selection-end-column=
"0"
/>
<folding>
<element
signature=
"e#3419#3420#0"
expanded=
"true"
/>
<element
signature=
"e#3462#3463#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"MybatisTest.java"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/src/test/java/com/cesgroup/mybatis/MybatisTest.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"90"
>
<caret
line=
"13"
column=
"0"
lean-forward=
"true"
selection-start-line=
"13"
selection-start-column=
"0"
selection-end-line=
"13"
selection-end-column=
"0"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"MyTypeHandler.java"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/cesgroup/mybatis/handler/MyTypeHandler.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"138"
>
<caret
line=
"30"
column=
"9"
lean-forward=
"true"
selection-start-line=
"30"
selection-start-column=
"9"
selection-end-line=
"30"
selection-end-column=
"9"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"mybatis-config.xml"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/resources/mybatis-config.xml"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"390"
>
<caret
line=
"28"
column=
"29"
lean-forward=
"false"
selection-start-line=
"28"
selection-start-column=
"29"
selection-end-line=
"28"
selection-end-column=
"29"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"MyMapper.xml"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/resources/MyMapper.xml"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"0"
>
<caret
line=
"3"
column=
"36"
lean-forward=
"false"
selection-start-line=
"3"
selection-start-column=
"36"
selection-end-line=
"3"
selection-end-column=
"36"
/>
<folding>
<marker
date=
"1577934197620"
expanded=
"true"
signature=
"274:309"
ph=
"SELECT * FRO... user"
/>
<marker
date=
"1577934197620"
expanded=
"true"
signature=
"405:480"
ph=
"INSERT INTO user... "
/>
</folding>
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component
name=
"FileTemplateManagerImpl"
>
<option
name=
"RECENT_TEMPLATES"
>
<list>
<option
value=
"Class"
/>
</list>
</option>
</component>
<component
name=
"IdeDocumentHistory"
>
<option
name=
"CHANGED_PATHS"
>
<list>
<option
value=
"$PROJECT_DIR$/src/main/java/com/cesgroup/mabatis/entity.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/com/cesgroup/mybatis/entity/User.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/resources/MyMapper.xml"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/com/cesgroup/mybatis/handler/MyTypeHandler.java"
/>
<option
value=
"$PROJECT_DIR$/src/main/resources/mybatis-config.xml"
/>
<option
value=
"$PROJECT_DIR$/pom.xml"
/>
<option
value=
"$PROJECT_DIR$/src/main/resources/db.properties"
/>
<option
value=
"$PROJECT_DIR$/src/main/java/com/cesgroup/mybatis/interceptor/MybatisLogInterceptor.java"
/>
<option
value=
"$PROJECT_DIR$/src/test/java/com/cesgroup/mybatis/MybatisTest.java"
/>
</list>
</option>
</component>
<component
name=
"JsBuildToolGruntFileManager"
detection-done=
"true"
sorting=
"DEFINITION_ORDER"
/>
<component
name=
"JsBuildToolPackageJson"
detection-done=
"true"
sorting=
"DEFINITION_ORDER"
/>
<component
name=
"JsGulpfileManager"
>
<detection-done>
true
</detection-done>
<sorting>
DEFINITION_ORDER
</sorting>
</component>
<component
name=
"MavenImportPreferences"
>
<option
name=
"importingSettings"
>
<MavenImportingSettings>
<option
name=
"importAutomatically"
value=
"true"
/>
</MavenImportingSettings>
</option>
</component>
<component
name=
"ProjectFrameBounds"
extendedState=
"6"
>
<option
name=
"x"
value=
"10"
/>
<option
name=
"y"
value=
"20"
/>
<option
name=
"width"
value=
"1346"
/>
<option
name=
"height"
value=
"688"
/>
</component>
<component
name=
"ProjectView"
>
<navigator
currentView=
"ProjectPane"
proportions=
""
version=
"1"
>
<flattenPackages
/>
<showMembers
/>
<showModules
/>
<showLibraryContents
/>
<hideEmptyPackages
/>
<abbreviatePackageNames
/>
<autoscrollToSource
/>
<autoscrollFromSource
/>
<sortByType
/>
<manualOrder
/>
<foldersAlwaysOnTop
value=
"true"
/>
</navigator>
<panes>
<pane
id=
"Scope"
/>
<pane
id=
"Scratches"
/>
<pane
id=
"PackagesPane"
/>
<pane
id=
"ProjectPane"
>
<subPane>
<expand>
<path>
<item
name=
"MybatisTraning"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"MybatisTraning"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"MybatisTraning"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"MybatisTraning"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"MybatisTraning"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"MybatisTraning"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"MybatisTraning"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"MybatisTraning"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"MybatisTraning"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"MybatisTraning"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"mybatis"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"MybatisTraning"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"MybatisTraning"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"main"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"resources"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"MybatisTraning"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"MybatisTraning"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"test"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"MybatisTraning"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"MybatisTraning"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"test"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"MybatisTraning"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"MybatisTraning"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"test"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"java"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"mybatis"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</expand>
<select
/>
</subPane>
</pane>
</panes>
</component>
<component
name=
"PropertiesComponent"
>
<property
name=
"nodejs_interpreter_path.stuck_in_default_project"
value=
"undefined stuck path"
/>
<property
name=
"settings.editor.selected.configurable"
value=
"preferences.pluginManager"
/>
</component>
<component
name=
"RecentsManager"
>
<key
name=
"CopyFile.RECENT_KEYS"
>
<recent
name=
"E:\IDEA-EXE\MybatisTraning\src\main\resources"
/>
</key>
</component>
<component
name=
"RunDashboard"
>
<option
name=
"ruleStates"
>
<list>
<RuleState>
<option
name=
"name"
value=
"ConfigurationTypeDashboardGroupingRule"
/>
</RuleState>
<RuleState>
<option
name=
"name"
value=
"StatusDashboardGroupingRule"
/>
</RuleState>
</list>
</option>
</component>
<component
name=
"RunManager"
>
<configuration
default=
"true"
type=
"Applet"
factoryName=
"Applet"
>
<option
name=
"HTML_USED"
value=
"false"
/>
<option
name=
"WIDTH"
value=
"400"
/>
<option
name=
"HEIGHT"
value=
"300"
/>
<option
name=
"POLICY_FILE"
value=
"$APPLICATION_HOME_DIR$/bin/appletviewer.policy"
/>
<module
/>
</configuration>
<configuration
default=
"true"
type=
"Application"
factoryName=
"Application"
>
<option
name=
"MAIN_CLASS_NAME"
/>
<option
name=
"VM_PARAMETERS"
/>
<option
name=
"PROGRAM_PARAMETERS"
/>
<option
name=
"WORKING_DIRECTORY"
value=
"$PROJECT_DIR$"
/>
<option
name=
"ALTERNATIVE_JRE_PATH_ENABLED"
value=
"false"
/>
<option
name=
"ALTERNATIVE_JRE_PATH"
/>
<option
name=
"ENABLE_SWING_INSPECTOR"
value=
"false"
/>
<option
name=
"ENV_VARIABLES"
/>
<option
name=
"PASS_PARENT_ENVS"
value=
"true"
/>
<module
name=
""
/>
<envs
/>
</configuration>
<configuration
name=
"MybatisTest.testSelectUser"
type=
"JUnit"
factoryName=
"JUnit"
temporary=
"true"
nameIsGenerated=
"true"
>
<module
name=
"MybatisTraning"
/>
<option
name=
"ALTERNATIVE_JRE_PATH_ENABLED"
value=
"false"
/>
<option
name=
"ALTERNATIVE_JRE_PATH"
/>
<option
name=
"PACKAGE_NAME"
value=
"com.cesgroup.mybatis"
/>
<option
name=
"MAIN_CLASS_NAME"
value=
"com.cesgroup.mybatis.MybatisTest"
/>
<option
name=
"METHOD_NAME"
value=
"testSelectUser"
/>
<option
name=
"TEST_OBJECT"
value=
"method"
/>
<option
name=
"VM_PARAMETERS"
value=
"-ea"
/>
<option
name=
"PARAMETERS"
/>
<option
name=
"WORKING_DIRECTORY"
value=
"%MODULE_WORKING_DIR%"
/>
<option
name=
"ENV_VARIABLES"
/>
<option
name=
"PASS_PARENT_ENVS"
value=
"true"
/>
<option
name=
"TEST_SEARCH_SCOPE"
>
<value
defaultName=
"singleModule"
/>
</option>
<envs
/>
<patterns
/>
</configuration>
<configuration
default=
"true"
type=
"JUnit"
factoryName=
"JUnit"
>
<module
name=
""
/>
<option
name=
"ALTERNATIVE_JRE_PATH_ENABLED"
value=
"false"
/>
<option
name=
"ALTERNATIVE_JRE_PATH"
/>
<option
name=
"PACKAGE_NAME"
/>
<option
name=
"MAIN_CLASS_NAME"
/>
<option
name=
"METHOD_NAME"
/>
<option
name=
"TEST_OBJECT"
value=
"class"
/>
<option
name=
"VM_PARAMETERS"
value=
"-ea"
/>
<option
name=
"PARAMETERS"
/>
<option
name=
"WORKING_DIRECTORY"
value=
"%MODULE_WORKING_DIR%"
/>
<option
name=
"ENV_VARIABLES"
/>
<option
name=
"PASS_PARENT_ENVS"
value=
"true"
/>
<option
name=
"TEST_SEARCH_SCOPE"
>
<value
defaultName=
"singleModule"
/>
</option>
<envs
/>
<patterns
/>
</configuration>
<configuration
default=
"true"
type=
"Remote"
factoryName=
"Remote"
>
<option
name=
"USE_SOCKET_TRANSPORT"
value=
"true"
/>
<option
name=
"SERVER_MODE"
value=
"false"
/>
<option
name=
"SHMEM_ADDRESS"
value=
"javadebug"
/>
<option
name=
"HOST"
value=
"localhost"
/>
<option
name=
"PORT"
value=
"5005"
/>
</configuration>
<configuration
default=
"true"
type=
"#org.jetbrains.idea.devkit.run.PluginConfigurationType"
factoryName=
"Plugin"
>
<module
name=
""
/>
<option
name=
"VM_PARAMETERS"
value=
"-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea"
/>
<option
name=
"PROGRAM_PARAMETERS"
/>
<predefined_log_file
id=
"idea.log"
enabled=
"true"
/>
</configuration>
<configuration
name=
"<template>"
type=
"TestNG"
default=
"true"
selected=
"false"
>
<option
name=
"MAIN_CLASS_NAME"
/>
<option
name=
"VM_PARAMETERS"
value=
"-ea"
/>
<option
name=
"PARAMETERS"
/>
<option
name=
"WORKING_DIRECTORY"
value=
"%MODULE_WORKING_DIR%"
/>
</configuration>
<recent_temporary>
<list
size=
"1"
>
<item
index=
"0"
class=
"java.lang.String"
itemvalue=
"JUnit.MybatisTest.testSelectUser"
/>
</list>
</recent_temporary>
</component>
<component
name=
"ShelveChangesManager"
show_recycled=
"false"
>
<option
name=
"remove_strategy"
value=
"false"
/>
</component>
<component
name=
"SvnConfiguration"
>
<configuration
/>
</component>
<component
name=
"TestHistory"
>
<history-entry
file=
"MybatisTest_testSelectUser - 2020.01.02 at 11h 54m 10s.xml"
>
<configuration
name=
"MybatisTest.testSelectUser"
configurationId=
"JUnit"
/>
</history-entry>
<history-entry
file=
"MybatisTest_testSelectUser - 2020.01.02 at 11h 57m 36s.xml"
>
<configuration
name=
"MybatisTest.testSelectUser"
configurationId=
"JUnit"
/>
</history-entry>
<history-entry
file=
"MybatisTest_testSelectUser - 2020.01.02 at 12h 01m 43s.xml"
>
<configuration
name=
"MybatisTest.testSelectUser"
configurationId=
"JUnit"
/>
</history-entry>
<history-entry
file=
"MybatisTest_testSelectUser - 2020.01.02 at 12h 08m 02s.xml"
>
<configuration
name=
"MybatisTest.testSelectUser"
configurationId=
"JUnit"
/>
</history-entry>
<history-entry
file=
"MybatisTest_testSelectUser - 2020.01.02 at 12h 13m 31s.xml"
>
<configuration
name=
"MybatisTest.testSelectUser"
configurationId=
"JUnit"
/>
</history-entry>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"-8"
y=
"-8"
width=
"1382"
height=
"744"
extended-state=
"6"
/>
<layout>
<window_info
id=
"TODO"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"6"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Messages"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32894737"
sideWeight=
"0.5"
order=
"-1"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Palette	"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"-1"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Event Log"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"-1"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Maven Projects"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"-1"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Run"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.27631578"
sideWeight=
"0.5"
order=
"2"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Version Control"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"false"
weight=
"0.33"
sideWeight=
"0.5"
order=
"-1"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Designer"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"-1"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Project"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.22163388"
sideWeight=
"0.5"
order=
"0"
side_tool=
"false"
content_ui=
"combo"
/>
<window_info
id=
"Database"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"-1"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Structure"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.25"
sideWeight=
"0.5"
order=
"1"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Debug"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.4"
sideWeight=
"0.5"
order=
"3"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Favorites"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"-1"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Cvs"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.25"
sideWeight=
"0.5"
order=
"4"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Hierarchy"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.25"
sideWeight=
"0.5"
order=
"2"
side_tool=
"false"
content_ui=
"combo"
/>
<window_info
id=
"Message"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"0"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Commander"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.4"
sideWeight=
"0.5"
order=
"0"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Find"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"1"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Inspection"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.4"
sideWeight=
"0.5"
order=
"5"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Ant Build"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.25"
sideWeight=
"0.5"
order=
"1"
side_tool=
"false"
content_ui=
"tabs"
/>
</layout>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<option
name=
"version"
value=
"1"
/>
</component>
<component
name=
"VcsContentAnnotationSettings"
>
<option
name=
"myLimit"
value=
"2678400000"
/>
</component>
<component
name=
"XDebuggerManager"
>
<breakpoint-manager>
<option
name=
"time"
value=
"6"
/>
</breakpoint-manager>
<watches-manager
/>
</component>
<component
name=
"editorHistoryManager"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/cesgroup/mabatis/handler.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"60"
>
<caret
line=
"2"
column=
"20"
lean-forward=
"false"
selection-start-line=
"2"
selection-start-column=
"20"
selection-end-line=
"2"
selection-end-column=
"20"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/cesgroup/mabatis/interceptor.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"60"
>
<caret
line=
"2"
column=
"24"
lean-forward=
"false"
selection-start-line=
"2"
selection-start-column=
"24"
selection-end-line=
"2"
selection-end-column=
"24"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/cesgroup/mabatis/entity.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"150"
>
<caret
line=
"5"
column=
"0"
lean-forward=
"true"
selection-start-line=
"5"
selection-start-column=
"0"
selection-end-line=
"5"
selection-end-column=
"0"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/resources/mybatis.sql"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-482"
>
<caret
line=
"2"
column=
"0"
lean-forward=
"true"
selection-start-line=
"2"
selection-start-column=
"0"
selection-end-line=
"2"
selection-end-column=
"0"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/resources/mybatis-config.xml"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"390"
>
<caret
line=
"28"
column=
"29"
lean-forward=
"false"
selection-start-line=
"28"
selection-start-column=
"29"
selection-end-line=
"28"
selection-end-column=
"29"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/cesgroup/mybatis/entity/User.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"210"
>
<caret
line=
"7"
column=
"15"
lean-forward=
"false"
selection-start-line=
"7"
selection-start-column=
"11"
selection-end-line=
"7"
selection-end-column=
"15"
/>
<folding>
<element
signature=
"imports"
expanded=
"true"
/>
<element
signature=
"e#224#225#0"
expanded=
"true"
/>
<element
signature=
"e#249#250#0"
expanded=
"true"
/>
<element
signature=
"e#281#282#0"
expanded=
"true"
/>
<element
signature=
"e#309#310#0"
expanded=
"true"
/>
<element
signature=
"e#340#341#0"
expanded=
"true"
/>
<element
signature=
"e#367#368#0"
expanded=
"true"
/>
<element
signature=
"e#406#407#0"
expanded=
"true"
/>
<element
signature=
"e#438#439#0"
expanded=
"true"
/>
<element
signature=
"e#473#474#0"
expanded=
"true"
/>
<element
signature=
"e#500#501#0"
expanded=
"true"
/>
<element
signature=
"e#543#544#0"
expanded=
"true"
/>
<element
signature=
"e#575#576#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/resources/MyMapper.xml"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"0"
>
<caret
line=
"3"
column=
"36"
lean-forward=
"false"
selection-start-line=
"3"
selection-start-column=
"36"
selection-end-line=
"3"
selection-end-column=
"36"
/>
<folding>
<marker
date=
"1577934197620"
expanded=
"true"
signature=
"274:309"
ph=
"SELECT * FRO... user"
/>
<marker
date=
"1577934197620"
expanded=
"true"
signature=
"405:480"
ph=
"INSERT INTO user... "
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/pom.xml"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"531"
>
<caret
line=
"46"
column=
"41"
lean-forward=
"true"
selection-start-line=
"46"
selection-start-column=
"41"
selection-end-line=
"46"
selection-end-column=
"41"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/resources/db.properties"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"90"
>
<caret
line=
"3"
column=
"15"
lean-forward=
"true"
selection-start-line=
"3"
selection-start-column=
"15"
selection-end-line=
"3"
selection-end-column=
"15"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"jar://$MAVEN_REPOSITORY$/org/mybatis/mybatis/3.4.5/mybatis-3.4.5.jar!/org/apache/ibatis/session/SqlSession.class"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"106"
>
<caret
line=
"17"
column=
"42"
lean-forward=
"false"
selection-start-line=
"17"
selection-start-column=
"42"
selection-end-line=
"17"
selection-end-column=
"42"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/cesgroup/mybatis/handler/MyTypeHandler.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"138"
>
<caret
line=
"30"
column=
"9"
lean-forward=
"true"
selection-start-line=
"30"
selection-start-column=
"9"
selection-end-line=
"30"
selection-end-column=
"9"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/cesgroup/mybatis/interceptor/MybatisLogInterceptor.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"0"
>
<caret
line=
"15"
column=
"0"
lean-forward=
"true"
selection-start-line=
"15"
selection-start-column=
"0"
selection-end-line=
"15"
selection-end-column=
"0"
/>
<folding>
<element
signature=
"e#3419#3420#0"
expanded=
"true"
/>
<element
signature=
"e#3462#3463#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/test/java/com/cesgroup/mybatis/MybatisTest.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"90"
>
<caret
line=
"13"
column=
"0"
lean-forward=
"true"
selection-start-line=
"13"
selection-start-column=
"0"
selection-end-line=
"13"
selection-end-column=
"0"
/>
<folding
/>
</state>
</provider>
</entry>
</component>
<component
name=
"masterDetails"
>
<states>
<state
key=
"ProjectJDKs.UI"
>
<settings>
<last-edited>
1.8
</last-edited>
<splitter-proportions>
<option
name=
"proportions"
>
<list>
<option
value=
"0.2"
/>
</list>
</option>
</splitter-proportions>
</settings>
</state>
</states>
</component>
</project>
\ No newline at end of file
MybatisTraning/MybatisTraning.iml
deleted
100644 → 0
View file @
7c4d6dba
<?xml version="1.0" encoding="UTF-8"?>
<module
org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule=
"true"
type=
"JAVA_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
LANGUAGE_LEVEL=
"JDK_1_8"
>
<output
url=
"file://$MODULE_DIR$/target/classes"
/>
<output-test
url=
"file://$MODULE_DIR$/target/test-classes"
/>
<content
url=
"file://$MODULE_DIR$"
>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/java"
isTestSource=
"false"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/main/resources"
type=
"java-resource"
/>
<sourceFolder
url=
"file://$MODULE_DIR$/src/test/java"
isTestSource=
"true"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/target"
/>
</content>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"library"
name=
"Maven: mysql:mysql-connector-java:8.0.16"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.protobuf:protobuf-java:3.6.1"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.mybatis:mybatis:3.4.5"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.alibaba:fastjson:1.2.56"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"TEST"
name=
"Maven: junit:junit:4.12"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"TEST"
name=
"Maven: org.hamcrest:hamcrest-core:1.3"
level=
"project"
/>
</component>
</module>
\ No newline at end of file
MybatisTraning/pom.xml
deleted
100644 → 0
View file @
7c4d6dba
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.cesgroup
</groupId>
<artifactId>
MybatisTraning
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<dependencies>
<dependency>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
8.0.16
</version>
</dependency>
<dependency>
<groupId>
org.mybatis
</groupId>
<artifactId>
mybatis
</artifactId>
<version>
3.4.5
</version>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
<version>
1.2.56
</version>
</dependency>
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<version>
4.12
</version>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<configuration>
<source>
1.8
</source>
<target>
1.8
</target>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>
src/main/resource
</directory>
<includes>
<include>
*.*
</include>
</includes>
</resource>
</resources>
</build>
</project>
\ No newline at end of file
MybatisTraning/src/main/java/com/cesgroup/mybatis/entity/User.java
deleted
100644 → 0
View file @
7c4d6dba
package
com
.
cesgroup
.
mybatis
.
entity
;
import
java.io.Serializable
;
import
com.alibaba.fastjson.JSONObject
;
public
class
User
implements
Serializable
{
int
id
;
String
name
;
JSONObject
info
;
public
int
getId
()
{
return
id
;
}
public
void
setId
(
int
id
)
{
this
.
id
=
id
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
JSONObject
getInfo
()
{
return
info
;
}
public
void
setInfo
(
JSONObject
info
)
{
this
.
info
=
info
;
}
@Override
public
String
toString
()
{
return
"User [id="
+
id
+
", name="
+
name
+
", info="
+
JSONObject
.
toJSONString
(
info
)
+
"]"
;
}
}
MybatisTraning/src/main/java/com/cesgroup/mybatis/handler/MyTypeHandler.java
deleted
100644 → 0
View file @
7c4d6dba
package
com
.
cesgroup
.
mybatis
.
handler
;
import
com.alibaba.fastjson.JSONObject
;
import
org.apache.ibatis.type.BaseTypeHandler
;
import
org.apache.ibatis.type.JdbcType
;
import
java.sql.CallableStatement
;
import
java.sql.PreparedStatement
;
import
java.sql.ResultSet
;
import
java.sql.SQLException
;
public
class
MyTypeHandler
extends
BaseTypeHandler
<
JSONObject
>
{
@Override
public
JSONObject
getNullableResult
(
ResultSet
rs
,
String
s
)
throws
SQLException
{
String
infoJsonString
=
rs
.
getString
(
s
);
return
infoJsonString
==
null
?
null
:
JSONObject
.
parseObject
(
infoJsonString
);
}
@Override
public
JSONObject
getNullableResult
(
CallableStatement
arg0
,
int
arg1
)
throws
SQLException
{
return
null
;
}
@Override
public
void
setNonNullParameter
(
PreparedStatement
statement
,
int
i
,
JSONObject
infoObject
,
JdbcType
jdbcType
)
throws
SQLException
{
try
{
String
userInfoString
=
JSONObject
.
toJSONString
(
infoObject
);
statement
.
setString
(
i
,
userInfoString
);
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
"----将对象转化为字符串失败!----"
);
}
}
@Override
public
JSONObject
getNullableResult
(
ResultSet
arg0
,
int
arg1
)
throws
SQLException
{
return
null
;
}
}
MybatisTraning/src/main/java/com/cesgroup/mybatis/interceptor/MybatisLogInterceptor.java
deleted
100644 → 0
View file @
7c4d6dba
package
com
.
cesgroup
.
mybatis
.
interceptor
;
import
com.alibaba.fastjson.JSONObject
;
import
com.cesgroup.mybatis.handler.MyTypeHandler
;
import
org.apache.ibatis.executor.statement.StatementHandler
;
import
org.apache.ibatis.logging.Log
;
import
org.apache.ibatis.logging.LogFactory
;
import
org.apache.ibatis.mapping.BoundSql
;
import
org.apache.ibatis.mapping.ParameterMapping
;
import
org.apache.ibatis.plugin.*
;
import
org.apache.ibatis.session.ResultHandler
;
import
java.sql.Statement
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Properties
;
@Intercepts
({
@Signature
(
type
=
StatementHandler
.
class
,
method
=
"query"
,
args
=
{
Statement
.
class
,
ResultHandler
.
class
}),
@Signature
(
type
=
StatementHandler
.
class
,
method
=
"update"
,
args
=
{
Statement
.
class
}),
@Signature
(
type
=
StatementHandler
.
class
,
method
=
"batch"
,
args
=
{
Statement
.
class
})
})
public
class
MybatisLogInterceptor
implements
Interceptor
{
final
Log
log
=
LogFactory
.
getLog
(
MyTypeHandler
.
class
);
public
Object
intercept
(
Invocation
invocation
)
throws
Throwable
{
Object
target
=
invocation
.
getTarget
();
long
startTime
=
System
.
currentTimeMillis
();
StatementHandler
statementHandler
=
(
StatementHandler
)
target
;
try
{
return
invocation
.
proceed
();
}
finally
{
long
endTime
=
System
.
currentTimeMillis
();
long
sqlCost
=
endTime
-
startTime
;
BoundSql
boundSql
=
statementHandler
.
getBoundSql
();
String
sql
=
boundSql
.
getSql
();
Object
parameterObject
=
boundSql
.
getParameterObject
();
List
<
ParameterMapping
>
parameterMappingList
=
boundSql
.
getParameterMappings
();
// 格式化Sql语句,去除换行符,替换参数
sql
=
formatSql
(
sql
,
parameterObject
,
parameterMappingList
);
log
.
warn
(
"执行耗时["
+
sqlCost
+
"ms] "
+
"SQL:"
+
sql
+
";"
);
}
}
private
String
formatSql
(
String
sql
,
Object
parameterObject
,
List
<
ParameterMapping
>
parameterMappingList
)
{
sql
=
sql
.
replaceAll
(
"\r|\n|\t"
,
" "
).
replaceAll
(
"\\s+"
,
" "
);
if
(
parameterObject
==
null
){
sql
=
sql
.
replaceAll
(
"\\?"
,
" null"
);
return
sql
;
}
if
(
Map
.
class
.
isAssignableFrom
(
parameterObject
.
getClass
())){
Map
pb
=
(
Map
)
parameterObject
;
for
(
ParameterMapping
temp:
parameterMappingList
){
if
(
pb
.
get
(
temp
.
getProperty
())
!=
null
){
if
(
pb
.
get
(
temp
.
getProperty
()).
getClass
().
isAssignableFrom
(
JSONObject
.
class
)){
JSONObject
infObject
=
(
JSONObject
)
pb
.
get
(
temp
.
getProperty
());
sql
=
sql
.
replaceFirst
(
"\\?"
,
"'"
+
infObject
.
toJSONString
()
+
"'"
);
}
else
{
sql
=
sql
.
replaceFirst
(
"\\?"
,
"'"
+
pb
.
get
(
temp
.
getProperty
())
+
"'"
);
}
}
else
{
sql
=
sql
.
replaceFirst
(
"\\?"
,
"'null'"
);
}
}
}
if
(
String
.
class
.
isAssignableFrom
(
parameterObject
.
getClass
()))
{
sql
=
sql
.
replaceFirst
(
"\\?"
,
parameterObject
==
null
?
"null"
:
"'"
+
parameterObject
+
"'"
);
}
if
(
Number
.
class
.
isAssignableFrom
(
parameterObject
.
getClass
()))
{
sql
=
sql
.
replaceFirst
(
"\\?"
,
parameterObject
==
null
?
"null"
:
"'"
+
parameterObject
.
toString
()
+
"'"
);
}
return
sql
;
}
public
Object
plugin
(
Object
o
)
{
return
Plugin
.
wrap
(
o
,
this
);
}
public
void
setProperties
(
Properties
properties
)
{
}
}
MybatisTraning/src/main/resources/MyMapper.xml
deleted
100644 → 0
View file @
7c4d6dba
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"MyMapper"
>
<select
id=
"selectUser"
resultType=
"com.cesgroup.mybatis.entity.User"
>
SELECT * FROM user WHERE id = #{id}
</select>
<insert
id=
"insert"
parameterType=
"com.cesgroup.mybatis.entity.User"
>
INSERT INTO user (id, name, info)
VALUES(#{id}, #{name}, #{info})
</insert>
</mapper>
MybatisTraning/src/main/resources/db.properties
deleted
100644 → 0
View file @
7c4d6dba
driver
=
com.mysql.cj.jdbc.Driver
url
=
jdbc:mysql://localhost:3306/mybatis?setUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
username
=
root
password
=
123456
MybatisTraning/src/main/resources/mybatis-config.xml
deleted
100644 → 0
View file @
7c4d6dba
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<!-- 根标签 -->
<configuration>
<properties
resource=
"db.properties"
></properties>
<typeHandlers>
<typeHandler
handler=
"com.cesgroup.mybatis.handler.MyTypeHandler"
></typeHandler>
</typeHandlers>
<plugins>
<plugin
interceptor=
"com.cesgroup.mybatis.interceptor.MybatisLogInterceptor"
>
</plugin>
</plugins>
<environments
default=
"mysql"
>
<environment
id=
"mysql"
>
<!-- 事务管理器 -->
<transactionManager
type=
"JDBC"
/>
<!-- 连接池 -->
<dataSource
type=
"POOLED"
>
<property
name=
"driver"
value=
"${driver}"
/>
<property
name=
"url"
value=
"${url}"
/>
<property
name=
"username"
value=
"${username}"
/>
<property
name=
"password"
value=
"${password}"
/>
</dataSource>
</environment>
</environments>
<mappers>
<mapper
resource=
"MyMapper.xml"
/>
</mappers>
</configuration>
MybatisTraning/src/main/resources/mybatis.sql
deleted
100644 → 0
View file @
7c4d6dba
/*
Navicat Premium Data Transfer
Source Server : 本机
Source Server Type : MySQL
Source Server Version : 80015
Source Host : localhost:3306
Source Schema : test
Target Server Type : MySQL
Target Server Version : 80015
File Encoding : 65001
Date: 11/12/2019 14:34:10
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for mybatis
-- ----------------------------
DROP
TABLE
IF
EXISTS
`mybatis`
;
CREATE
TABLE
`mybatis`
(
`id`
int
(
32
)
NOT
NULL
,
`name`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
,
`info`
varchar
(
1000
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
ROW_FORMAT
=
Dynamic
;
SET
FOREIGN_KEY_CHECKS
=
1
;
MybatisTraning/src/test/java/com/cesgroup/mybatis/MybatisTest.java
deleted
100644 → 0
View file @
7c4d6dba
package
com
.
cesgroup
.
mybatis
;
import
com.alibaba.fastjson.JSONObject
;
import
com.cesgroup.mybatis.entity.User
;
import
org.apache.ibatis.io.Resources
;
import
org.apache.ibatis.session.SqlSession
;
import
org.apache.ibatis.session.SqlSessionFactory
;
import
org.apache.ibatis.session.SqlSessionFactoryBuilder
;
import
org.junit.Before
;
import
org.junit.Test
;
import
java.io.InputStream
;
import
java.util.HashMap
;
import
java.util.Map
;
public
class
MybatisTest
{
private
SqlSession
sqlSession
=
null
;
private
SqlSessionFactory
sqlSessionFactory
;
@Before
public
void
configMybatis
()
{
// 指定全局配置文件
String
resource
=
"mybatis-config.xml"
;
// 读取配置文件
InputStream
inputStream
;
try
{
inputStream
=
Resources
.
getResourceAsStream
(
resource
);
// 构建sqlSessionFactory
sqlSessionFactory
=
new
SqlSessionFactoryBuilder
().
build
(
inputStream
);
// 获取sqlSession
sqlSession
=
sqlSessionFactory
.
openSession
(
false
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
@Test
public
void
testSelectUser
()
{
User
user
=
sqlSession
.
selectOne
(
"MyMapper.selectUser"
,
1
);
System
.
out
.
println
(
user
);
sqlSession
.
close
();
}
@Test
public
void
testInsertJsonObject
()
{
JSONObject
userInfObject
=
new
JSONObject
();
userInfObject
.
put
(
"test"
,
"测试"
);
Map
userMap
=
new
HashMap
();
userMap
.
put
(
"id"
,
20
);
userMap
.
put
(
"name"
,
"测试"
);
userMap
.
put
(
"info"
,
userInfObject
);
int
num
=
sqlSession
.
insert
(
"MyMapper.insert"
,
userMap
);
sqlSession
.
commit
();
System
.
out
.
println
(
"影响的行数:"
+
num
);
}
}
MybatisTraning/target/classes/MyMapper.xml
deleted
100644 → 0
View file @
7c4d6dba
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"MyMapper"
>
<select
id=
"selectUser"
resultType=
"com.cesgroup.mybatis.entity.User"
>
SELECT * FROM user WHERE id = #{id}
</select>
<insert
id=
"insert"
parameterType=
"com.cesgroup.mybatis.entity.User"
>
INSERT INTO user (id, name, info)
VALUES(#{id}, #{name}, #{info})
</insert>
</mapper>
MybatisTraning/target/classes/com/cesgroup/mybatis/entity/User.class
deleted
100644 → 0
View file @
7c4d6dba
File deleted
MybatisTraning/target/classes/com/cesgroup/mybatis/handler/MyTypeHandler.class
deleted
100644 → 0
View file @
7c4d6dba
File deleted
MybatisTraning/target/classes/com/cesgroup/mybatis/interceptor/MybatisLogInterceptor.class
deleted
100644 → 0
View file @
7c4d6dba
File deleted
MybatisTraning/target/classes/db.properties
deleted
100644 → 0
View file @
7c4d6dba
driver
=
com.mysql.cj.jdbc.Driver
url
=
jdbc:mysql://localhost:3306/mybatis?setUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
username
=
root
password
=
123456
MybatisTraning/target/classes/mybatis-config.xml
deleted
100644 → 0
View file @
7c4d6dba
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<!-- 根标签 -->
<configuration>
<properties
resource=
"db.properties"
></properties>
<typeHandlers>
<typeHandler
handler=
"com.cesgroup.mybatis.handler.MyTypeHandler"
></typeHandler>
</typeHandlers>
<plugins>
<plugin
interceptor=
"com.cesgroup.mybatis.interceptor.MybatisLogInterceptor"
>
</plugin>
</plugins>
<environments
default=
"mysql"
>
<environment
id=
"mysql"
>
<!-- 事务管理器 -->
<transactionManager
type=
"JDBC"
/>
<!-- 连接池 -->
<dataSource
type=
"POOLED"
>
<property
name=
"driver"
value=
"${driver}"
/>
<property
name=
"url"
value=
"${url}"
/>
<property
name=
"username"
value=
"${username}"
/>
<property
name=
"password"
value=
"${password}"
/>
</dataSource>
</environment>
</environments>
<mappers>
<mapper
resource=
"MyMapper.xml"
/>
</mappers>
</configuration>
MybatisTraning/target/classes/mybatis.sql
deleted
100644 → 0
View file @
7c4d6dba
/*
Navicat Premium Data Transfer
Source Server : 本机
Source Server Type : MySQL
Source Server Version : 80015
Source Host : localhost:3306
Source Schema : test
Target Server Type : MySQL
Target Server Version : 80015
File Encoding : 65001
Date: 11/12/2019 14:34:10
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for mybatis
-- ----------------------------
DROP
TABLE
IF
EXISTS
`mybatis`
;
CREATE
TABLE
`mybatis`
(
`id`
int
(
32
)
NOT
NULL
,
`name`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
,
`info`
varchar
(
1000
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
ROW_FORMAT
=
Dynamic
;
SET
FOREIGN_KEY_CHECKS
=
1
;
MybatisTraning/target/test-classes/com/cesgroup/mybatis/MybatisTest.class
deleted
100644 → 0
View file @
7c4d6dba
File deleted
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment