diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/.gitignore" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/.gitignore"
new file mode 100644
index 0000000000000000000000000000000000000000..549e00a2a96fa9d7c5dbc9859664a78d980158c2
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/.gitignore"
@@ -0,0 +1,33 @@
+HELP.md
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/.mvn/wrapper/maven-wrapper.jar" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/.mvn/wrapper/maven-wrapper.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..c1dd12f17644411d6e840bd5a10c6ecda0175f18
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/.mvn/wrapper/maven-wrapper.jar" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/.mvn/wrapper/maven-wrapper.properties" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/.mvn/wrapper/maven-wrapper.properties"
new file mode 100644
index 0000000000000000000000000000000000000000..b7cb93e7050f42ff587aefbc40cc038ad4fa3271
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/.mvn/wrapper/maven-wrapper.properties"
@@ -0,0 +1,2 @@
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip
+wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/mvnw" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/mvnw"
new file mode 100644
index 0000000000000000000000000000000000000000..8a8fb2282df5b8f7263470a5a2dc0e196f35f35f
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/mvnw"
@@ -0,0 +1,316 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Maven Start Up Batch script
+#
+# Required ENV vars:
+# ------------------
+# JAVA_HOME - location of a JDK home dir
+#
+# Optional ENV vars
+# -----------------
+# M2_HOME - location of maven2's installed home dir
+# MAVEN_OPTS - parameters passed to the Java VM when running Maven
+# e.g. to debug Maven itself, use
+# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+# ----------------------------------------------------------------------------
+
+if [ -z "$MAVEN_SKIP_RC" ] ; then
+
+ if [ -f /usr/local/etc/mavenrc ] ; then
+ . /usr/local/etc/mavenrc
+ fi
+
+ if [ -f /etc/mavenrc ] ; then
+ . /etc/mavenrc
+ fi
+
+ if [ -f "$HOME/.mavenrc" ] ; then
+ . "$HOME/.mavenrc"
+ fi
+
+fi
+
+# OS specific support. $var _must_ be set to either true or false.
+cygwin=false;
+darwin=false;
+mingw=false
+case "`uname`" in
+ CYGWIN*) cygwin=true ;;
+ MINGW*) mingw=true;;
+ Darwin*) darwin=true
+ # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
+ # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
+ if [ -z "$JAVA_HOME" ]; then
+ if [ -x "/usr/libexec/java_home" ]; then
+ export JAVA_HOME="`/usr/libexec/java_home`"
+ else
+ export JAVA_HOME="/Library/Java/Home"
+ fi
+ fi
+ ;;
+esac
+
+if [ -z "$JAVA_HOME" ] ; then
+ if [ -r /etc/gentoo-release ] ; then
+ JAVA_HOME=`java-config --jre-home`
+ fi
+fi
+
+if [ -z "$M2_HOME" ] ; then
+ ## resolve links - $0 may be a link to maven's home
+ PRG="$0"
+
+ # need this for relative symlinks
+ while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG="`dirname "$PRG"`/$link"
+ fi
+ done
+
+ saveddir=`pwd`
+
+ M2_HOME=`dirname "$PRG"`/..
+
+ # make it fully qualified
+ M2_HOME=`cd "$M2_HOME" && pwd`
+
+ cd "$saveddir"
+ # echo Using m2 at $M2_HOME
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin ; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=`cygpath --unix "$M2_HOME"`
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
+fi
+
+# For Mingw, ensure paths are in UNIX format before anything is touched
+if $mingw ; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME="`(cd "$M2_HOME"; pwd)`"
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ javaExecutable="`which javac`"
+ if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
+ # readlink(1) is not available as standard on Solaris 10.
+ readLink=`which readlink`
+ if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
+ if $darwin ; then
+ javaHome="`dirname \"$javaExecutable\"`"
+ javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
+ else
+ javaExecutable="`readlink -f \"$javaExecutable\"`"
+ fi
+ javaHome="`dirname \"$javaExecutable\"`"
+ javaHome=`expr "$javaHome" : '\(.*\)/bin'`
+ JAVA_HOME="$javaHome"
+ export JAVA_HOME
+ fi
+ fi
+fi
+
+if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ else
+ JAVACMD="`\\unset -f command; \\command -v java`"
+ fi
+fi
+
+if [ ! -x "$JAVACMD" ] ; then
+ echo "Error: JAVA_HOME is not defined correctly." >&2
+ echo " We cannot execute $JAVACMD" >&2
+ exit 1
+fi
+
+if [ -z "$JAVA_HOME" ] ; then
+ echo "Warning: JAVA_HOME environment variable is not set."
+fi
+
+CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
+
+# traverses directory structure from process work directory to filesystem root
+# first directory with .mvn subdirectory is considered project base directory
+find_maven_basedir() {
+
+ if [ -z "$1" ]
+ then
+ echo "Path not specified to find_maven_basedir"
+ return 1
+ fi
+
+ basedir="$1"
+ wdir="$1"
+ while [ "$wdir" != '/' ] ; do
+ if [ -d "$wdir"/.mvn ] ; then
+ basedir=$wdir
+ break
+ fi
+ # workaround for JBEAP-8937 (on Solaris 10/Sparc)
+ if [ -d "${wdir}" ]; then
+ wdir=`cd "$wdir/.."; pwd`
+ fi
+ # end of workaround
+ done
+ echo "${basedir}"
+}
+
+# concatenates all lines of a file
+concat_lines() {
+ if [ -f "$1" ]; then
+ echo "$(tr -s '\n' ' ' < "$1")"
+ fi
+}
+
+BASE_DIR=`find_maven_basedir "$(pwd)"`
+if [ -z "$BASE_DIR" ]; then
+ exit 1;
+fi
+
+##########################################################################################
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
+##########################################################################################
+if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found .mvn/wrapper/maven-wrapper.jar"
+ fi
+else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
+ fi
+ if [ -n "$MVNW_REPOURL" ]; then
+ jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
+ else
+ jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
+ fi
+ while IFS="=" read key value; do
+ case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
+ esac
+ done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Downloading from: $jarUrl"
+ fi
+ wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
+ if $cygwin; then
+ wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
+ fi
+
+ if command -v wget > /dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found wget ... using wget"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
+ else
+ wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
+ fi
+ elif command -v curl > /dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found curl ... using curl"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ curl -o "$wrapperJarPath" "$jarUrl" -f
+ else
+ curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
+ fi
+
+ else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Falling back to using Java to download"
+ fi
+ javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
+ # For Cygwin, switch paths to Windows format before running javac
+ if $cygwin; then
+ javaClass=`cygpath --path --windows "$javaClass"`
+ fi
+ if [ -e "$javaClass" ]; then
+ if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Compiling MavenWrapperDownloader.java ..."
+ fi
+ # Compiling the Java class
+ ("$JAVA_HOME/bin/javac" "$javaClass")
+ fi
+ if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ # Running the downloader
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Running MavenWrapperDownloader.java ..."
+ fi
+ ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
+ fi
+ fi
+ fi
+fi
+##########################################################################################
+# End of extension
+##########################################################################################
+
+export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
+if [ "$MVNW_VERBOSE" = true ]; then
+ echo $MAVEN_PROJECTBASEDIR
+fi
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=`cygpath --path --windows "$M2_HOME"`
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+ [ -n "$MAVEN_PROJECTBASEDIR" ] &&
+ MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
+fi
+
+# Provide a "standardized" way to retrieve the CLI args that will
+# work with both Windows and non-Windows executions.
+MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
+export MAVEN_CMD_LINE_ARGS
+
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+exec "$JAVACMD" \
+ $MAVEN_OPTS \
+ $MAVEN_DEBUG_OPTS \
+ -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
+ "-Dmaven.home=${M2_HOME}" \
+ "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
+ ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/mvnw.cmd" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/mvnw.cmd"
new file mode 100644
index 0000000000000000000000000000000000000000..1d8ab018eaf11d9b3a4a90e7818ace373dfbb380
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/mvnw.cmd"
@@ -0,0 +1,188 @@
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM https://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Maven Start Up Batch script
+@REM
+@REM Required ENV vars:
+@REM JAVA_HOME - location of a JDK home dir
+@REM
+@REM Optional ENV vars
+@REM M2_HOME - location of maven2's installed home dir
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
+@REM e.g. to debug Maven itself, use
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+@REM ----------------------------------------------------------------------------
+
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
+@echo off
+@REM set title of command window
+title %0
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
+@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
+
+@REM set %HOME% to equivalent of $HOME
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
+
+@REM Execute a user defined script before this one
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
+if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
+if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
+:skipRcPre
+
+@setlocal
+
+set ERROR_CODE=0
+
+@REM To isolate internal variables from possible post scripts, we use another setlocal
+@setlocal
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJHome
+
+echo.
+echo Error: JAVA_HOME not found in your environment. >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+:OkJHome
+if exist "%JAVA_HOME%\bin\java.exe" goto init
+
+echo.
+echo Error: JAVA_HOME is set to an invalid directory. >&2
+echo JAVA_HOME = "%JAVA_HOME%" >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+@REM ==== END VALIDATION ====
+
+:init
+
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
+@REM Fallback to current working directory if not found.
+
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
+
+set EXEC_DIR=%CD%
+set WDIR=%EXEC_DIR%
+:findBaseDir
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
+cd ..
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
+set WDIR=%CD%
+goto findBaseDir
+
+:baseDirFound
+set MAVEN_PROJECTBASEDIR=%WDIR%
+cd "%EXEC_DIR%"
+goto endDetectBaseDir
+
+:baseDirNotFound
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
+cd "%EXEC_DIR%"
+
+:endDetectBaseDir
+
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
+
+@setlocal EnableExtensions EnableDelayedExpansion
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
+
+:endReadAdditionalConfig
+
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
+
+FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
+)
+
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
+if exist %WRAPPER_JAR% (
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Found %WRAPPER_JAR%
+ )
+) else (
+ if not "%MVNW_REPOURL%" == "" (
+ SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar"
+ )
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Couldn't find %WRAPPER_JAR%, downloading it ...
+ echo Downloading from: %DOWNLOAD_URL%
+ )
+
+ powershell -Command "&{"^
+ "$webclient = new-object System.Net.WebClient;"^
+ "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
+ "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
+ "}"^
+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
+ "}"
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Finished downloading %WRAPPER_JAR%
+ )
+)
+@REM End of extension
+
+@REM Provide a "standardized" way to retrieve the CLI args that will
+@REM work with both Windows and non-Windows executions.
+set MAVEN_CMD_LINE_ARGS=%*
+
+%MAVEN_JAVA_EXE% ^
+ %JVM_CONFIG_MAVEN_PROPS% ^
+ %MAVEN_OPTS% ^
+ %MAVEN_DEBUG_OPTS% ^
+ -classpath %WRAPPER_JAR% ^
+ "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
+ %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+set ERROR_CODE=1
+
+:end
+@endlocal & set ERROR_CODE=%ERROR_CODE%
+
+if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
+if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
+if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
+:skipRcPost
+
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
+if "%MAVEN_BATCH_PAUSE%"=="on" pause
+
+if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
+
+cmd /C exit /B %ERROR_CODE%
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/pom.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/pom.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..9a50d8929f3925e0da6ea6b2facd3a8943635981
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/pom.xml"
@@ -0,0 +1,60 @@
+
+
+ 4.0.0
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.7.0
+
+
+ com.example
+ spring
+ 0.0.1-SNAPSHOT
+ spring
+ Demo project for Spring Boot
+
+ 18
+
+
+
+ org.springframework.boot
+ spring-boot-starter
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+ com.alibaba
+ druid-spring-boot-starter
+ 1.1.10
+
+
+
+ org.mybatis.spring.boot
+ mybatis-spring-boot-starter
+ 2.1.4
+
+
+
+ mysql
+ mysql-connector-java
+ runtime
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
+
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/main/java/com/example/spring/Application.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/main/java/com/example/spring/Application.java"
new file mode 100644
index 0000000000000000000000000000000000000000..c6584004593d89ea45eed8727d013e8bc9a372d5
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/main/java/com/example/spring/Application.java"
@@ -0,0 +1,16 @@
+package com.example.spring;
+
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
+
+@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
+@MapperScan("com.example.spring.mapper")
+public class Application {
+
+ public static void main(String[] args) {
+ SpringApplication.run(Application.class, args);
+ }
+
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/main/java/com/example/spring/config/Config.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/main/java/com/example/spring/config/Config.java"
new file mode 100644
index 0000000000000000000000000000000000000000..0e79b7286a037215c4fe4af4d1f733337e354e62
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/main/java/com/example/spring/config/Config.java"
@@ -0,0 +1,18 @@
+package com.example.spring.config;
+
+import org.springframework.beans.factory.annotation.Configurable;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.boot.jdbc.DataSourceBuilder;
+import org.springframework.context.annotation.Bean;
+
+import javax.sql.DataSource;
+
+@Configurable
+public class Config {
+
+ @Bean("myDataSource")
+// @ConfigurationProperties(prefix = "spring.durid.datasource.master")
+ public DataSource myDataSource(){
+ return DataSourceBuilder.create().build();
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/main/java/com/example/spring/domain/User.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/main/java/com/example/spring/domain/User.java"
new file mode 100644
index 0000000000000000000000000000000000000000..fe123b712ab0f65ab127fa7c288f0b4e2f153a1c
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/main/java/com/example/spring/domain/User.java"
@@ -0,0 +1,23 @@
+package com.example.spring.domain;
+
+public class User {
+
+ private String id;
+ private String userName;
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public String getUserName() {
+ return userName;
+ }
+
+ public void setUserName(String userName) {
+ this.userName = userName;
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/main/java/com/example/spring/mapper/UserMapper.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/main/java/com/example/spring/mapper/UserMapper.java"
new file mode 100644
index 0000000000000000000000000000000000000000..6f650788da6e95772f3a9435a0300f0ea645bdff
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/main/java/com/example/spring/mapper/UserMapper.java"
@@ -0,0 +1,14 @@
+package com.example.spring.mapper;
+
+import com.example.spring.domain.User;
+import org.apache.ibatis.annotations.Select;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+
+public interface UserMapper {
+
+ @Select("select * from user")
+ List findUsers();
+
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/main/java/com/example/spring/service/UserService.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/main/java/com/example/spring/service/UserService.java"
new file mode 100644
index 0000000000000000000000000000000000000000..1c927c82b019e15427f9ffe973d5f218b6169632
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/main/java/com/example/spring/service/UserService.java"
@@ -0,0 +1,24 @@
+package com.example.spring.service;
+
+import com.example.spring.domain.User;
+import com.example.spring.mapper.UserMapper;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class UserService {
+
+ @Autowired
+ private UserMapper userMapper;
+
+
+ public void findUses(){
+ // 查询Master
+ List allUserM = userMapper.findUsers();
+ System.out.println(allUserM);
+ }
+
+
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/main/resources/application.properties" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/main/resources/application.properties"
new file mode 100644
index 0000000000000000000000000000000000000000..713c92a7dbedfd4ee305870dd7149f0ded74ec79
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/main/resources/application.properties"
@@ -0,0 +1,8 @@
+#spring.druid.datasource.master.password=root
+#spring.druid.datasource.master.username=root
+#spring.druid.datasource.master.jdbc-url=jdbc:mysql://localhost:3306/product_master?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=UTC
+#spring.druid.datasource.master.driver-class-name=com.mysql.cj.jdbc.Driver
+spring.datasource.driver=com.mysql.cj.jdbc.Driver
+spring.datasource.url=jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf8&useSSL=true&serverTimezone=UTC
+spring.datasource.username=star
+spring.datasource.password=123456
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/test/java/com/example/spring/ApplicationTests.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/test/java/com/example/spring/ApplicationTests.java"
new file mode 100644
index 0000000000000000000000000000000000000000..62fb0f34549fbdf7ca6f2bda4929e85d4e35e670
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/privateTeach/spring/src/test/java/com/example/spring/ApplicationTests.java"
@@ -0,0 +1,22 @@
+package com.example.spring;
+
+import com.example.spring.domain.User;
+import com.example.spring.service.UserService;
+import org.junit.jupiter.api.Test;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+
+import java.util.List;
+
+@SpringBootTest
+class ApplicationTests {
+
+ @Autowired
+ private UserService userService;
+
+ @Test
+ void contextLoads() {
+ userService.findUses();
+ }
+
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/.gitignore" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/.gitignore"
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/compiler.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/compiler.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..3c7615b54e383216c817bcaacdb0167256cd7155
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/compiler.xml"
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/encodings.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/encodings.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..aa00ffab7828f4818589659c804ec2cfd99baed3
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/encodings.xml"
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/jarRepositories.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/jarRepositories.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..712ab9d985c20018a0c97b93d2148ac1ffe588a5
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/jarRepositories.xml"
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__c3p0_c3p0_0_9_1_2.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__c3p0_c3p0_0_9_1_2.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..fead87ba59028563709f5345de392462fe32db37
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__c3p0_c3p0_0_9_1_2.xml"
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__dom4j_dom4j_1_6_1.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__dom4j_dom4j_1_6_1.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..14681ee84083f43045a16158c0e62720d8f4e0bd
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__dom4j_dom4j_1_6_1.xml"
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__jaxen_jaxen_1_1_6.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__jaxen_jaxen_1_1_6.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..1784cea4a48b751fda3ffc4be7e9686b8ac47f93
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__jaxen_jaxen_1_1_6.xml"
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__junit_junit_4_10.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__junit_junit_4_10.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..ed8bf5fe7f8a4a5117ac81f4ce4364cb1ca7cef2
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__junit_junit_4_10.xml"
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__log4j_log4j_1_2_12.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__log4j_log4j_1_2_12.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..f398ab4af54eaa7ce32f96f2805fff4ca9510548
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__log4j_log4j_1_2_12.xml"
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__mysql_mysql_connector_java_5_1_17.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__mysql_mysql_connector_java_5_1_17.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..c3b7f46c4577306ee5f197375911a72057cc8a22
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__mysql_mysql_connector_java_5_1_17.xml"
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_1.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_1.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..acdf44300b42ccd0a7dec6d5b31ed08c48e2b071
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_1.xml"
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__xml_apis_xml_apis_1_0_b2.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__xml_apis_xml_apis_1_0_b2.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..c36e71714a7d641de87adc2d59533145c852f652
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/libraries/Maven__xml_apis_xml_apis_1_0_b2.xml"
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/misc.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/misc.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..25daa30c84345e5483c3a3fdc5423595e648d486
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/misc.xml"
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/modules.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/modules.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..11089ee6bb92e47a0df12c11c09d4662c8089801
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/modules.xml"
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/workspace.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/workspace.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..2758b2ccc6a1716e2e3c9e62bdd7e98ce28c2b98
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/.idea/workspace.xml"
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1641222823917
+
+
+ 1641222823917
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/IPersistence.iml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/IPersistence.iml"
new file mode 100644
index 0000000000000000000000000000000000000000..0de1efec1c259a1b5ac12340417ebcddb5d5b0a4
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/IPersistence.iml"
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/pom.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/pom.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..12e62561f37d4745e601ec92b01840f88b183bdd
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/pom.xml"
@@ -0,0 +1,62 @@
+
+
+ 4.0.0
+
+ com.lagou
+ IPersistence
+ 1.0-SNAPSHOT
+
+
+ UTF-8
+ UTF-8
+ 1.8
+ 1.8
+ 1.8
+
+
+
+
+
+ mysql
+ mysql-connector-java
+ 8.0.21
+
+
+ c3p0
+ c3p0
+ 0.9.1.2
+
+
+ log4j
+ log4j
+ 1.2.12
+
+
+ junit
+ junit
+ 4.10
+
+
+ dom4j
+ dom4j
+ 1.6.1
+
+
+ jaxen
+ jaxen
+ 1.1.6
+
+
+ dom4j
+ dom4j
+ 1.6.1
+ compile
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/.DS_Store" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/.DS_Store"
new file mode 100644
index 0000000000000000000000000000000000000000..320b10dc21a6ca34ebbc9f11dba8a75016b85dcb
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/.DS_Store" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/config/BoundSql.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/config/BoundSql.java"
new file mode 100644
index 0000000000000000000000000000000000000000..1066b5746f898c2cf5bec195d9aadb64b53dbb77
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/config/BoundSql.java"
@@ -0,0 +1,34 @@
+package com.lagou.config;
+
+import com.lagou.utils.ParameterMapping;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class BoundSql {
+
+ private String sqlText; //解析过后的sql
+
+ private List parameterMappingList = new ArrayList<>();
+
+ public BoundSql(String sqlText, List parameterMappingList) {
+ this.sqlText = sqlText;
+ this.parameterMappingList = parameterMappingList;
+ }
+
+ public String getSqlText() {
+ return sqlText;
+ }
+
+ public void setSqlText(String sqlText) {
+ this.sqlText = sqlText;
+ }
+
+ public List getParameterMappingList() {
+ return parameterMappingList;
+ }
+
+ public void setParameterMappingList(List parameterMappingList) {
+ this.parameterMappingList = parameterMappingList;
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/config/XMLConfigBuilder.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/config/XMLConfigBuilder.java"
new file mode 100644
index 0000000000000000000000000000000000000000..ab9e2255b1363f82680741c2293445ab15ab528b
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/config/XMLConfigBuilder.java"
@@ -0,0 +1,66 @@
+package com.lagou.config;
+
+import com.lagou.io.Resources;
+import com.lagou.pojo.Configuration;
+import com.mchange.v2.c3p0.ComboPooledDataSource;
+import org.dom4j.Document;
+import org.dom4j.DocumentException;
+import org.dom4j.Element;
+import org.dom4j.io.SAXReader;
+
+import java.beans.PropertyVetoException;
+import java.io.InputStream;
+import java.util.List;
+import java.util.Properties;
+
+public class XMLConfigBuilder {
+
+ private Configuration configuration;
+
+ public XMLConfigBuilder() {
+ this.configuration = new Configuration();
+ }
+
+ /**
+ * 该方法就是使用dom4j对配置文件进行解析,封装Configuration
+ */
+ public Configuration parseConfig(InputStream inputStream) throws DocumentException, PropertyVetoException {
+
+ Document document = new SAXReader().read(inputStream);
+ //
+ Element rootElement = document.getRootElement();
+ List list = rootElement.selectNodes("//property");
+ Properties properties = new Properties();
+ for (Element element : list) {
+ String name = element.attributeValue("name");
+ String value = element.attributeValue("value");
+ properties.setProperty(name,value);
+ }
+
+ ComboPooledDataSource comboPooledDataSource = new ComboPooledDataSource();
+ comboPooledDataSource.setDriverClass(properties.getProperty("driverClass"));
+ comboPooledDataSource.setJdbcUrl(properties.getProperty("jdbcUrl"));
+ comboPooledDataSource.setUser(properties.getProperty("username"));
+ comboPooledDataSource.setPassword(properties.getProperty("password"));
+
+ configuration.setDataSource(comboPooledDataSource);
+
+ //mapper.xml解析: 拿到路径--字节输入流---dom4j进行解析
+ List mapperList = rootElement.selectNodes("//mapper");
+
+ for (Element element : mapperList) {
+ String mapperPath = element.attributeValue("resource");
+ InputStream resourceAsSteam = Resources.getResourceAsSteam(mapperPath);
+ XMLMapperBuilder xmlMapperBuilder = new XMLMapperBuilder(configuration);
+ xmlMapperBuilder.parse(resourceAsSteam);
+
+ }
+
+
+
+
+ return configuration;
+ }
+
+
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/config/XMLMapperBuilder.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/config/XMLMapperBuilder.java"
new file mode 100644
index 0000000000000000000000000000000000000000..d7ebd92df6f7f9f112824489c1532b4845657b63
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/config/XMLMapperBuilder.java"
@@ -0,0 +1,48 @@
+package com.lagou.config;
+
+import com.lagou.pojo.Configuration;
+import com.lagou.pojo.MappedStatement;
+import org.dom4j.Document;
+import org.dom4j.DocumentException;
+import org.dom4j.Element;
+import org.dom4j.io.SAXReader;
+
+import java.io.InputStream;
+import java.util.List;
+
+public class XMLMapperBuilder {
+
+ private Configuration configuration;
+
+ public XMLMapperBuilder(Configuration configuration) {
+ this.configuration =configuration;
+ }
+
+ public void parse(InputStream inputStream) throws DocumentException {
+
+ Document document = new SAXReader().read(inputStream);
+ Element rootElement = document.getRootElement();
+
+ String namespace = rootElement.attributeValue("namespace");
+
+// List list = rootElement.selectNodes("//select");
+ List list = rootElement.elements();
+ for (Element element : list) {
+ String id = element.attributeValue("id");
+ String resultType = element.attributeValue("resultType");
+ String paramterType = element.attributeValue("parameterType");
+ String sqlText = element.getTextTrim();
+ MappedStatement mappedStatement = new MappedStatement();
+ mappedStatement.setId(id);
+ mappedStatement.setResultType(resultType);
+ mappedStatement.setParameterType(paramterType);
+ mappedStatement.setSql(sqlText);
+ String key = namespace+"."+id;
+ configuration.getMappedStatementMap().put(key,mappedStatement);
+
+ }
+
+ }
+
+
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/io/Resources.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/io/Resources.java"
new file mode 100644
index 0000000000000000000000000000000000000000..819cd296b62ca0c178f177b95fc34e03bc5a1365
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/io/Resources.java"
@@ -0,0 +1,16 @@
+package com.lagou.io;
+
+import java.io.InputStream;
+
+public class Resources {
+
+ // 根据配置文件的路径,将配置文件加载成字节输入流,存储在内存中
+ public static InputStream getResourceAsSteam(String path){
+ InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
+ return resourceAsStream;
+
+ }
+
+
+
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/pojo/Configuration.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/pojo/Configuration.java"
new file mode 100644
index 0000000000000000000000000000000000000000..0543481bfae967f70e6d81149766939b50de92cd
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/pojo/Configuration.java"
@@ -0,0 +1,31 @@
+package com.lagou.pojo;
+
+import javax.sql.DataSource;
+import java.util.HashMap;
+import java.util.Map;
+
+public class Configuration {
+
+ private DataSource dataSource;
+
+ /*
+ * key: statementid value:封装好的mappedStatement对象
+ * */
+ Map mappedStatementMap = new HashMap<>();
+
+ public DataSource getDataSource() {
+ return dataSource;
+ }
+
+ public void setDataSource(DataSource dataSource) {
+ this.dataSource = dataSource;
+ }
+
+ public Map getMappedStatementMap() {
+ return mappedStatementMap;
+ }
+
+ public void setMappedStatementMap(Map mappedStatementMap) {
+ this.mappedStatementMap = mappedStatementMap;
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/pojo/MappedStatement.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/pojo/MappedStatement.java"
new file mode 100644
index 0000000000000000000000000000000000000000..8421d819d5ad9e44dcbe04207922b833eef440a7
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/pojo/MappedStatement.java"
@@ -0,0 +1,45 @@
+package com.lagou.pojo;
+
+public class MappedStatement {
+
+ //id标识
+ private String id;
+ //返回值类型
+ private String resultType;
+ //参数值类型
+ private String parameterType;
+ //sql语句
+ private String sql;
+
+ public String getId() {
+ return id;
+ }
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ public String getResultType() {
+ return resultType;
+ }
+
+ public void setResultType(String resultType) {
+ this.resultType = resultType;
+ }
+
+ public String getParameterType() {
+ return parameterType;
+ }
+
+ public void setParameterType(String parameterType) {
+ this.parameterType = parameterType;
+ }
+
+ public String getSql() {
+ return sql;
+ }
+
+ public void setSql(String sql) {
+ this.sql = sql;
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/DefaultSqlSession.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/DefaultSqlSession.java"
new file mode 100644
index 0000000000000000000000000000000000000000..92f677dd6b921d74bb7664c86a72fc968f59f318
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/DefaultSqlSession.java"
@@ -0,0 +1,75 @@
+package com.lagou.sqlSession;
+
+import com.lagou.pojo.Configuration;
+import com.lagou.pojo.MappedStatement;
+
+import java.lang.reflect.*;
+import java.util.List;
+
+public class DefaultSqlSession implements SqlSession {
+
+ private Configuration configuration;
+
+ public DefaultSqlSession(Configuration configuration) {
+ this.configuration = configuration;
+ }
+
+ @Override
+ public List selectList(String statementid, Object... params) throws Exception {
+
+ //将要去完成对simpleExecutor里的query方法的调用
+ simpleExecutor simpleExecutor = new simpleExecutor();
+ MappedStatement mappedStatement = configuration.getMappedStatementMap().get(statementid);
+ List list = simpleExecutor.query(configuration, mappedStatement, params);
+
+ return (List) list;
+ }
+
+ @Override
+ public T selectOne(String statementid, Object... params) throws Exception {
+ List objects = selectList(statementid, params);
+ if(objects.size()==1){
+ return (T) objects.get(0);
+ }else {
+ throw new RuntimeException("查询结果为空或者返回结果过多");
+ }
+ }
+
+ @Override
+ public T getMapper(Class> mapperClass) {
+ // 使用JDK动态代理来为Dao接口生成代理对象,并返回
+
+ Object proxyInstance = Proxy.newProxyInstance(DefaultSqlSession.class.getClassLoader(), new Class[]{mapperClass}, new InvocationHandler() {
+ @Override
+ public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
+ // 底层都还是去执行JDBC代码 //根据不同情况,来调用selctList或者selectOne
+ // 准备参数 1:statmentid :sql语句的唯一标识:namespace.id= 接口全限定名.方法名
+ // 方法名:findAll
+ String methodName = method.getName();
+ String className = method.getDeclaringClass().getName();
+
+ String statementId = className+"."+methodName;
+
+ // 准备参数2:params:args
+ // 获取被调用方法的返回值类型
+ Type genericReturnType = method.getGenericReturnType();
+ // 判断是否进行了 泛型类型参数化
+ if(genericReturnType instanceof ParameterizedType){
+ List objects = selectList(statementId, args);
+ return objects;
+ } else if (genericReturnType.getTypeName() == int.class.getName()){
+ simpleExecutor simpleExecutor = new simpleExecutor();
+ MappedStatement mappedStatement = configuration.getMappedStatementMap().get(statementId);
+ return simpleExecutor.executeUpdate(configuration,mappedStatement,args);
+ }
+
+ return selectOne(statementId,args);
+
+ }
+ });
+
+ return (T) proxyInstance;
+ }
+
+
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/DefaultSqlSessionFactory.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/DefaultSqlSessionFactory.java"
new file mode 100644
index 0000000000000000000000000000000000000000..b4b27aa947dd4653e35fb0e9a3af0302dd1c61fb
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/DefaultSqlSessionFactory.java"
@@ -0,0 +1,18 @@
+package com.lagou.sqlSession;
+
+import com.lagou.pojo.Configuration;
+
+public class DefaultSqlSessionFactory implements SqlSessionFactory {
+
+ private Configuration configuration;
+
+ public DefaultSqlSessionFactory(Configuration configuration) {
+ this.configuration = configuration;
+ }
+
+
+ @Override
+ public SqlSession openSession() {
+ return new DefaultSqlSession(configuration);
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/Executor.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/Executor.java"
new file mode 100644
index 0000000000000000000000000000000000000000..1a4ffcbb66f7f348065707642a0d9f12005009e7
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/Executor.java"
@@ -0,0 +1,18 @@
+package com.lagou.sqlSession;
+
+import com.lagou.pojo.Configuration;
+import com.lagou.pojo.MappedStatement;
+
+import java.util.List;
+
+public interface Executor {
+
+ public List query(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;
+
+ public int executeUpdate(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;
+
+// public int update(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;
+
+// public int delete(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;
+
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/SqlSession.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/SqlSession.java"
new file mode 100644
index 0000000000000000000000000000000000000000..758e1fa74090b367cacd1de51e01191c6129e152
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/SqlSession.java"
@@ -0,0 +1,18 @@
+package com.lagou.sqlSession;
+
+import java.util.List;
+
+public interface SqlSession {
+
+ //查询所有
+ public List selectList(String statementid,Object... params) throws Exception;
+
+ //根据条件查询单个
+ public T selectOne(String statementid,Object... params) throws Exception;
+
+
+ //为Dao接口生成代理实现类
+ public T getMapper(Class> mapperClass);
+
+
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/SqlSessionFactory.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/SqlSessionFactory.java"
new file mode 100644
index 0000000000000000000000000000000000000000..df5bba287448fa7b1ae88ad81b2eb1ff5eb735c9
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/SqlSessionFactory.java"
@@ -0,0 +1,8 @@
+package com.lagou.sqlSession;
+
+public interface SqlSessionFactory {
+
+ public SqlSession openSession();
+
+
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/SqlSessionFactoryBuilder.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/SqlSessionFactoryBuilder.java"
new file mode 100644
index 0000000000000000000000000000000000000000..93fc83be2fbf2d95b24e957d9d02ceb41d267a0f
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/SqlSessionFactoryBuilder.java"
@@ -0,0 +1,27 @@
+package com.lagou.sqlSession;
+
+import com.lagou.config.XMLConfigBuilder;
+import com.lagou.pojo.Configuration;
+import org.dom4j.DocumentException;
+
+import java.beans.PropertyVetoException;
+import java.io.InputStream;
+
+public class SqlSessionFactoryBuilder {
+
+ public SqlSessionFactory build(InputStream in) throws DocumentException, PropertyVetoException {
+ // 第一:使用dom4j解析配置文件,将解析出来的内容封装到Configuration中
+ XMLConfigBuilder xmlConfigBuilder = new XMLConfigBuilder();
+ Configuration configuration = xmlConfigBuilder.parseConfig(in);
+
+
+ // 第二:创建sqlSessionFactory对象:工厂类:生产sqlSession:会话对象
+ DefaultSqlSessionFactory defaultSqlSessionFactory = new DefaultSqlSessionFactory(configuration);
+
+ return defaultSqlSessionFactory;
+ }
+
+
+
+
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/simpleExecutor.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/simpleExecutor.java"
new file mode 100644
index 0000000000000000000000000000000000000000..506430174dbddeae225857ae36a2c7ddbe48502f
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/sqlSession/simpleExecutor.java"
@@ -0,0 +1,140 @@
+package com.lagou.sqlSession;
+
+
+import com.lagou.config.BoundSql;
+import com.lagou.pojo.Configuration;
+import com.lagou.pojo.MappedStatement;
+import com.lagou.utils.GenericTokenParser;
+import com.lagou.utils.ParameterMapping;
+import com.lagou.utils.ParameterMappingTokenHandler;
+
+import java.beans.PropertyDescriptor;
+import java.lang.reflect.Field;
+import java.lang.reflect.Method;
+import java.sql.Connection;
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.ResultSetMetaData;
+import java.util.ArrayList;
+import java.util.List;
+
+public class simpleExecutor implements Executor {
+
+ @Override //user
+ public List query(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception {
+ // 1. 注册驱动,获取连接
+ Connection connection = configuration.getDataSource().getConnection();
+ // 2. 获取sql语句 : select * from user where id = #{id} and username = #{username}
+ //转换sql语句: select * from user where id = ? and username = ? ,转换的过程中,还需要对#{}里面的值进行解析存储
+ String sql = mappedStatement.getSql();
+ BoundSql boundSql = getBoundSql(sql);
+ // 3.获取预处理对象:preparedStatement
+ PreparedStatement preparedStatement = connection.prepareStatement(boundSql.getSqlText());
+ // 4. 设置参数
+ //获取到了参数的全路径
+ String parameterType = mappedStatement.getParameterType();
+ Class> parametertypeClass = getClassType(parameterType);
+
+ List parameterMappingList = boundSql.getParameterMappingList();
+ for (int i = 0; i < parameterMappingList.size(); i++) {
+ ParameterMapping parameterMapping = parameterMappingList.get(i);
+ String content = parameterMapping.getContent();
+ //反射
+ Field declaredField = parametertypeClass.getDeclaredField(content);
+ //暴力访问
+ declaredField.setAccessible(true);
+ Object o = declaredField.get(params[0]);
+
+ preparedStatement.setObject(i + 1, o);
+ }
+ // 5. 执行sql
+ ResultSet resultSet = preparedStatement.executeQuery();
+ String resultType = mappedStatement.getResultType();
+ Class> resultTypeClass = getClassType(resultType);
+
+ ArrayList objects = new ArrayList<>();
+
+ // 6. 封装返回结果集
+ while (resultSet.next()) {
+ Object o = resultTypeClass.newInstance();
+ //元数据
+ ResultSetMetaData metaData = resultSet.getMetaData();
+ for (int i = 1; i <= metaData.getColumnCount(); i++) {
+ // 字段名
+ String columnName = metaData.getColumnName(i);
+ // 字段的值
+ Object value = resultSet.getObject(columnName);
+
+ //使用反射或者内省,根据数据库表和实体的对应关系,完成封装
+ PropertyDescriptor propertyDescriptor = new PropertyDescriptor(columnName, resultTypeClass);
+ Method writeMethod = propertyDescriptor.getWriteMethod();
+ writeMethod.invoke(o, value);
+ }
+ objects.add(o);
+ }
+ return (List) objects;
+ }
+
+ public int executeUpdate(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception {
+ PreparedStatement preparedStatement = getPrepareStatement(configuration, mappedStatement);
+ setParam(preparedStatement,mappedStatement,params);
+ return preparedStatement.executeUpdate();
+ }
+
+ private Class> getClassType(String paramterType) throws ClassNotFoundException {
+ if (paramterType != null) {
+ Class> aClass = Class.forName(paramterType);
+ return aClass;
+ }
+ return null;
+ }
+
+ /**
+ * 完成对#{}的解析工作:1.将#{}使用?进行代替,2.解析出#{}里面的值进行存储
+ *
+ * @param sql
+ * @return
+ */
+ private BoundSql getBoundSql(String sql) {
+ //标记处理类:配置标记解析器来完成对占位符的解析处理工作
+ ParameterMappingTokenHandler parameterMappingTokenHandler = new ParameterMappingTokenHandler();
+ GenericTokenParser genericTokenParser = new GenericTokenParser("#{", "}", parameterMappingTokenHandler);
+ //解析出来的sql
+ String parseSql = genericTokenParser.parse(sql);
+ //#{}里面解析出来的参数名称
+ List parameterMappings = parameterMappingTokenHandler.getParameterMappings();
+
+ BoundSql boundSql = new BoundSql(parseSql, parameterMappings);
+ return boundSql;
+ }
+
+ private PreparedStatement getPrepareStatement(Configuration conf, MappedStatement mappedStatement) throws Exception {
+ Connection connection = conf.getDataSource().getConnection();
+ String sql = mappedStatement.getSql();
+ BoundSql boundSql = getBoundSql(sql);
+ return connection.prepareStatement(boundSql.getSqlText());
+
+ }
+
+ private void setParam(PreparedStatement preparedStatement,
+ MappedStatement mappedStatement,
+ Object ...params) throws Exception {
+ String parameterType = mappedStatement.getParameterType();
+ Class> parametertypeClass = getClassType(parameterType);
+
+ String sql = mappedStatement.getSql();
+ BoundSql boundSql = getBoundSql(sql);
+ List parameterMappingList = boundSql.getParameterMappingList();
+ for (int i = 0; i < parameterMappingList.size(); i++) {
+ ParameterMapping parameterMapping = parameterMappingList.get(i);
+ String content = parameterMapping.getContent();
+ //反射
+ Field declaredField = parametertypeClass.getDeclaredField(content);
+ //暴力访问
+ declaredField.setAccessible(true);
+ Object o = declaredField.get(params[0]);
+
+ preparedStatement.setObject(i + 1, o);
+ }
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/utils/GenericTokenParser.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/utils/GenericTokenParser.java"
new file mode 100644
index 0000000000000000000000000000000000000000..d92cd5e42b3615574873c60a10c4386f49613e35
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/utils/GenericTokenParser.java"
@@ -0,0 +1,102 @@
+/**
+ * Copyright 2009-2017 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.lagou.utils;
+
+/**
+ * @author Clinton Begin
+ */
+public class GenericTokenParser {
+
+ private final String openToken; //开始标记
+ private final String closeToken; //结束标记
+ private final TokenHandler handler; //标记处理器
+
+ public GenericTokenParser(String openToken, String closeToken, TokenHandler handler) {
+ this.openToken = openToken;
+ this.closeToken = closeToken;
+ this.handler = handler;
+ }
+
+ /**
+ * 解析${}和#{}
+ * @param text
+ * @return
+ * 该方法主要实现了配置文件、脚本等片段中占位符的解析、处理工作,并返回最终需要的数据。
+ * 其中,解析工作由该方法完成,处理工作是由处理器handler的handleToken()方法来实现
+ */
+ public String parse(String text) {
+ // 验证参数问题,如果是null,就返回空字符串。
+ if (text == null || text.isEmpty()) {
+ return "";
+ }
+
+ // 下面继续验证是否包含开始标签,如果不包含,默认不是占位符,直接原样返回即可,否则继续执行。
+ int start = text.indexOf(openToken, 0);
+ if (start == -1) {
+ return text;
+ }
+
+ // 把text转成字符数组src,并且定义默认偏移量offset=0、存储最终需要返回字符串的变量builder,
+ // text变量中占位符对应的变量名expression。判断start是否大于-1(即text中是否存在openToken),如果存在就执行下面代码
+ char[] src = text.toCharArray();
+ int offset = 0;
+ final StringBuilder builder = new StringBuilder();
+ StringBuilder expression = null;
+ while (start > -1) {
+ // 判断如果开始标记前如果有转义字符,就不作为openToken进行处理,否则继续处理
+ if (start > 0 && src[start - 1] == '\\') {
+ builder.append(src, offset, start - offset - 1).append(openToken);
+ offset = start + openToken.length();
+ } else {
+ //重置expression变量,避免空指针或者老数据干扰。
+ if (expression == null) {
+ expression = new StringBuilder();
+ } else {
+ expression.setLength(0);
+ }
+ builder.append(src, offset, start - offset);
+ offset = start + openToken.length();
+ int end = text.indexOf(closeToken, offset);
+ while (end > -1) {////存在结束标记时
+ if (end > offset && src[end - 1] == '\\') {//如果结束标记前面有转义字符时
+ // this close token is escaped. remove the backslash and continue.
+ expression.append(src, offset, end - offset - 1).append(closeToken);
+ offset = end + closeToken.length();
+ end = text.indexOf(closeToken, offset);
+ } else {//不存在转义字符,即需要作为参数进行处理
+ expression.append(src, offset, end - offset);
+ offset = end + closeToken.length();
+ break;
+ }
+ }
+ if (end == -1) {
+ // close token was not found.
+ builder.append(src, start, src.length - start);
+ offset = src.length;
+ } else {
+ //首先根据参数的key(即expression)进行参数处理,返回?作为占位符
+ builder.append(handler.handleToken(expression.toString()));
+ offset = end + closeToken.length();
+ }
+ }
+ start = text.indexOf(openToken, offset);
+ }
+ if (offset < src.length) {
+ builder.append(src, offset, src.length - offset);
+ }
+ return builder.toString();
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/utils/ParameterMapping.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/utils/ParameterMapping.java"
new file mode 100644
index 0000000000000000000000000000000000000000..6011f809f03ac431ce9790f80f2c76e863c764c1
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/utils/ParameterMapping.java"
@@ -0,0 +1,18 @@
+package com.lagou.utils;
+
+public class ParameterMapping {
+
+ private String content;
+
+ public ParameterMapping(String content) {
+ this.content = content;
+ }
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/utils/ParameterMappingTokenHandler.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/utils/ParameterMappingTokenHandler.java"
new file mode 100644
index 0000000000000000000000000000000000000000..ea32bf016a60a4449da3ed846ebcf42660daf382
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/utils/ParameterMappingTokenHandler.java"
@@ -0,0 +1,32 @@
+package com.lagou.utils;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+
+
+public class ParameterMappingTokenHandler implements TokenHandler {
+ private List parameterMappings = new ArrayList();
+
+ // context是参数名称 #{id} #{username}
+
+ public String handleToken(String content) {
+ parameterMappings.add(buildParameterMapping(content));
+ return "?";
+ }
+
+ private ParameterMapping buildParameterMapping(String content) {
+ ParameterMapping parameterMapping = new ParameterMapping(content);
+ return parameterMapping;
+ }
+
+ public List getParameterMappings() {
+ return parameterMappings;
+ }
+
+ public void setParameterMappings(List parameterMappings) {
+ this.parameterMappings = parameterMappings;
+ }
+
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/utils/TokenHandler.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/utils/TokenHandler.java"
new file mode 100644
index 0000000000000000000000000000000000000000..566d90bbc46534f1804eeb3d01d0797aa3f4cc63
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/src/main/java/com/lagou/utils/TokenHandler.java"
@@ -0,0 +1,24 @@
+/**
+ * Copyright 2009-2015 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.lagou.utils;
+
+/**
+ * @author Clinton Begin
+ */
+public interface TokenHandler {
+ String handleToken(String content);
+}
+
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/IPersistence-1.0-SNAPSHOT.jar" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/IPersistence-1.0-SNAPSHOT.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..2cb4961ba45ae337fb42853944490afb1e3e0679
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/IPersistence-1.0-SNAPSHOT.jar" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/config/BoundSql.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/config/BoundSql.class"
new file mode 100644
index 0000000000000000000000000000000000000000..e882eb8e6e2fef868656086791b63e4986c40c08
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/config/BoundSql.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/config/XMLConfigBuilder.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/config/XMLConfigBuilder.class"
new file mode 100644
index 0000000000000000000000000000000000000000..50498f6fc073d0e7ae7c8eb5b29e0c2466e89e49
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/config/XMLConfigBuilder.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/config/XMLMapperBuilder.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/config/XMLMapperBuilder.class"
new file mode 100644
index 0000000000000000000000000000000000000000..358d68456602bd5ffb6002d0ca4df5a712912947
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/config/XMLMapperBuilder.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/io/Resources.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/io/Resources.class"
new file mode 100644
index 0000000000000000000000000000000000000000..4bc15353fb23c00e479a035d19d812449d676410
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/io/Resources.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/pojo/Configuration.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/pojo/Configuration.class"
new file mode 100644
index 0000000000000000000000000000000000000000..be250380677010d2cf5fb7186492c94b8126484f
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/pojo/Configuration.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/pojo/MappedStatement.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/pojo/MappedStatement.class"
new file mode 100644
index 0000000000000000000000000000000000000000..8f0c785dab2df2860cedad75b0e5d7b2e74c4db4
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/pojo/MappedStatement.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/DefaultSqlSession$1.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/DefaultSqlSession$1.class"
new file mode 100644
index 0000000000000000000000000000000000000000..8e81e1f30311f9d3fcf6d9d15471a02a5cd2330c
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/DefaultSqlSession$1.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/DefaultSqlSession.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/DefaultSqlSession.class"
new file mode 100644
index 0000000000000000000000000000000000000000..6a12e63fc91f68ee81b9723e303fcb6573fb5122
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/DefaultSqlSession.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/DefaultSqlSessionFactory.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/DefaultSqlSessionFactory.class"
new file mode 100644
index 0000000000000000000000000000000000000000..3aeca6da0908259ccc27c4371fb2103366881084
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/DefaultSqlSessionFactory.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/Executor.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/Executor.class"
new file mode 100644
index 0000000000000000000000000000000000000000..2f12f94f9ed8f00807b1c693582cc1de75695147
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/Executor.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/SqlSession.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/SqlSession.class"
new file mode 100644
index 0000000000000000000000000000000000000000..8488f3ac2f5b89b6f779ca16d9974d066b4f2268
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/SqlSession.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/SqlSessionFactory.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/SqlSessionFactory.class"
new file mode 100644
index 0000000000000000000000000000000000000000..e8d6edc9440c1b82850e7391af5ce596423720e6
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/SqlSessionFactory.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/SqlSessionFactoryBuilder.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/SqlSessionFactoryBuilder.class"
new file mode 100644
index 0000000000000000000000000000000000000000..8b2b2fbc90cd747778d1a3b9bca12a6ce12e5825
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/SqlSessionFactoryBuilder.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/simpleExecutor.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/simpleExecutor.class"
new file mode 100644
index 0000000000000000000000000000000000000000..9c2bd2f0334e8dba3f1f84c6f68cdc8181095ecc
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/sqlSession/simpleExecutor.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/utils/GenericTokenParser.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/utils/GenericTokenParser.class"
new file mode 100644
index 0000000000000000000000000000000000000000..d51ea6d8b1b7505563e6ebfd89ca49291bf8e32e
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/utils/GenericTokenParser.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/utils/ParameterMapping.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/utils/ParameterMapping.class"
new file mode 100644
index 0000000000000000000000000000000000000000..a66062b533f267be9ea0d876ac8d3548b6411440
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/utils/ParameterMapping.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/utils/ParameterMappingTokenHandler.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/utils/ParameterMappingTokenHandler.class"
new file mode 100644
index 0000000000000000000000000000000000000000..f7b67cdc67434b478ef99e98e69187c6ad4eb179
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/utils/ParameterMappingTokenHandler.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/utils/TokenHandler.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/utils/TokenHandler.class"
new file mode 100644
index 0000000000000000000000000000000000000000..6b39d67169acb9a7ffcf1920781d99838b816b6a
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/classes/com/lagou/utils/TokenHandler.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/maven-archiver/pom.properties" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/maven-archiver/pom.properties"
new file mode 100644
index 0000000000000000000000000000000000000000..b27b6253f9ee144df88d48e9ba689eaf885f1ef5
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/maven-archiver/pom.properties"
@@ -0,0 +1,5 @@
+#Generated by Maven
+#Sun Jan 16 19:45:53 CST 2022
+version=1.0-SNAPSHOT
+groupId=com.lagou
+artifactId=IPersistence
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst"
new file mode 100644
index 0000000000000000000000000000000000000000..2175a4afa938911128b2071e29cc4aa2c633712b
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst"
@@ -0,0 +1,18 @@
+com\lagou\sqlSession\SqlSessionFactoryBuilder.class
+com\lagou\utils\TokenHandler.class
+com\lagou\sqlSession\Executor.class
+com\lagou\config\XMLConfigBuilder.class
+com\lagou\io\Resources.class
+com\lagou\sqlSession\DefaultSqlSession$1.class
+com\lagou\sqlSession\SqlSessionFactory.class
+com\lagou\config\BoundSql.class
+com\lagou\utils\GenericTokenParser.class
+com\lagou\config\XMLMapperBuilder.class
+com\lagou\pojo\MappedStatement.class
+com\lagou\sqlSession\simpleExecutor.class
+com\lagou\sqlSession\SqlSession.class
+com\lagou\pojo\Configuration.class
+com\lagou\utils\ParameterMapping.class
+com\lagou\sqlSession\DefaultSqlSessionFactory.class
+com\lagou\sqlSession\DefaultSqlSession.class
+com\lagou\utils\ParameterMappingTokenHandler.class
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst"
new file mode 100644
index 0000000000000000000000000000000000000000..d2779410c828dfa8e1393ff6b0a8ebe83cc53114
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst"
@@ -0,0 +1,17 @@
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence\src\main\java\com\lagou\config\XMLConfigBuilder.java
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence\src\main\java\com\lagou\pojo\Configuration.java
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence\src\main\java\com\lagou\sqlSession\Executor.java
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence\src\main\java\com\lagou\utils\GenericTokenParser.java
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence\src\main\java\com\lagou\utils\ParameterMapping.java
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence\src\main\java\com\lagou\config\BoundSql.java
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence\src\main\java\com\lagou\io\Resources.java
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence\src\main\java\com\lagou\pojo\MappedStatement.java
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence\src\main\java\com\lagou\utils\TokenHandler.java
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence\src\main\java\com\lagou\sqlSession\SqlSessionFactory.java
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence\src\main\java\com\lagou\config\XMLMapperBuilder.java
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence\src\main\java\com\lagou\sqlSession\simpleExecutor.java
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence\src\main\java\com\lagou\utils\ParameterMappingTokenHandler.java
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence\src\main\java\com\lagou\sqlSession\SqlSession.java
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence\src\main\java\com\lagou\sqlSession\DefaultSqlSession.java
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence\src\main\java\com\lagou\sqlSession\SqlSessionFactoryBuilder.java
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence\src\main\java\com\lagou\sqlSession\DefaultSqlSessionFactory.java
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst"
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/.idea/compiler.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/.idea/compiler.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..d26285dfce4603b737bcbee3938cc2d9fc6f4122
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/.idea/compiler.xml"
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/.idea/encodings.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/.idea/encodings.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..bedc286d12fba671cc71d1437c102775cd4d5d8b
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/.idea/encodings.xml"
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/.idea/misc.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/.idea/misc.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..5a3ad70ac3a12d0581988c9620319898331f6249
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/.idea/misc.xml"
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/.idea/uiDesigner.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/.idea/uiDesigner.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..e96534fb27b68192f27f985d3879e173ec77adb8
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/.idea/uiDesigner.xml"
@@ -0,0 +1,124 @@
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/.idea/workspace.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/.idea/workspace.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..449e03c87870b67566818203ca8c644de93e1a1a
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/.idea/workspace.xml"
@@ -0,0 +1,186 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1575807761916
+
+
+ 1575807761916
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/IPersistence_test.iml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/IPersistence_test.iml"
new file mode 100644
index 0000000000000000000000000000000000000000..350a9e5dad9226be4220073a273f2a9d549050b8
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/IPersistence_test.iml"
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/pom.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/pom.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..9b3eb44fd1e5a956808b3449ea9d7b6ee878651f
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/pom.xml"
@@ -0,0 +1,42 @@
+
+
+ 4.0.0
+
+ com.lagou
+ IPersistence_test
+ 1.0-SNAPSHOT
+
+
+ UTF-8
+ UTF-8
+ 1.8
+ 1.8
+ 1.8
+
+
+
+
+
+ com.lagou
+ IPersistence
+ 1.0-SNAPSHOT
+
+
+ junit
+ junit
+ 4.12
+ compile
+
+
+ junit
+ junit
+ 4.12
+ compile
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/src/main/java/com/lagou/dao/IUserDao.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/src/main/java/com/lagou/dao/IUserDao.java"
new file mode 100644
index 0000000000000000000000000000000000000000..c5b0017581034bed88809007591d344471fe131f
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/src/main/java/com/lagou/dao/IUserDao.java"
@@ -0,0 +1,22 @@
+package com.lagou.dao;
+
+import com.lagou.pojo.User;
+
+import java.util.List;
+
+public interface IUserDao {
+
+ //查询所有用户
+ public List findAll() throws Exception;
+
+
+ //根据条件进行用户查询
+ public User findByCondition(User user) throws Exception;
+
+ public int insert(User user) throws Exception;
+
+ public int update(User user) throws Exception;
+
+ public int delete(User user) throws Exception;
+
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/src/main/java/com/lagou/pojo/User.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/src/main/java/com/lagou/pojo/User.java"
new file mode 100644
index 0000000000000000000000000000000000000000..c54219ed2a139bed3d54722a195877e609b997f3
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/src/main/java/com/lagou/pojo/User.java"
@@ -0,0 +1,32 @@
+package com.lagou.pojo;
+
+public class User {
+
+ private Integer id;
+ private String username;
+
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getUsername() {
+ return username;
+ }
+
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
+ @Override
+ public String toString() {
+ return "User{" +
+ "id=" + id +
+ ", username='" + username + '\'' +
+ '}';
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/src/main/java/com/lagou/test/IPersistenceTest.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/src/main/java/com/lagou/test/IPersistenceTest.java"
new file mode 100644
index 0000000000000000000000000000000000000000..769b7a870be021404a09d8d9b777122ca1f5e2cb
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/src/main/java/com/lagou/test/IPersistenceTest.java"
@@ -0,0 +1,59 @@
+package com.lagou.test;
+
+import com.lagou.dao.IUserDao;
+import com.lagou.io.Resources;
+import com.lagou.pojo.User;
+import com.lagou.sqlSession.SqlSession;
+import com.lagou.sqlSession.SqlSessionFactory;
+import com.lagou.sqlSession.SqlSessionFactoryBuilder;
+import com.mchange.v2.c3p0.ComboPooledDataSource;
+import org.junit.Test;
+
+import java.io.InputStream;
+import java.sql.Connection;
+import java.sql.PreparedStatement;
+import java.util.List;
+
+public class IPersistenceTest {
+
+ @Test
+ public void test() throws Exception {
+ InputStream resourceAsSteam = Resources.getResourceAsSteam("sqlMapConfig.xml");
+ SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(resourceAsSteam);
+ SqlSession sqlSession = sqlSessionFactory.openSession();
+
+ //调用
+
+
+ IUserDao userDao = sqlSession.getMapper(IUserDao.class);
+ List all = userDao.findAll();
+ System.out.println("before operation, the data is: ");
+ for (User user1 : all) {
+ System.out.println(user1);
+ }
+ User user3 = new User();
+ user3.setId(3);
+ userDao.delete(user3);
+
+ User user = new User();
+ user.setId(2);
+ user.setUsername("2号");
+ userDao.insert(user);
+ all = userDao.findAll();
+ System.out.println("after delete and insert, the data is: ");
+ for (User user1 : all) {
+ System.out.println(user1);
+ }
+ User updateUser = new User();
+ updateUser.setId(1);
+ updateUser.setUsername("3号");
+ userDao.update(updateUser);
+ System.out.println("in the end, the data is: ");
+ for (User user1 : all) {
+ System.out.println(user1);
+ }
+
+ }
+
+
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/src/main/resources/ProductMapper.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/src/main/resources/ProductMapper.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..33ca46a01511d339808cd970d435e3ca4079afee
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/src/main/resources/ProductMapper.xml"
@@ -0,0 +1,25 @@
+
+
+
+ select * from product
+
+
+
+
+ select * from product where id = ? and username = ?
+
+
+
+ insert into user(id,user_name) values
+ (#{id},#{userName})
+
+
+
+ update user set user_name = #{userName}
+ where id = #{id}
+
+
+
+ delete from user where id=#{id}
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/src/main/resources/UserMapper.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/src/main/resources/UserMapper.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..2461ced91c1dc5ef925bb41f2f1a46ee46320e12
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/src/main/resources/UserMapper.xml"
@@ -0,0 +1,28 @@
+
+
+
+
+ select * from user
+
+
+
+ select * from user where id = #{id} and username = #{username}
+
+
+
+ insert into user(id,username) values
+ (#{id}, #{username})
+
+
+
+ update user set
+ username = #{username}
+ where id=#{id}
+
+
+
+ delete from user where id = #{id}
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/src/main/resources/sqlMapConfig.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/src/main/resources/sqlMapConfig.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..00d76ec16e241f52a2b59c33b58b792e666d60e0
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/src/main/resources/sqlMapConfig.xml"
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/IPersistence_test-1.0-SNAPSHOT.jar" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/IPersistence_test-1.0-SNAPSHOT.jar"
new file mode 100644
index 0000000000000000000000000000000000000000..5702cfb6f4a9594733041e75c91eebb0a7fc0a03
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/IPersistence_test-1.0-SNAPSHOT.jar" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/classes/ProductMapper.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/classes/ProductMapper.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..33ca46a01511d339808cd970d435e3ca4079afee
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/classes/ProductMapper.xml"
@@ -0,0 +1,25 @@
+
+
+
+ select * from product
+
+
+
+
+ select * from product where id = ? and username = ?
+
+
+
+ insert into user(id,user_name) values
+ (#{id},#{userName})
+
+
+
+ update user set user_name = #{userName}
+ where id = #{id}
+
+
+
+ delete from user where id=#{id}
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/classes/UserMapper.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/classes/UserMapper.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..2461ced91c1dc5ef925bb41f2f1a46ee46320e12
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/classes/UserMapper.xml"
@@ -0,0 +1,28 @@
+
+
+
+
+ select * from user
+
+
+
+ select * from user where id = #{id} and username = #{username}
+
+
+
+ insert into user(id,username) values
+ (#{id}, #{username})
+
+
+
+ update user set
+ username = #{username}
+ where id=#{id}
+
+
+
+ delete from user where id = #{id}
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/classes/com/lagou/dao/IUserDao.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/classes/com/lagou/dao/IUserDao.class"
new file mode 100644
index 0000000000000000000000000000000000000000..f0e014aafb9fda594daf85a3ac0c47c0c395e07e
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/classes/com/lagou/dao/IUserDao.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/classes/com/lagou/pojo/User.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/classes/com/lagou/pojo/User.class"
new file mode 100644
index 0000000000000000000000000000000000000000..4e417303fb39d55b901b361e19828dec73299026
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/classes/com/lagou/pojo/User.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/classes/com/lagou/test/IPersistenceTest.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/classes/com/lagou/test/IPersistenceTest.class"
new file mode 100644
index 0000000000000000000000000000000000000000..05d7f6a4100bbf02575918f58dedfb73205282b0
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/classes/com/lagou/test/IPersistenceTest.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/classes/sqlMapConfig.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/classes/sqlMapConfig.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..00d76ec16e241f52a2b59c33b58b792e666d60e0
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/classes/sqlMapConfig.xml"
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/maven-archiver/pom.properties" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/maven-archiver/pom.properties"
new file mode 100644
index 0000000000000000000000000000000000000000..36bdc1c45951627c2b7e050765d5d1d3ba95e775
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/maven-archiver/pom.properties"
@@ -0,0 +1,5 @@
+#Generated by Maven
+#Sat Jan 08 17:56:41 CST 2022
+version=1.0-SNAPSHOT
+groupId=com.lagou
+artifactId=IPersistence_test
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst"
new file mode 100644
index 0000000000000000000000000000000000000000..d343e643383b7c06034f9154b633811d9f8bfc66
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst"
@@ -0,0 +1,3 @@
+com\lagou\test\IPersistenceTest.class
+com\lagou\dao\IUserDao.class
+com\lagou\pojo\User.class
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst"
new file mode 100644
index 0000000000000000000000000000000000000000..4e36632ec5b94d6a9fc8215fc595b2edf943a115
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst"
@@ -0,0 +1,3 @@
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence_test\src\main\java\com\lagou\pojo\User.java
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence_test\src\main\java\com\lagou\dao\IUserDao.java
+D:\Documents\Downloads\Documents\拉勾\Mybatis\mybatis-2021\mybatis相关代码\IPersistence_test\src\main\java\com\lagou\test\IPersistenceTest.java
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/code/IPersistence_test/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst"
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/\351\252\214\350\257\201\350\265\204\346\226\231/20220117_223104.mp4" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/\351\252\214\350\257\201\350\265\204\346\226\231/20220117_223104.mp4"
new file mode 100644
index 0000000000000000000000000000000000000000..262073ee18f0b0add6c159ee3d9d21a617e4992d
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\200/\351\252\214\350\257\201\350\265\204\346\226\231/20220117_223104.mp4" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.DS_Store" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.DS_Store"
new file mode 100644
index 0000000000000000000000000000000000000000..da7db1a3535f1fbb8182317780bc7f7d507de18b
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.DS_Store" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/.gitignore" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/.gitignore"
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/artifacts/mvc_war.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/artifacts/mvc_war.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..04f872483cc5f82ee52ba11e98921964c2342b35
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/artifacts/mvc_war.xml"
@@ -0,0 +1,14 @@
+
+
+ $PROJECT_DIR$/target
+
+
+ mvc
+ war
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/artifacts/mvc_war_exploded.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/artifacts/mvc_war_exploded.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..f2a279c676a206cdfd133d31c042b4fcb743588a
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/artifacts/mvc_war_exploded.xml"
@@ -0,0 +1,26 @@
+
+
+ $PROJECT_DIR$/target/mvc-1.0-SNAPSHOT
+
+
+ true
+ mvc
+ war
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/compiler.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/compiler.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..b9eee16a4bdaef9cb40d7cee34dbbc702426f402
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/compiler.xml"
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/encodings.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/encodings.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..aa00ffab7828f4818589659c804ec2cfd99baed3
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/encodings.xml"
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/jarRepositories.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/jarRepositories.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..712ab9d985c20018a0c97b93d2148ac1ffe588a5
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/jarRepositories.xml"
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..c24f7e308355dba395440a2fcc7bcdcf8976391a
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_1_0.xml"
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/libraries/Maven__junit_junit_4_12.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/libraries/Maven__junit_junit_4_12.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..d411041745b6e44356035cdd44538daca09388f6
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/libraries/Maven__junit_junit_4_12.xml"
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_9.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_9.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..9050e004ee154ca8d2c3a62c23a7dd9493252e85
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/libraries/Maven__org_apache_commons_commons_lang3_3_9.xml"
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..f58bbc11276f98bea2b6c82f21664c5a9f424fe3
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml"
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/misc.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/misc.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..af47a52a3b1fee545c6f2a67944e97c6996e333b
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/misc.xml"
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/modules.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/modules.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..793228f3f0faf09dd25fe1695d603ddcf818db3b
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/modules.xml"
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/uiDesigner.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/uiDesigner.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..e96534fb27b68192f27f985d3879e173ec77adb8
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/uiDesigner.xml"
@@ -0,0 +1,124 @@
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/workspace.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/workspace.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..9eed6bc9a960178e6d7ef0d850a6eb8b128d8b6c
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/.idea/workspace.xml"
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1648385272987
+
+
+ 1648385272987
+
+
+
+
+
+
+
+
+
+
+
+ file://$PROJECT_DIR$/src/main/java/com/lagou/edu/mvcframework/servlet/LgDispatcherServlet.java
+ 265
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/mvc.iml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/mvc.iml"
new file mode 100644
index 0000000000000000000000000000000000000000..0ab31986f835525bb0ef340a5cd6f05103bebd96
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/mvc.iml"
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/pom.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/pom.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..e6006e4bd1ec689d03ff449c864bd7260238a8cd
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/pom.xml"
@@ -0,0 +1,80 @@
+
+
+
+ 4.0.0
+
+ com.lagou.edu
+ mvc
+ 1.0-SNAPSHOT
+ war
+
+ mvc Maven Webapp
+
+ http://www.example.com
+
+
+ UTF-8
+ 11
+ 11
+
+
+
+
+ junit
+ junit
+ 4.12
+ test
+
+
+
+
+ javax.servlet
+ javax.servlet-api
+ 3.1.0
+ provided
+
+
+
+ org.apache.commons
+ commons-lang3
+ 3.9
+
+
+
+
+
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.1
+
+ 11
+ 11
+ utf-8
+
+
+ -parameters
+
+
+
+
+
+
+ org.apache.tomcat.maven
+ tomcat7-maven-plugin
+ 2.2
+
+ 8080
+ /
+
+
+
+
+
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/.DS_Store" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/.DS_Store"
new file mode 100644
index 0000000000000000000000000000000000000000..16166c099ea35682fd0eb21c313cda086951674e
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/.DS_Store" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/.DS_Store" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/.DS_Store"
new file mode 100644
index 0000000000000000000000000000000000000000..b85af2c68249a1b7c2a843b6246963e187045681
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/.DS_Store" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/demo/controller/DemoController.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/demo/controller/DemoController.java"
new file mode 100644
index 0000000000000000000000000000000000000000..53492cf6b89c9cc83421e207c3406fd8048be15c
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/demo/controller/DemoController.java"
@@ -0,0 +1,33 @@
+package com.lagou.demo.controller;
+
+import com.lagou.demo.service.IDemoService;
+import com.lagou.edu.mvcframework.annotations.LagouAutowired;
+import com.lagou.edu.mvcframework.annotations.LagouController;
+import com.lagou.edu.mvcframework.annotations.LagouRequestMapping;
+import com.lagou.edu.mvcframework.annotations.LagouSecurity;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+@LagouController
+@LagouRequestMapping("/demo")
+public class DemoController {
+
+
+ @LagouAutowired
+ private IDemoService demoService;
+
+
+ /**
+ * URL: /demo/query?name=lisi
+ * @param request
+ * @param response
+ * @param name
+ * @return
+ */
+ @LagouRequestMapping("/query")
+ @LagouSecurity("star")
+ public String query(HttpServletRequest request, HttpServletResponse response,String name) {
+ return demoService.get(name);
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/demo/service/IDemoService.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/demo/service/IDemoService.java"
new file mode 100644
index 0000000000000000000000000000000000000000..da4c5030fa3d2198bbb7fb259386a2e7da5f7058
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/demo/service/IDemoService.java"
@@ -0,0 +1,6 @@
+package com.lagou.demo.service;
+
+public interface IDemoService {
+
+ String get(String name);
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/demo/service/impl/DemoServiceImpl.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/demo/service/impl/DemoServiceImpl.java"
new file mode 100644
index 0000000000000000000000000000000000000000..c5c92fe9dd3e393b01b1bdef3d629bb8489bf7b4
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/demo/service/impl/DemoServiceImpl.java"
@@ -0,0 +1,13 @@
+package com.lagou.demo.service.impl;
+
+import com.lagou.demo.service.IDemoService;
+import com.lagou.edu.mvcframework.annotations.LagouService;
+
+@LagouService("demoService")
+public class DemoServiceImpl implements IDemoService {
+ @Override
+ public String get(String name) {
+ System.out.println("service 实现类中的name参数:" + name) ;
+ return name;
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/.DS_Store" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/.DS_Store"
new file mode 100644
index 0000000000000000000000000000000000000000..7cda54a8ded2a96b1d67393e71e0a29c719cb81d
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/.DS_Store" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouAutowired.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouAutowired.java"
new file mode 100644
index 0000000000000000000000000000000000000000..8e10a01777a18a48ff0902890b884f9b07db170d
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouAutowired.java"
@@ -0,0 +1,10 @@
+package com.lagou.edu.mvcframework.annotations;
+
+import java.lang.annotation.*;
+
+@Documented
+@Target(ElementType.FIELD)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface LagouAutowired {
+ String value() default "";
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouComponent.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouComponent.java"
new file mode 100644
index 0000000000000000000000000000000000000000..5982945eeab58cc96480f57e524081927e326a96
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouComponent.java"
@@ -0,0 +1,12 @@
+package com.lagou.edu.mvcframework.annotations;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Target(ElementType.TYPE)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface LagouComponent {
+ String value() default "";
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouController.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouController.java"
new file mode 100644
index 0000000000000000000000000000000000000000..5022b35e1e81fb3ad3a5d0e395f81c40eae6cf45
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouController.java"
@@ -0,0 +1,10 @@
+package com.lagou.edu.mvcframework.annotations;
+
+import java.lang.annotation.*;
+
+@Documented
+@Target(ElementType.TYPE)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface LagouController {
+ String value() default "";
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouRequestMapping.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouRequestMapping.java"
new file mode 100644
index 0000000000000000000000000000000000000000..f075c513973f5f06b17e71b971173595e2e96eaf
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouRequestMapping.java"
@@ -0,0 +1,10 @@
+package com.lagou.edu.mvcframework.annotations;
+
+import java.lang.annotation.*;
+
+@Documented
+@Target({ElementType.TYPE,ElementType.METHOD})
+@Retention(RetentionPolicy.RUNTIME)
+public @interface LagouRequestMapping {
+ String value() default "";
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouSecurity.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouSecurity.java"
new file mode 100644
index 0000000000000000000000000000000000000000..563b80a7d12d4a096e7a3bdfbd7b7f76a35dbe11
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouSecurity.java"
@@ -0,0 +1,12 @@
+package com.lagou.edu.mvcframework.annotations;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Target({ElementType.TYPE, ElementType.METHOD})
+@Retention(RetentionPolicy.RUNTIME)
+public @interface LagouSecurity {
+ String[] value() default {""};
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouService.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouService.java"
new file mode 100644
index 0000000000000000000000000000000000000000..c7214fc64214bfb4043d324f89c55faa1aa6f7c1
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouService.java"
@@ -0,0 +1,10 @@
+package com.lagou.edu.mvcframework.annotations;
+
+import java.lang.annotation.*;
+
+@Documented
+@Target(ElementType.TYPE)
+@Retention(RetentionPolicy.RUNTIME)
+public @interface LagouService {
+ String value() default "";
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/pojo/Filter.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/pojo/Filter.java"
new file mode 100644
index 0000000000000000000000000000000000000000..db2707258f7b4f36b474b56d3b62248b801e423d
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/pojo/Filter.java"
@@ -0,0 +1,5 @@
+package com.lagou.edu.mvcframework.pojo;
+
+public interface Filter {
+ Boolean doFilter();
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/pojo/Handler.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/pojo/Handler.java"
new file mode 100644
index 0000000000000000000000000000000000000000..77c4fb73c81172ab10cb4f6deb7021f0b58056d9
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/pojo/Handler.java"
@@ -0,0 +1,62 @@
+package com.lagou.edu.mvcframework.pojo;
+
+import javax.sound.midi.MetaEventListener;
+import java.lang.reflect.Method;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.regex.Pattern;
+
+
+/**
+ * 封装handler方法相关的信息
+ */
+public class Handler {
+
+ private Object controller; // method.invoke(obj,)
+
+ private Method method;
+
+ private Pattern pattern; // spring中url是支持正则的
+
+ private Map paramIndexMapping; // 参数顺序,是为了进行参数绑定,key是参数名,value代表是第几个参数
+
+
+ public Handler(Object controller, Method method, Pattern pattern) {
+ this.controller = controller;
+ this.method = method;
+ this.pattern = pattern;
+ this.paramIndexMapping = new HashMap<>();
+ }
+
+ public Object getController() {
+ return controller;
+ }
+
+ public void setController(Object controller) {
+ this.controller = controller;
+ }
+
+ public Method getMethod() {
+ return method;
+ }
+
+ public void setMethod(Method method) {
+ this.method = method;
+ }
+
+ public Pattern getPattern() {
+ return pattern;
+ }
+
+ public void setPattern(Pattern pattern) {
+ this.pattern = pattern;
+ }
+
+ public Map getParamIndexMapping() {
+ return paramIndexMapping;
+ }
+
+ public void setParamIndexMapping(Map paramIndexMapping) {
+ this.paramIndexMapping = paramIndexMapping;
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/pojo/SecurityFilter.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/pojo/SecurityFilter.java"
new file mode 100644
index 0000000000000000000000000000000000000000..dcf2f3f785dc7a524836ca8734129a1d7838f080
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/pojo/SecurityFilter.java"
@@ -0,0 +1,8 @@
+package com.lagou.edu.mvcframework.pojo;
+
+public class SecurityFilter implements Filter{
+
+ public Boolean doFilter(){
+ return true;
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/servlet/LgDispatcherServlet.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/servlet/LgDispatcherServlet.java"
new file mode 100644
index 0000000000000000000000000000000000000000..be6b5ceed35d945ab140dd5edd8fd702d75777c5
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/java/com/lagou/edu/mvcframework/servlet/LgDispatcherServlet.java"
@@ -0,0 +1,360 @@
+package com.lagou.edu.mvcframework.servlet;
+
+import com.lagou.demo.service.IDemoService;
+import com.lagou.edu.mvcframework.annotations.*;
+import com.lagou.edu.mvcframework.pojo.Handler;
+import org.apache.commons.lang3.StringUtils;
+
+import javax.servlet.ServletConfig;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.lang.reflect.Field;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.lang.reflect.Parameter;
+import java.util.*;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+public class LgDispatcherServlet extends HttpServlet {
+
+ private Properties properties = new Properties();
+
+ private List classNames = new ArrayList<>(); // 缓存扫描到的类的全限定类名
+ // ioc容器
+ private Map ioc = new HashMap();
+
+ // handlerMapping
+ //private Map handlerMapping = now HashMap<>(); // 存储url和Method之间的映射关系
+ private List handlerMapping = new ArrayList<>();
+
+ @Override
+ public void init(ServletConfig config) throws ServletException {
+ // 1 加载配置文件 springmvc.properties
+ String contextConfigLocation = config.getInitParameter("contextConfigLocation");
+ doLoadConfig(contextConfigLocation);
+
+ // 2 扫描相关的类,扫描注解
+ doScan(properties.getProperty("scanPackage"));
+
+ // 3 初始化bean对象(实现ioc容器,基于注解)
+ doInstance();
+
+ // 4 实现依赖注入
+ doAutoWired();
+
+ // 5 构造一个HandlerMapping处理器映射器,将配置好的url和Method建立映射关系
+ initHandlerMapping();
+
+ System.out.println("lagou mvc 初始化完成....");
+ // 等待请求进入,处理请求
+ }
+
+ /*
+ 构造一个HandlerMapping处理器映射器
+ 最关键的环节
+ 目的:将url和method建立关联
+ */
+ private void initHandlerMapping() {
+ if (ioc.isEmpty()) {
+ return;
+ }
+
+ for (Map.Entry entry : ioc.entrySet()) {
+ // 获取ioc中当前遍历的对象的class类型
+ Class> aClass = entry.getValue().getClass();
+
+ if (!aClass.isAnnotationPresent(LagouController.class)) {
+ continue;
+ }
+
+ String baseUrl = "";
+ if (aClass.isAnnotationPresent(LagouRequestMapping.class)) {
+ LagouRequestMapping annotation = aClass.getAnnotation(LagouRequestMapping.class);
+ baseUrl = annotation.value(); // 等同于/demo
+ }
+
+ // 获取方法
+ Method[] methods = aClass.getMethods();
+ for (int i = 0; i < methods.length; i++) {
+ Method method = methods[i];
+
+ // 方法没有标识LagouRequestMapping,就不处理
+ if (!method.isAnnotationPresent(LagouRequestMapping.class)) {
+ continue;
+ }
+
+ // 如果标识,就处理
+ LagouRequestMapping annotation = method.getAnnotation(LagouRequestMapping.class);
+ String methodUrl = annotation.value(); // /query
+ String url = baseUrl + methodUrl; // 计算出来的url /demo/query
+
+ // 把method所有信息及url封装为一个Handler
+ Handler handler = new Handler(entry.getValue(), method, Pattern.compile(url));
+
+ // 计算方法的参数位置信息 // query(HttpServletRequest request, HttpServletResponse response,String name)
+ Parameter[] parameters = method.getParameters();
+ for (int j = 0; j < parameters.length; j++) {
+ Parameter parameter = parameters[j];
+ if (parameter.getType() == HttpServletRequest.class || parameter.getType() == HttpServletResponse.class) {
+ // 如果是request和response对象,那么参数名称写HttpServletRequest和HttpServletResponse
+ handler.getParamIndexMapping().put(parameter.getType().getSimpleName(), j);
+ } else {
+ handler.getParamIndexMapping().put(parameter.getName(), j); //
+ }
+ }
+
+ // 建立url和method之间的映射关系(map缓存起来)
+ handlerMapping.add(handler);
+ }
+ }
+ }
+
+ // 实现依赖注入
+ private void doAutoWired() {
+ if (ioc.isEmpty()) {
+ return;
+ }
+ // 有对象,再进行依赖注入处理
+
+ // 遍历ioc中所有对象,查看对象中的字段,是否有@LagouAutowired注解,如果有需要维护依赖注入关系
+ for (Map.Entry entry : ioc.entrySet()) {
+ // 获取bean对象中的字段信息
+ Field[] declaredFields = entry.getValue().getClass().getDeclaredFields();
+ // 遍历判断处理
+ for (int i = 0; i < declaredFields.length; i++) {
+ Field declaredField = declaredFields[i]; // @LagouAutowired private IDemoService demoService;
+ if (!declaredField.isAnnotationPresent(LagouAutowired.class)) {
+ continue;
+ }
+ // 有该注解
+ LagouAutowired annotation = declaredField.getAnnotation(LagouAutowired.class);
+ String beanName = annotation.value(); // 需要注入的bean的id
+ if ("".equals(beanName.trim())) {
+ // 没有配置具体的bean id,那就需要根据当前字段类型注入(接口注入) IDemoService
+ beanName = declaredField.getType().getName();
+ }
+ // 开启赋值
+ declaredField.setAccessible(true);
+ try {
+ declaredField.set(entry.getValue(), ioc.get(beanName));
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ }
+ }
+ }
+ }
+
+ // ioc容器
+ // 基于classNames缓存的类的全限定类名,以及反射技术,完成对象创建和管理
+ private void doInstance() {
+
+ if (classNames.size() == 0)
+ return;
+ try {
+ for (int i = 0; i < classNames.size(); i++) {
+ String className = classNames.get(i); // com.lagou.demo.controller.DemoController
+
+ // 反射
+ Class> aClass = Class.forName(className);
+ // 区分controller,区分service'
+ if (aClass.isAnnotationPresent(LagouController.class)) {
+ // controller的id此处不做过多处理,不取value了,就拿类的首字母小写作为id,保存到ioc中
+ String simpleName = aClass.getSimpleName();// DemoController
+ String lowerFirstSimpleName = lowerFirst(simpleName); // demoController
+ Object o = aClass.newInstance();
+ ioc.put(lowerFirstSimpleName, o);
+ } else if (aClass.isAnnotationPresent(LagouService.class)) {
+ LagouService annotation = aClass.getAnnotation(LagouService.class);
+ //获取注解value值
+ String beanName = annotation.value();
+
+ // 如果指定了id,就以指定的为准
+ if (!"".equals(beanName.trim())) {
+ ioc.put(beanName, aClass.newInstance());
+ } else {
+ // 如果没有指定,就以类名首字母小写
+ beanName = lowerFirst(aClass.getSimpleName());
+ ioc.put(beanName, aClass.newInstance());
+ }
+
+ // service层往往是有接口的,面向接口开发,此时再以接口名为id,放入一份对象到ioc中,便于后期根据接口类型注入
+ Class>[] interfaces = aClass.getInterfaces();
+ for (int j = 0; j < interfaces.length; j++) {
+ Class> anInterface = interfaces[j];
+ // 以接口的全限定类名作为id放入
+ ioc.put(anInterface.getName(), aClass.newInstance());
+ }
+ } else if (aClass.isAnnotationPresent(LagouComponent.class)) {
+ LagouComponent annotation = aClass.getAnnotation(LagouComponent.class);
+ //获取注解value值
+ String beanName = annotation.value();
+ // 如果指定了id,就以指定的为准
+ if (!"".equals(beanName.trim())) {
+ ioc.put(beanName, aClass.newInstance());
+ } else {
+ // 如果没有指定,就以类名首字母小写
+ beanName = lowerFirst(aClass.getSimpleName());
+ ioc.put(beanName, aClass.newInstance());
+ }
+ } else {
+ continue;
+ }
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ // 首字母小写方法
+ public String lowerFirst(String str) {
+ char[] chars = str.toCharArray();
+ if ('A' <= chars[0] && chars[0] <= 'Z') {
+ chars[0] += 32;
+ }
+ return String.valueOf(chars);
+ }
+
+ // 扫描类
+ // scanPackage: com.lagou.demo package----> 磁盘上的文件夹(File) com/lagou/demo
+ private void doScan(String scanPackage) {
+ String scanPackagePath = Thread.currentThread().getContextClassLoader().getResource("").getPath() + scanPackage.replaceAll("\\.", "/");
+ File pack = new File(scanPackagePath);
+
+ File[] files = pack.listFiles();
+ for (File file : files) {
+ if (file.isDirectory()) { // 子package
+ // 递归
+ doScan(scanPackage + "." + file.getName()); // com.lagou.demo.controller
+ } else if (file.getName().endsWith(".class")) {
+ String className = scanPackage + "." + file.getName().replaceAll(".class", "");
+ classNames.add(className);
+ }
+ }
+ }
+
+ // 加载配置文件
+ private void doLoadConfig(String contextConfigLocation) {
+ InputStream resourceAsStream = this.getClass().getClassLoader().getResourceAsStream(contextConfigLocation);
+ try {
+ properties.load(resourceAsStream);
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+
+ @Override
+ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
+ doPost(req, resp);
+ }
+
+ @Override
+ protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
+ // 处理请求:根据url,找到对应的Method方法,进行调用
+ // 获取uri
+// String requestURI = req.getRequestURI();
+// Method method = handlerMapping.get(requestURI);// 获取到一个反射的方法
+ // 反射调用,需要传入对象,需要传入参数,此处无法完成调用,没有把对象缓存起来,也没有参数!!!!改造initHandlerMapping();
+// method.invoke() //
+
+ // 根据uri获取到能够处理当前请求的hanlder(从handlermapping中(list))
+ Handler handler = getHandler(req);
+ if (handler == null) {
+ resp.getWriter().write("404 not found");
+ return;
+ }
+
+ // 参数绑定
+ // 获取所有参数类型数组,这个数组的长度就是我们最后要传入的args数组的长度
+ Class>[] parameterTypes = handler.getMethod().getParameterTypes();
+ // 解释security注解
+
+ // 根据上述数组长度创建一个新的数组(参数数组,是要传入反射调用的)
+ Object[] paraValues = new Object[parameterTypes.length];
+
+ // 以下就是为了向参数数组中塞值,而且还得保证参数的顺序和方法中形参顺序一致
+ Map parameterMap = req.getParameterMap();
+
+ // 遍历request中所有参数 (填充除了request,response之外的参数)
+ for (Map.Entry param : parameterMap.entrySet()) {
+ // name=1&name=2 name [1,2]
+ String value = StringUtils.join(param.getValue(), ","); // 如同 1,2
+
+ // 如果参数和方法中的参数匹配上了,填充数据
+ if (!handler.getParamIndexMapping().containsKey(param.getKey())) {
+ continue;
+ }
+
+ // 方法形参确实有该参数,找到它的索引位置,对应的把参数值放入paraValues
+ Integer index = handler.getParamIndexMapping().get(param.getKey());//name在第 2 个位置
+ paraValues[index] = value; // 把前台传递过来的参数值填充到对应的位置去
+ }
+ if (!doFilter(handler, parameterMap)){
+ resp.getWriter().write("400 not allow");
+ return;
+ }
+ int requestIndex = handler.getParamIndexMapping().get(HttpServletRequest.class.getSimpleName()); // 0
+ paraValues[requestIndex] = req;
+
+ int responseIndex = handler.getParamIndexMapping().get(HttpServletResponse.class.getSimpleName()); // 1
+ paraValues[responseIndex] = resp;
+
+ // 最终调用handler的method属性
+ try {
+ handler.getMethod().invoke(handler.getController(), paraValues);
+ } catch (IllegalAccessException e) {
+ e.printStackTrace();
+ } catch (InvocationTargetException e) {
+ e.printStackTrace();
+ }
+ }
+
+ private Handler getHandler(HttpServletRequest req) {
+ if (handlerMapping.isEmpty()) {
+ return null;
+ }
+ String url = req.getRequestURI();
+
+ for (Handler handler : handlerMapping) {
+ Matcher matcher = handler.getPattern().matcher(url);
+ if (!matcher.matches()) {
+ continue;
+ }
+ return handler;
+ }
+
+ return null;
+ }
+
+ private Boolean doFilter(Handler handler,Map params) {
+ Object controller = handler.getController();
+ Class> clazz = controller.getClass();
+ Method methods = handler.getMethod();
+ if (clazz.isAnnotationPresent(LagouSecurity.class)
+ || methods.isAnnotationPresent(LagouSecurity.class)) {
+ try {
+ LagouSecurity securityAnn = clazz.getAnnotation(LagouSecurity.class);
+ if (securityAnn == null) {
+ securityAnn = handler.getMethod().getAnnotation(LagouSecurity.class);
+ if (securityAnn == null) {
+ return true;
+ }
+ }
+ String[] values = securityAnn.value();
+ String[] paramValue = params.get("userName");
+ if (paramValue[0].equals(values[0])) {
+ return true;
+ }
+ return false;
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ return true;
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/resources/springmvc.properties" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/resources/springmvc.properties"
new file mode 100644
index 0000000000000000000000000000000000000000..28e2b4697da4d45c40b38bf90f9bfc6bbb05dfd9
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/resources/springmvc.properties"
@@ -0,0 +1 @@
+scanPackage=com.lagou.demo
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/webapp/.DS_Store" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/webapp/.DS_Store"
new file mode 100644
index 0000000000000000000000000000000000000000..9f6ab8642660f7d5cc4690cf03b166006cb8482d
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/webapp/.DS_Store" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/webapp/WEB-INF/web.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/webapp/WEB-INF/web.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..b3de15423589bc64cd655b20ef49d2a5f038f774
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/webapp/WEB-INF/web.xml"
@@ -0,0 +1,22 @@
+
+
+
+ Archetype Created Web Application
+
+
+
+ lgoumvc
+ com.lagou.edu.mvcframework.servlet.LgDispatcherServlet
+
+ contextConfigLocation
+ springmvc.properties
+
+
+
+
+ lgoumvc
+ /*
+
+
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/webapp/index.jsp" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/webapp/index.jsp"
new file mode 100644
index 0000000000000000000000000000000000000000..c38169bb958579c635a5c09ee2f379cc5956c0c2
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/src/main/webapp/index.jsp"
@@ -0,0 +1,5 @@
+
+
+Hello World!
+
+
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/demo/controller/DemoController.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/demo/controller/DemoController.class"
new file mode 100644
index 0000000000000000000000000000000000000000..73c95f3492b1c318d8e17995da07df6d7fa74669
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/demo/controller/DemoController.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/demo/service/IDemoService.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/demo/service/IDemoService.class"
new file mode 100644
index 0000000000000000000000000000000000000000..94fce79468a9d4a8e6e0033bae07f3c28feb15e7
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/demo/service/IDemoService.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/demo/service/impl/DemoServiceImpl.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/demo/service/impl/DemoServiceImpl.class"
new file mode 100644
index 0000000000000000000000000000000000000000..67ef90e30f39d884df23574a6fa180b1e6240c8c
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/demo/service/impl/DemoServiceImpl.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/annotations/LagouAutowired.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/annotations/LagouAutowired.class"
new file mode 100644
index 0000000000000000000000000000000000000000..e6fc381f24b8bc6caf8c9148ac609fb417437143
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/annotations/LagouAutowired.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/annotations/LagouComponent.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/annotations/LagouComponent.class"
new file mode 100644
index 0000000000000000000000000000000000000000..037f1514bf649c69ba6872d06d18b8f2f8639260
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/annotations/LagouComponent.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/annotations/LagouController.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/annotations/LagouController.class"
new file mode 100644
index 0000000000000000000000000000000000000000..b115749e163e656d5e2e70b65ca4bf80b121d6bd
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/annotations/LagouController.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/annotations/LagouRequestMapping.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/annotations/LagouRequestMapping.class"
new file mode 100644
index 0000000000000000000000000000000000000000..4363e2f8c23d89beacba8e27da62bf4f98b2b7a1
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/annotations/LagouRequestMapping.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/annotations/LagouSecurity.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/annotations/LagouSecurity.class"
new file mode 100644
index 0000000000000000000000000000000000000000..971d61ddd98586fd996103e458b650f122416a26
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/annotations/LagouSecurity.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/annotations/LagouService.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/annotations/LagouService.class"
new file mode 100644
index 0000000000000000000000000000000000000000..1dd37af61fe67964bd8c0a670d71edb25595c9f8
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/annotations/LagouService.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/pojo/Filter.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/pojo/Filter.class"
new file mode 100644
index 0000000000000000000000000000000000000000..7e61dcb5d18a994e6cd074ad03ed67621f03e97d
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/pojo/Filter.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/pojo/Handler.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/pojo/Handler.class"
new file mode 100644
index 0000000000000000000000000000000000000000..7513e7613dba37f0889358b3f9339972e099e9e5
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/pojo/Handler.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/pojo/SecurityFilter.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/pojo/SecurityFilter.class"
new file mode 100644
index 0000000000000000000000000000000000000000..72891d14a2af3bc7fd01505519fe52d8dedfa721
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/pojo/SecurityFilter.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/servlet/LgDispatcherServlet.class" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/servlet/LgDispatcherServlet.class"
new file mode 100644
index 0000000000000000000000000000000000000000..9f15da82b2191b7cbc3d685b8ebc078908128c5a
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/com/lagou/edu/mvcframework/servlet/LgDispatcherServlet.class" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/springmvc.properties" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/springmvc.properties"
new file mode 100644
index 0000000000000000000000000000000000000000..28e2b4697da4d45c40b38bf90f9bfc6bbb05dfd9
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/classes/springmvc.properties"
@@ -0,0 +1 @@
+scanPackage=com.lagou.demo
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst"
new file mode 100644
index 0000000000000000000000000000000000000000..d64910002d0ca8f1f5e9371ab4592c45d5e01a74
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst"
@@ -0,0 +1,13 @@
+com\lagou\edu\mvcframework\annotations\LagouComponent.class
+com\lagou\edu\mvcframework\pojo\SecurityFilter.class
+com\lagou\edu\mvcframework\annotations\LagouController.class
+com\lagou\edu\mvcframework\annotations\LagouService.class
+com\lagou\demo\service\IDemoService.class
+com\lagou\demo\controller\DemoController.class
+com\lagou\edu\mvcframework\pojo\Filter.class
+com\lagou\edu\mvcframework\servlet\LgDispatcherServlet.class
+com\lagou\edu\mvcframework\annotations\LagouAutowired.class
+com\lagou\edu\mvcframework\annotations\LagouRequestMapping.class
+com\lagou\demo\service\impl\DemoServiceImpl.class
+com\lagou\edu\mvcframework\annotations\LagouSecurity.class
+com\lagou\edu\mvcframework\pojo\Handler.class
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst"
new file mode 100644
index 0000000000000000000000000000000000000000..5be90f83b2a536f341d0ae58134d4ffb96cdcca2
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst"
@@ -0,0 +1,9 @@
+/Users/yingdian/workspace/idea/lagou-java/mvc/src/main/java/com/lagou/edu/mvcframework/servlet/LgDispatcherServlet.java
+/Users/yingdian/workspace/idea/lagou-java/mvc/src/main/java/com/lagou/demo/controller/DemoController.java
+/Users/yingdian/workspace/idea/lagou-java/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouService.java
+/Users/yingdian/workspace/idea/lagou-java/mvc/src/main/java/com/lagou/demo/service/impl/DemoServiceImpl.java
+/Users/yingdian/workspace/idea/lagou-java/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouRequestMapping.java
+/Users/yingdian/workspace/idea/lagou-java/mvc/src/main/java/com/lagou/edu/mvcframework/pojo/Handler.java
+/Users/yingdian/workspace/idea/lagou-java/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouController.java
+/Users/yingdian/workspace/idea/lagou-java/mvc/src/main/java/com/lagou/demo/service/IDemoService.java
+/Users/yingdian/workspace/idea/lagou-java/mvc/src/main/java/com/lagou/edu/mvcframework/annotations/LagouAutowired.java
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/tomcat/conf/logging.properties" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/tomcat/conf/logging.properties"
new file mode 100644
index 0000000000000000000000000000000000000000..76c9512b2c1b9690adaae447f598479f35ee7ebb
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/tomcat/conf/logging.properties"
@@ -0,0 +1,64 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
+
+.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
+
+############################################################
+# Handler specific properties.
+# Describes specific configuration info for Handlers.
+############################################################
+
+1catalina.org.apache.juli.FileHandler.level = FINE
+1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
+1catalina.org.apache.juli.FileHandler.prefix = catalina.
+
+2localhost.org.apache.juli.FileHandler.level = FINE
+2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
+2localhost.org.apache.juli.FileHandler.prefix = localhost.
+
+3manager.org.apache.juli.FileHandler.level = FINE
+3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
+3manager.org.apache.juli.FileHandler.prefix = manager.
+
+4host-manager.org.apache.juli.FileHandler.level = FINE
+4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
+4host-manager.org.apache.juli.FileHandler.prefix = host-manager.
+
+java.util.logging.ConsoleHandler.level = FINE
+java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
+
+
+############################################################
+# Facility specific properties.
+# Provides extra control for each logger.
+############################################################
+
+org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
+org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler
+
+org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO
+org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler
+
+org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO
+org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler
+
+# For example, set the org.apache.catalina.util.LifecycleBase logger to log
+# each component that extends LifecycleBase changing state:
+#org.apache.catalina.util.LifecycleBase.level = FINE
+
+# To see debug messages in TldLocationsCache, uncomment the following line:
+#org.apache.jasper.compiler.TldLocationsCache.level = FINE
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/tomcat/conf/tomcat-users.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/tomcat/conf/tomcat-users.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..7114f5d1a513080c465178862bab02e1aab035ed
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/tomcat/conf/tomcat-users.xml"
@@ -0,0 +1,26 @@
+
+
+
+
+
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/tomcat/conf/web.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/tomcat/conf/web.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..cc8383cbf46534c3025e003854e5a03e257b6b40
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/tomcat/conf/web.xml"
@@ -0,0 +1,4283 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ default
+ org.apache.catalina.servlets.DefaultServlet
+
+ debug
+ 0
+
+
+ listings
+ false
+
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ jsp
+ org.apache.jasper.servlet.JspServlet
+
+ fork
+ false
+
+
+ xpoweredBy
+ false
+
+ 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ default
+ /
+
+
+
+
+ jsp
+ *.jsp
+ *.jspx
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 30
+
+
+
+
+
+
+
+
+
+
+
+ 123
+ application/vnd.lotus-1-2-3
+
+
+ 3dml
+ text/vnd.in3d.3dml
+
+
+ 3g2
+ video/3gpp2
+
+
+ 3gp
+ video/3gpp
+
+
+ 7z
+ application/x-7z-compressed
+
+
+ aab
+ application/x-authorware-bin
+
+
+ aac
+ audio/x-aac
+
+
+ aam
+ application/x-authorware-map
+
+
+ aas
+ application/x-authorware-seg
+
+
+ abs
+ audio/x-mpeg
+
+
+ abw
+ application/x-abiword
+
+
+ ac
+ application/pkix-attr-cert
+
+
+ acc
+ application/vnd.americandynamics.acc
+
+
+ ace
+ application/x-ace-compressed
+
+
+ acu
+ application/vnd.acucobol
+
+
+ acutc
+ application/vnd.acucorp
+
+
+ adp
+ audio/adpcm
+
+
+ aep
+ application/vnd.audiograph
+
+
+ afm
+ application/x-font-type1
+
+
+ afp
+ application/vnd.ibm.modcap
+
+
+ ahead
+ application/vnd.ahead.space
+
+
+ ai
+ application/postscript
+
+
+ aif
+ audio/x-aiff
+
+
+ aifc
+ audio/x-aiff
+
+
+ aiff
+ audio/x-aiff
+
+
+ aim
+ application/x-aim
+
+
+ air
+ application/vnd.adobe.air-application-installer-package+zip
+
+
+ ait
+ application/vnd.dvb.ait
+
+
+ ami
+ application/vnd.amiga.ami
+
+
+ anx
+ application/annodex
+
+
+ apk
+ application/vnd.android.package-archive
+
+
+ application
+ application/x-ms-application
+
+
+ apr
+ application/vnd.lotus-approach
+
+
+ art
+ image/x-jg
+
+
+ asc
+ application/pgp-signature
+
+
+ asf
+ video/x-ms-asf
+
+
+ asm
+ text/x-asm
+
+
+ aso
+ application/vnd.accpac.simply.aso
+
+
+ asx
+ video/x-ms-asf
+
+
+ atc
+ application/vnd.acucorp
+
+
+ atom
+ application/atom+xml
+
+
+ atomcat
+ application/atomcat+xml
+
+
+ atomsvc
+ application/atomsvc+xml
+
+
+ atx
+ application/vnd.antix.game-component
+
+
+ au
+ audio/basic
+
+
+ avi
+ video/x-msvideo
+
+
+ avx
+ video/x-rad-screenplay
+
+
+ aw
+ application/applixware
+
+
+ axa
+ audio/annodex
+
+
+ axv
+ video/annodex
+
+
+ azf
+ application/vnd.airzip.filesecure.azf
+
+
+ azs
+ application/vnd.airzip.filesecure.azs
+
+
+ azw
+ application/vnd.amazon.ebook
+
+
+ bat
+ application/x-msdownload
+
+
+ bcpio
+ application/x-bcpio
+
+
+ bdf
+ application/x-font-bdf
+
+
+ bdm
+ application/vnd.syncml.dm+wbxml
+
+
+ bed
+ application/vnd.realvnc.bed
+
+
+ bh2
+ application/vnd.fujitsu.oasysprs
+
+
+ bin
+ application/octet-stream
+
+
+ bmi
+ application/vnd.bmi
+
+
+ bmp
+ image/bmp
+
+
+ body
+ text/html
+
+
+ book
+ application/vnd.framemaker
+
+
+ box
+ application/vnd.previewsystems.box
+
+
+ boz
+ application/x-bzip2
+
+
+ bpk
+ application/octet-stream
+
+
+ btif
+ image/prs.btif
+
+
+ bz
+ application/x-bzip
+
+
+ bz2
+ application/x-bzip2
+
+
+ c
+ text/x-c
+
+
+ c11amc
+ application/vnd.cluetrust.cartomobile-config
+
+
+ c11amz
+ application/vnd.cluetrust.cartomobile-config-pkg
+
+
+ c4d
+ application/vnd.clonk.c4group
+
+
+ c4f
+ application/vnd.clonk.c4group
+
+
+ c4g
+ application/vnd.clonk.c4group
+
+
+ c4p
+ application/vnd.clonk.c4group
+
+
+ c4u
+ application/vnd.clonk.c4group
+
+
+ cab
+ application/vnd.ms-cab-compressed
+
+
+ cap
+ application/vnd.tcpdump.pcap
+
+
+ car
+ application/vnd.curl.car
+
+
+ cat
+ application/vnd.ms-pki.seccat
+
+
+ cc
+ text/x-c
+
+
+ cct
+ application/x-director
+
+
+ ccxml
+ application/ccxml+xml
+
+
+ cdbcmsg
+ application/vnd.contact.cmsg
+
+
+ cdf
+ application/x-cdf
+
+
+ cdkey
+ application/vnd.mediastation.cdkey
+
+
+ cdmia
+ application/cdmi-capability
+
+
+ cdmic
+ application/cdmi-container
+
+
+ cdmid
+ application/cdmi-domain
+
+
+ cdmio
+ application/cdmi-object
+
+
+ cdmiq
+ application/cdmi-queue
+
+
+ cdx
+ chemical/x-cdx
+
+
+ cdxml
+ application/vnd.chemdraw+xml
+
+
+ cdy
+ application/vnd.cinderella
+
+
+ cer
+ application/pkix-cert
+
+
+ cgm
+ image/cgm
+
+
+ chat
+ application/x-chat
+
+
+ chm
+ application/vnd.ms-htmlhelp
+
+
+ chrt
+ application/vnd.kde.kchart
+
+
+ cif
+ chemical/x-cif
+
+
+ cii
+ application/vnd.anser-web-certificate-issue-initiation
+
+
+ cil
+ application/vnd.ms-artgalry
+
+
+ cla
+ application/vnd.claymore
+
+
+ class
+ application/java
+
+
+ clkk
+ application/vnd.crick.clicker.keyboard
+
+
+ clkp
+ application/vnd.crick.clicker.palette
+
+
+ clkt
+ application/vnd.crick.clicker.template
+
+
+ clkw
+ application/vnd.crick.clicker.wordbank
+
+
+ clkx
+ application/vnd.crick.clicker
+
+
+ clp
+ application/x-msclip
+
+
+ cmc
+ application/vnd.cosmocaller
+
+
+ cmdf
+ chemical/x-cmdf
+
+
+ cml
+ chemical/x-cml
+
+
+ cmp
+ application/vnd.yellowriver-custom-menu
+
+
+ cmx
+ image/x-cmx
+
+
+ cod
+ application/vnd.rim.cod
+
+
+ com
+ application/x-msdownload
+
+
+ conf
+ text/plain
+
+
+ cpio
+ application/x-cpio
+
+
+ cpp
+ text/x-c
+
+
+ cpt
+ application/mac-compactpro
+
+
+ crd
+ application/x-mscardfile
+
+
+ crl
+ application/pkix-crl
+
+
+ crt
+ application/x-x509-ca-cert
+
+
+ cryptonote
+ application/vnd.rig.cryptonote
+
+
+ csh
+ application/x-csh
+
+
+ csml
+ chemical/x-csml
+
+
+ csp
+ application/vnd.commonspace
+
+
+ css
+ text/css
+
+
+ cst
+ application/x-director
+
+
+ csv
+ text/csv
+
+
+ cu
+ application/cu-seeme
+
+
+ curl
+ text/vnd.curl
+
+
+ cww
+ application/prs.cww
+
+
+ cxt
+ application/x-director
+
+
+ cxx
+ text/x-c
+
+
+ dae
+ model/vnd.collada+xml
+
+
+ daf
+ application/vnd.mobius.daf
+
+
+ dataless
+ application/vnd.fdsn.seed
+
+
+ davmount
+ application/davmount+xml
+
+
+ dcr
+ application/x-director
+
+
+ dcurl
+ text/vnd.curl.dcurl
+
+
+ dd2
+ application/vnd.oma.dd2+xml
+
+
+ ddd
+ application/vnd.fujixerox.ddd
+
+
+ deb
+ application/x-debian-package
+
+
+ def
+ text/plain
+
+
+ deploy
+ application/octet-stream
+
+
+ der
+ application/x-x509-ca-cert
+
+
+ dfac
+ application/vnd.dreamfactory
+
+
+ dib
+ image/bmp
+
+
+ dic
+ text/x-c
+
+
+ dir
+ application/x-director
+
+
+ dis
+ application/vnd.mobius.dis
+
+
+ dist
+ application/octet-stream
+
+
+ distz
+ application/octet-stream
+
+
+ djv
+ image/vnd.djvu
+
+
+ djvu
+ image/vnd.djvu
+
+
+ dll
+ application/x-msdownload
+
+
+ dmg
+ application/octet-stream
+
+
+ dmp
+ application/vnd.tcpdump.pcap
+
+
+ dms
+ application/octet-stream
+
+
+ dna
+ application/vnd.dna
+
+
+ doc
+ application/msword
+
+
+ docm
+ application/vnd.ms-word.document.macroenabled.12
+
+
+ docx
+ application/vnd.openxmlformats-officedocument.wordprocessingml.document
+
+
+ dot
+ application/msword
+
+
+ dotm
+ application/vnd.ms-word.template.macroenabled.12
+
+
+ dotx
+ application/vnd.openxmlformats-officedocument.wordprocessingml.template
+
+
+ dp
+ application/vnd.osgi.dp
+
+
+ dpg
+ application/vnd.dpgraph
+
+
+ dra
+ audio/vnd.dra
+
+
+ dsc
+ text/prs.lines.tag
+
+
+ dssc
+ application/dssc+der
+
+
+ dtb
+ application/x-dtbook+xml
+
+
+ dtd
+ application/xml-dtd
+
+
+ dts
+ audio/vnd.dts
+
+
+ dtshd
+ audio/vnd.dts.hd
+
+
+ dump
+ application/octet-stream
+
+
+ dv
+ video/x-dv
+
+
+ dvb
+ video/vnd.dvb.file
+
+
+ dvi
+ application/x-dvi
+
+
+ dwf
+ model/vnd.dwf
+
+
+ dwg
+ image/vnd.dwg
+
+
+ dxf
+ image/vnd.dxf
+
+
+ dxp
+ application/vnd.spotfire.dxp
+
+
+ dxr
+ application/x-director
+
+
+ ecelp4800
+ audio/vnd.nuera.ecelp4800
+
+
+ ecelp7470
+ audio/vnd.nuera.ecelp7470
+
+
+ ecelp9600
+ audio/vnd.nuera.ecelp9600
+
+
+ ecma
+ application/ecmascript
+
+
+ edm
+ application/vnd.novadigm.edm
+
+
+ edx
+ application/vnd.novadigm.edx
+
+
+ efif
+ application/vnd.picsel
+
+
+ ei6
+ application/vnd.pg.osasli
+
+
+ elc
+ application/octet-stream
+
+
+ eml
+ message/rfc822
+
+
+ emma
+ application/emma+xml
+
+
+ eol
+ audio/vnd.digital-winds
+
+
+ eot
+ application/vnd.ms-fontobject
+
+
+ eps
+ application/postscript
+
+
+ epub
+ application/epub+zip
+
+
+ es3
+ application/vnd.eszigno3+xml
+
+
+ esf
+ application/vnd.epson.esf
+
+
+ et3
+ application/vnd.eszigno3+xml
+
+
+ etx
+ text/x-setext
+
+
+ exe
+ application/octet-stream
+
+
+ exi
+ application/exi
+
+
+ ext
+ application/vnd.novadigm.ext
+
+
+ ez
+ application/andrew-inset
+
+
+ ez2
+ application/vnd.ezpix-album
+
+
+ ez3
+ application/vnd.ezpix-package
+
+
+ f
+ text/x-fortran
+
+
+ f4v
+ video/x-f4v
+
+
+ f77
+ text/x-fortran
+
+
+ f90
+ text/x-fortran
+
+
+ fbs
+ image/vnd.fastbidsheet
+
+
+ fcs
+ application/vnd.isac.fcs
+
+
+ fdf
+ application/vnd.fdf
+
+
+ fe_launch
+ application/vnd.denovo.fcselayout-link
+
+
+ fg5
+ application/vnd.fujitsu.oasysgp
+
+
+ fgd
+ application/x-director
+
+
+ fh
+ image/x-freehand
+
+
+ fh4
+ image/x-freehand
+
+
+ fh5
+ image/x-freehand
+
+
+ fh7
+ image/x-freehand
+
+
+ fhc
+ image/x-freehand
+
+
+ fig
+ application/x-xfig
+
+
+ flac
+ audio/flac
+
+
+ fli
+ video/x-fli
+
+
+ flo
+ application/vnd.micrografx.flo
+
+
+ flv
+ video/x-flv
+
+
+ flw
+ application/vnd.kde.kivio
+
+
+ flx
+ text/vnd.fmi.flexstor
+
+
+ fly
+ text/vnd.fly
+
+
+ fm
+ application/vnd.framemaker
+
+
+ fnc
+ application/vnd.frogans.fnc
+
+
+ for
+ text/x-fortran
+
+
+ fpx
+ image/vnd.fpx
+
+
+ frame
+ application/vnd.framemaker
+
+
+ fsc
+ application/vnd.fsc.weblaunch
+
+
+ fst
+ image/vnd.fst
+
+
+ ftc
+ application/vnd.fluxtime.clip
+
+
+ fti
+ application/vnd.anser-web-funds-transfer-initiation
+
+
+ fvt
+ video/vnd.fvt
+
+
+ fxp
+ application/vnd.adobe.fxp
+
+
+ fxpl
+ application/vnd.adobe.fxp
+
+
+ fzs
+ application/vnd.fuzzysheet
+
+
+ g2w
+ application/vnd.geoplan
+
+
+ g3
+ image/g3fax
+
+
+ g3w
+ application/vnd.geospace
+
+
+ gac
+ application/vnd.groove-account
+
+
+ gbr
+ application/rpki-ghostbusters
+
+
+ gdl
+ model/vnd.gdl
+
+
+ geo
+ application/vnd.dynageo
+
+
+ gex
+ application/vnd.geometry-explorer
+
+
+ ggb
+ application/vnd.geogebra.file
+
+
+ ggt
+ application/vnd.geogebra.tool
+
+
+ ghf
+ application/vnd.groove-help
+
+
+ gif
+ image/gif
+
+
+ gim
+ application/vnd.groove-identity-message
+
+
+ gmx
+ application/vnd.gmx
+
+
+ gnumeric
+ application/x-gnumeric
+
+
+ gph
+ application/vnd.flographit
+
+
+ gqf
+ application/vnd.grafeq
+
+
+ gqs
+ application/vnd.grafeq
+
+
+ gram
+ application/srgs
+
+
+ gre
+ application/vnd.geometry-explorer
+
+
+ grv
+ application/vnd.groove-injector
+
+
+ grxml
+ application/srgs+xml
+
+
+ gsf
+ application/x-font-ghostscript
+
+
+ gtar
+ application/x-gtar
+
+
+ gtm
+ application/vnd.groove-tool-message
+
+
+ gtw
+ model/vnd.gtw
+
+
+ gv
+ text/vnd.graphviz
+
+
+ gxt
+ application/vnd.geonext
+
+
+ gz
+ application/x-gzip
+
+
+ h
+ text/x-c
+
+
+ h261
+ video/h261
+
+
+ h263
+ video/h263
+
+
+ h264
+ video/h264
+
+
+ hal
+ application/vnd.hal+xml
+
+
+ hbci
+ application/vnd.hbci
+
+
+ hdf
+ application/x-hdf
+
+
+ hh
+ text/x-c
+
+
+ hlp
+ application/winhlp
+
+
+ hpgl
+ application/vnd.hp-hpgl
+
+
+ hpid
+ application/vnd.hp-hpid
+
+
+ hps
+ application/vnd.hp-hps
+
+
+ hqx
+ application/mac-binhex40
+
+
+ htc
+ text/x-component
+
+
+ htke
+ application/vnd.kenameaapp
+
+
+ htm
+ text/html
+
+
+ html
+ text/html
+
+
+ hvd
+ application/vnd.yamaha.hv-dic
+
+
+ hvp
+ application/vnd.yamaha.hv-voice
+
+
+ hvs
+ application/vnd.yamaha.hv-script
+
+
+ i2g
+ application/vnd.intergeo
+
+
+ icc
+ application/vnd.iccprofile
+
+
+ ice
+ x-conference/x-cooltalk
+
+
+ icm
+ application/vnd.iccprofile
+
+
+ ico
+ image/x-icon
+
+
+ ics
+ text/calendar
+
+
+ ief
+ image/ief
+
+
+ ifb
+ text/calendar
+
+
+ ifm
+ application/vnd.shana.informed.formdata
+
+
+ iges
+ model/iges
+
+
+ igl
+ application/vnd.igloader
+
+
+ igm
+ application/vnd.insors.igm
+
+
+ igs
+ model/iges
+
+
+ igx
+ application/vnd.micrografx.igx
+
+
+ iif
+ application/vnd.shana.informed.interchange
+
+
+ imp
+ application/vnd.accpac.simply.imp
+
+
+ ims
+ application/vnd.ms-ims
+
+
+ in
+ text/plain
+
+
+ ink
+ application/inkml+xml
+
+
+ inkml
+ application/inkml+xml
+
+
+ iota
+ application/vnd.astraea-software.iota
+
+
+ ipfix
+ application/ipfix
+
+
+ ipk
+ application/vnd.shana.informed.package
+
+
+ irm
+ application/vnd.ibm.rights-management
+
+
+ irp
+ application/vnd.irepository.package+xml
+
+
+ iso
+ application/octet-stream
+
+
+ itp
+ application/vnd.shana.informed.formtemplate
+
+
+ ivp
+ application/vnd.immervision-ivp
+
+
+ ivu
+ application/vnd.immervision-ivu
+
+
+ jad
+ text/vnd.sun.j2me.app-descriptor
+
+
+ jam
+ application/vnd.jam
+
+
+ jar
+ application/java-archive
+
+
+ java
+ text/x-java-source
+
+
+ jisp
+ application/vnd.jisp
+
+
+ jlt
+ application/vnd.hp-jlyt
+
+
+ jnlp
+ application/x-java-jnlp-file
+
+
+ joda
+ application/vnd.joost.joda-archive
+
+
+ jpe
+ image/jpeg
+
+
+ jpeg
+ image/jpeg
+
+
+ jpg
+ image/jpeg
+
+
+ jpgm
+ video/jpm
+
+
+ jpgv
+ video/jpeg
+
+
+ jpm
+ video/jpm
+
+
+ js
+ application/javascript
+
+
+ jsf
+ text/plain
+
+
+ json
+ application/json
+
+
+ jspf
+ text/plain
+
+
+ kar
+ audio/midi
+
+
+ karbon
+ application/vnd.kde.karbon
+
+
+ kfo
+ application/vnd.kde.kformula
+
+
+ kia
+ application/vnd.kidspiration
+
+
+ kml
+ application/vnd.google-earth.kml+xml
+
+
+ kmz
+ application/vnd.google-earth.kmz
+
+
+ kne
+ application/vnd.kinar
+
+
+ knp
+ application/vnd.kinar
+
+
+ kon
+ application/vnd.kde.kontour
+
+
+ kpr
+ application/vnd.kde.kpresenter
+
+
+ kpt
+ application/vnd.kde.kpresenter
+
+
+ ksp
+ application/vnd.kde.kspread
+
+
+ ktr
+ application/vnd.kahootz
+
+
+ ktx
+ image/ktx
+
+
+ ktz
+ application/vnd.kahootz
+
+
+ kwd
+ application/vnd.kde.kword
+
+
+ kwt
+ application/vnd.kde.kword
+
+
+ lasxml
+ application/vnd.las.las+xml
+
+
+ latex
+ application/x-latex
+
+
+ lbd
+ application/vnd.llamagraphics.life-balance.desktop
+
+
+ lbe
+ application/vnd.llamagraphics.life-balance.exchange+xml
+
+
+ les
+ application/vnd.hhe.lesson-player
+
+
+ lha
+ application/octet-stream
+
+
+ link66
+ application/vnd.route66.link66+xml
+
+
+ list
+ text/plain
+
+
+ list3820
+ application/vnd.ibm.modcap
+
+
+ listafp
+ application/vnd.ibm.modcap
+
+
+ log
+ text/plain
+
+
+ lostxml
+ application/lost+xml
+
+
+ lrf
+ application/octet-stream
+
+
+ lrm
+ application/vnd.ms-lrm
+
+
+ ltf
+ application/vnd.frogans.ltf
+
+
+ lvp
+ audio/vnd.lucent.voice
+
+
+ lwp
+ application/vnd.lotus-wordpro
+
+
+ lzh
+ application/octet-stream
+
+
+ m13
+ application/x-msmediaview
+
+
+ m14
+ application/x-msmediaview
+
+
+ m1v
+ video/mpeg
+
+
+ m21
+ application/mp21
+
+
+ m2a
+ audio/mpeg
+
+
+ m2v
+ video/mpeg
+
+
+ m3a
+ audio/mpeg
+
+
+ m3u
+ audio/x-mpegurl
+
+
+ m3u8
+ application/vnd.apple.mpegurl
+
+
+ m4a
+ audio/mp4
+
+
+ m4b
+ audio/mp4
+
+
+ m4r
+ audio/mp4
+
+
+ m4u
+ video/vnd.mpegurl
+
+
+ m4v
+ video/mp4
+
+
+ ma
+ application/mathematica
+
+
+ mac
+ image/x-macpaint
+
+
+ mads
+ application/mads+xml
+
+
+ mag
+ application/vnd.ecowin.chart
+
+
+ maker
+ application/vnd.framemaker
+
+
+ man
+ text/troff
+
+
+ mathml
+ application/mathml+xml
+
+
+ mb
+ application/mathematica
+
+
+ mbk
+ application/vnd.mobius.mbk
+
+
+ mbox
+ application/mbox
+
+
+ mc1
+ application/vnd.medcalcdata
+
+
+ mcd
+ application/vnd.mcd
+
+
+ mcurl
+ text/vnd.curl.mcurl
+
+
+ mdb
+ application/x-msaccess
+
+
+ mdi
+ image/vnd.ms-modi
+
+
+ me
+ text/troff
+
+
+ mesh
+ model/mesh
+
+
+ meta4
+ application/metalink4+xml
+
+
+ mets
+ application/mets+xml
+
+
+ mfm
+ application/vnd.mfmp
+
+
+ mft
+ application/rpki-manifest
+
+
+ mgp
+ application/vnd.osgeo.mapguide.package
+
+
+ mgz
+ application/vnd.proteus.magazine
+
+
+ mid
+ audio/midi
+
+
+ midi
+ audio/midi
+
+
+ mif
+ application/x-mif
+
+
+ mime
+ message/rfc822
+
+
+ mj2
+ video/mj2
+
+
+ mjp2
+ video/mj2
+
+
+ mlp
+ application/vnd.dolby.mlp
+
+
+ mmd
+ application/vnd.chipnuts.karaoke-mmd
+
+
+ mmf
+ application/vnd.smaf
+
+
+ mmr
+ image/vnd.fujixerox.edmics-mmr
+
+
+ mny
+ application/x-msmoney
+
+
+ mobi
+ application/x-mobipocket-ebook
+
+
+ mods
+ application/mods+xml
+
+
+ mov
+ video/quicktime
+
+
+ movie
+ video/x-sgi-movie
+
+
+ mp1
+ audio/mpeg
+
+
+ mp2
+ audio/mpeg
+
+
+ mp21
+ application/mp21
+
+
+ mp2a
+ audio/mpeg
+
+
+ mp3
+ audio/mpeg
+
+
+ mp4
+ video/mp4
+
+
+ mp4a
+ audio/mp4
+
+
+ mp4s
+ application/mp4
+
+
+ mp4v
+ video/mp4
+
+
+ mpa
+ audio/mpeg
+
+
+ mpc
+ application/vnd.mophun.certificate
+
+
+ mpe
+ video/mpeg
+
+
+ mpeg
+ video/mpeg
+
+
+ mpega
+ audio/x-mpeg
+
+
+ mpg
+ video/mpeg
+
+
+ mpg4
+ video/mp4
+
+
+ mpga
+ audio/mpeg
+
+
+ mpkg
+ application/vnd.apple.installer+xml
+
+
+ mpm
+ application/vnd.blueice.multipass
+
+
+ mpn
+ application/vnd.mophun.application
+
+
+ mpp
+ application/vnd.ms-project
+
+
+ mpt
+ application/vnd.ms-project
+
+
+ mpv2
+ video/mpeg2
+
+
+ mpy
+ application/vnd.ibm.minipay
+
+
+ mqy
+ application/vnd.mobius.mqy
+
+
+ mrc
+ application/marc
+
+
+ mrcx
+ application/marcxml+xml
+
+
+ ms
+ text/troff
+
+
+ mscml
+ application/mediaservercontrol+xml
+
+
+ mseed
+ application/vnd.fdsn.mseed
+
+
+ mseq
+ application/vnd.mseq
+
+
+ msf
+ application/vnd.epson.msf
+
+
+ msh
+ model/mesh
+
+
+ msi
+ application/x-msdownload
+
+
+ msl
+ application/vnd.mobius.msl
+
+
+ msty
+ application/vnd.muvee.style
+
+
+ mts
+ model/vnd.mts
+
+
+ mus
+ application/vnd.musician
+
+
+ musicxml
+ application/vnd.recordare.musicxml+xml
+
+
+ mvb
+ application/x-msmediaview
+
+
+ mwf
+ application/vnd.mfer
+
+
+ mxf
+ application/mxf
+
+
+ mxl
+ application/vnd.recordare.musicxml
+
+
+ mxml
+ application/xv+xml
+
+
+ mxs
+ application/vnd.triscape.mxs
+
+
+ mxu
+ video/vnd.mpegurl
+
+
+ n-gage
+ application/vnd.nokia.n-gage.symbian.install
+
+
+ n3
+ text/n3
+
+
+ nb
+ application/mathematica
+
+
+ nbp
+ application/vnd.wolfram.player
+
+
+ nc
+ application/x-netcdf
+
+
+ ncx
+ application/x-dtbncx+xml
+
+
+ ngdat
+ application/vnd.nokia.n-gage.data
+
+
+ nlu
+ application/vnd.neurolanguage.nlu
+
+
+ nml
+ application/vnd.enliven
+
+
+ nnd
+ application/vnd.noblenet-directory
+
+
+ nns
+ application/vnd.noblenet-sealer
+
+
+ nnw
+ application/vnd.noblenet-web
+
+
+ npx
+ image/vnd.net-fpx
+
+
+ nsf
+ application/vnd.lotus-notes
+
+
+ oa2
+ application/vnd.fujitsu.oasys2
+
+
+ oa3
+ application/vnd.fujitsu.oasys3
+
+
+ oas
+ application/vnd.fujitsu.oasys
+
+
+ obd
+ application/x-msbinder
+
+
+ oda
+ application/oda
+
+
+
+ odb
+ application/vnd.oasis.opendocument.database
+
+
+
+ odc
+ application/vnd.oasis.opendocument.chart
+
+
+
+ odf
+ application/vnd.oasis.opendocument.formula
+
+
+ odft
+ application/vnd.oasis.opendocument.formula-template
+
+
+
+ odg
+ application/vnd.oasis.opendocument.graphics
+
+
+
+ odi
+ application/vnd.oasis.opendocument.image
+
+
+
+ odm
+ application/vnd.oasis.opendocument.text-master
+
+
+
+ odp
+ application/vnd.oasis.opendocument.presentation
+
+
+
+ ods
+ application/vnd.oasis.opendocument.spreadsheet
+
+
+
+ odt
+ application/vnd.oasis.opendocument.text
+
+
+ oga
+ audio/ogg
+
+
+ ogg
+ audio/ogg
+
+
+ ogv
+ video/ogg
+
+
+
+ ogx
+ application/ogg
+
+
+ onepkg
+ application/onenote
+
+
+ onetmp
+ application/onenote
+
+
+ onetoc
+ application/onenote
+
+
+ onetoc2
+ application/onenote
+
+
+ opf
+ application/oebps-package+xml
+
+
+ oprc
+ application/vnd.palm
+
+
+ org
+ application/vnd.lotus-organizer
+
+
+ osf
+ application/vnd.yamaha.openscoreformat
+
+
+ osfpvg
+ application/vnd.yamaha.openscoreformat.osfpvg+xml
+
+
+ otc
+ application/vnd.oasis.opendocument.chart-template
+
+
+ otf
+ application/x-font-otf
+
+
+
+ otg
+ application/vnd.oasis.opendocument.graphics-template
+
+
+
+ oth
+ application/vnd.oasis.opendocument.text-web
+
+
+ oti
+ application/vnd.oasis.opendocument.image-template
+
+
+
+ otp
+ application/vnd.oasis.opendocument.presentation-template
+
+
+
+ ots
+ application/vnd.oasis.opendocument.spreadsheet-template
+
+
+
+ ott
+ application/vnd.oasis.opendocument.text-template
+
+
+ oxps
+ application/oxps
+
+
+ oxt
+ application/vnd.openofficeorg.extension
+
+
+ p
+ text/x-pascal
+
+
+ p10
+ application/pkcs10
+
+
+ p12
+ application/x-pkcs12
+
+
+ p7b
+ application/x-pkcs7-certificates
+
+
+ p7c
+ application/pkcs7-mime
+
+
+ p7m
+ application/pkcs7-mime
+
+
+ p7r
+ application/x-pkcs7-certreqresp
+
+
+ p7s
+ application/pkcs7-signature
+
+
+ p8
+ application/pkcs8
+
+
+ pas
+ text/x-pascal
+
+
+ paw
+ application/vnd.pawaafile
+
+
+ pbd
+ application/vnd.powerbuilder6
+
+
+ pbm
+ image/x-portable-bitmap
+
+
+ pcap
+ application/vnd.tcpdump.pcap
+
+
+ pcf
+ application/x-font-pcf
+
+
+ pcl
+ application/vnd.hp-pcl
+
+
+ pclxl
+ application/vnd.hp-pclxl
+
+
+ pct
+ image/pict
+
+
+ pcurl
+ application/vnd.curl.pcurl
+
+
+ pcx
+ image/x-pcx
+
+
+ pdb
+ application/vnd.palm
+
+
+ pdf
+ application/pdf
+
+
+ pfa
+ application/x-font-type1
+
+
+ pfb
+ application/x-font-type1
+
+
+ pfm
+ application/x-font-type1
+
+
+ pfr
+ application/font-tdpfr
+
+
+ pfx
+ application/x-pkcs12
+
+
+ pgm
+ image/x-portable-graymap
+
+
+ pgn
+ application/x-chess-pgn
+
+
+ pgp
+ application/pgp-encrypted
+
+
+ pic
+ image/pict
+
+
+ pict
+ image/pict
+
+
+ pkg
+ application/octet-stream
+
+
+ pki
+ application/pkixcmp
+
+
+ pkipath
+ application/pkix-pkipath
+
+
+ plb
+ application/vnd.3gpp.pic-bw-large
+
+
+ plc
+ application/vnd.mobius.plc
+
+
+ plf
+ application/vnd.pocketlearn
+
+
+ pls
+ audio/x-scpls
+
+
+ pml
+ application/vnd.ctc-posml
+
+
+ png
+ image/png
+
+
+ pnm
+ image/x-portable-anymap
+
+
+ pnt
+ image/x-macpaint
+
+
+ portpkg
+ application/vnd.macports.portpkg
+
+
+ pot
+ application/vnd.ms-powerpoint
+
+
+ potm
+ application/vnd.ms-powerpoint.template.macroenabled.12
+
+
+ potx
+ application/vnd.openxmlformats-officedocument.presentationml.template
+
+
+ ppam
+ application/vnd.ms-powerpoint.addin.macroenabled.12
+
+
+ ppd
+ application/vnd.cups-ppd
+
+
+ ppm
+ image/x-portable-pixmap
+
+
+ pps
+ application/vnd.ms-powerpoint
+
+
+ ppsm
+ application/vnd.ms-powerpoint.slideshow.macroenabled.12
+
+
+ ppsx
+ application/vnd.openxmlformats-officedocument.presentationml.slideshow
+
+
+ ppt
+ application/vnd.ms-powerpoint
+
+
+ pptm
+ application/vnd.ms-powerpoint.presentation.macroenabled.12
+
+
+ pptx
+ application/vnd.openxmlformats-officedocument.presentationml.presentation
+
+
+ pqa
+ application/vnd.palm
+
+
+ prc
+ application/x-mobipocket-ebook
+
+
+ pre
+ application/vnd.lotus-freelance
+
+
+ prf
+ application/pics-rules
+
+
+ ps
+ application/postscript
+
+
+ psb
+ application/vnd.3gpp.pic-bw-small
+
+
+ psd
+ image/vnd.adobe.photoshop
+
+
+ psf
+ application/x-font-linux-psf
+
+
+ pskcxml
+ application/pskc+xml
+
+
+ ptid
+ application/vnd.pvi.ptid1
+
+
+ pub
+ application/x-mspublisher
+
+
+ pvb
+ application/vnd.3gpp.pic-bw-var
+
+
+ pwn
+ application/vnd.3m.post-it-notes
+
+
+ pya
+ audio/vnd.ms-playready.media.pya
+
+
+ pyv
+ video/vnd.ms-playready.media.pyv
+
+
+ qam
+ application/vnd.epson.quickanime
+
+
+ qbo
+ application/vnd.intu.qbo
+
+
+ qfx
+ application/vnd.intu.qfx
+
+
+ qps
+ application/vnd.publishare-delta-tree
+
+
+ qt
+ video/quicktime
+
+
+ qti
+ image/x-quicktime
+
+
+ qtif
+ image/x-quicktime
+
+
+ qwd
+ application/vnd.quark.quarkxpress
+
+
+ qwt
+ application/vnd.quark.quarkxpress
+
+
+ qxb
+ application/vnd.quark.quarkxpress
+
+
+ qxd
+ application/vnd.quark.quarkxpress
+
+
+ qxl
+ application/vnd.quark.quarkxpress
+
+
+ qxt
+ application/vnd.quark.quarkxpress
+
+
+ ra
+ audio/x-pn-realaudio
+
+
+ ram
+ audio/x-pn-realaudio
+
+
+ rar
+ application/x-rar-compressed
+
+
+ ras
+ image/x-cmu-raster
+
+
+ rcprofile
+ application/vnd.ipunplugged.rcprofile
+
+
+ rdf
+ application/rdf+xml
+
+
+ rdz
+ application/vnd.data-vision.rdz
+
+
+ rep
+ application/vnd.businessobjects
+
+
+ res
+ application/x-dtbresource+xml
+
+
+ rgb
+ image/x-rgb
+
+
+ rif
+ application/reginfo+xml
+
+
+ rip
+ audio/vnd.rip
+
+
+ rl
+ application/resource-lists+xml
+
+
+ rlc
+ image/vnd.fujixerox.edmics-rlc
+
+
+ rld
+ application/resource-lists-diff+xml
+
+
+ rm
+ application/vnd.rn-realmedia
+
+
+ rmi
+ audio/midi
+
+
+ rmp
+ audio/x-pn-realaudio-plugin
+
+
+ rms
+ application/vnd.jcp.javame.midlet-rms
+
+
+ rnc
+ application/relax-ng-compact-syntax
+
+
+ roa
+ application/rpki-roa
+
+
+ roff
+ text/troff
+
+
+ rp9
+ application/vnd.cloanto.rp9
+
+
+ rpss
+ application/vnd.nokia.radio-presets
+
+
+ rpst
+ application/vnd.nokia.radio-preset
+
+
+ rq
+ application/sparql-query
+
+
+ rs
+ application/rls-services+xml
+
+
+ rsd
+ application/rsd+xml
+
+
+ rss
+ application/rss+xml
+
+
+ rtf
+ application/rtf
+
+
+ rtx
+ text/richtext
+
+
+ s
+ text/x-asm
+
+
+ saf
+ application/vnd.yamaha.smaf-audio
+
+
+ sbml
+ application/sbml+xml
+
+
+ sc
+ application/vnd.ibm.secure-container
+
+
+ scd
+ application/x-msschedule
+
+
+ scm
+ application/vnd.lotus-screencam
+
+
+ scq
+ application/scvp-cv-request
+
+
+ scs
+ application/scvp-cv-response
+
+
+ scurl
+ text/vnd.curl.scurl
+
+
+ sda
+ application/vnd.stardivision.draw
+
+
+ sdc
+ application/vnd.stardivision.calc
+
+
+ sdd
+ application/vnd.stardivision.impress
+
+
+ sdkd
+ application/vnd.solent.sdkm+xml
+
+
+ sdkm
+ application/vnd.solent.sdkm+xml
+
+
+ sdp
+ application/sdp
+
+
+ sdw
+ application/vnd.stardivision.writer
+
+
+ see
+ application/vnd.seemail
+
+
+ seed
+ application/vnd.fdsn.seed
+
+
+ sema
+ application/vnd.sema
+
+
+ semd
+ application/vnd.semd
+
+
+ semf
+ application/vnd.semf
+
+
+ ser
+ application/java-serialized-object
+
+
+ setpay
+ application/set-payment-initiation
+
+
+ setreg
+ application/set-registration-initiation
+
+
+ sfd-hdstx
+ application/vnd.hydrostatix.sof-data
+
+
+ sfs
+ application/vnd.spotfire.sfs
+
+
+ sgl
+ application/vnd.stardivision.writer-global
+
+
+ sgm
+ text/sgml
+
+
+ sgml
+ text/sgml
+
+
+ sh
+ application/x-sh
+
+
+ shar
+ application/x-shar
+
+
+ shf
+ application/shf+xml
+
+
+
+ sig
+ application/pgp-signature
+
+
+ silo
+ model/mesh
+
+
+ sis
+ application/vnd.symbian.install
+
+
+ sisx
+ application/vnd.symbian.install
+
+
+ sit
+ application/x-stuffit
+
+
+ sitx
+ application/x-stuffitx
+
+
+ skd
+ application/vnd.koan
+
+
+ skm
+ application/vnd.koan
+
+
+ skp
+ application/vnd.koan
+
+
+ skt
+ application/vnd.koan
+
+
+ sldm
+ application/vnd.ms-powerpoint.slide.macroenabled.12
+
+
+ sldx
+ application/vnd.openxmlformats-officedocument.presentationml.slide
+
+
+ slt
+ application/vnd.epson.salt
+
+
+ sm
+ application/vnd.stepmania.stepchart
+
+
+ smf
+ application/vnd.stardivision.math
+
+
+ smi
+ application/smil+xml
+
+
+ smil
+ application/smil+xml
+
+
+ smzip
+ application/vnd.stepmania.package
+
+
+ snd
+ audio/basic
+
+
+ snf
+ application/x-font-snf
+
+
+ so
+ application/octet-stream
+
+
+ spc
+ application/x-pkcs7-certificates
+
+
+ spf
+ application/vnd.yamaha.smaf-phrase
+
+
+ spl
+ application/x-futuresplash
+
+
+ spot
+ text/vnd.in3d.spot
+
+
+ spp
+ application/scvp-vp-response
+
+
+ spq
+ application/scvp-vp-request
+
+
+ spx
+ audio/ogg
+
+
+ src
+ application/x-wais-source
+
+
+ sru
+ application/sru+xml
+
+
+ srx
+ application/sparql-results+xml
+
+
+ sse
+ application/vnd.kodak-descriptor
+
+
+ ssf
+ application/vnd.epson.ssf
+
+
+ ssml
+ application/ssml+xml
+
+
+ st
+ application/vnd.sailingtracker.track
+
+
+ stc
+ application/vnd.sun.xml.calc.template
+
+
+ std
+ application/vnd.sun.xml.draw.template
+
+
+ stf
+ application/vnd.wt.stf
+
+
+ sti
+ application/vnd.sun.xml.impress.template
+
+
+ stk
+ application/hyperstudio
+
+
+ stl
+ application/vnd.ms-pki.stl
+
+
+ str
+ application/vnd.pg.format
+
+
+ stw
+ application/vnd.sun.xml.writer.template
+
+
+ sub
+ text/vnd.dvb.subtitle
+
+
+ sus
+ application/vnd.sus-calendar
+
+
+ susp
+ application/vnd.sus-calendar
+
+
+ sv4cpio
+ application/x-sv4cpio
+
+
+ sv4crc
+ application/x-sv4crc
+
+
+ svc
+ application/vnd.dvb.service
+
+
+ svd
+ application/vnd.svd
+
+
+ svg
+ image/svg+xml
+
+
+ svgz
+ image/svg+xml
+
+
+ swa
+ application/x-director
+
+
+ swf
+ application/x-shockwave-flash
+
+
+ swi
+ application/vnd.aristanetworks.swi
+
+
+ sxc
+ application/vnd.sun.xml.calc
+
+
+ sxd
+ application/vnd.sun.xml.draw
+
+
+ sxg
+ application/vnd.sun.xml.writer.global
+
+
+ sxi
+ application/vnd.sun.xml.impress
+
+
+ sxm
+ application/vnd.sun.xml.math
+
+
+ sxw
+ application/vnd.sun.xml.writer
+
+
+ t
+ text/troff
+
+
+ taglet
+ application/vnd.mynfc
+
+
+ tao
+ application/vnd.tao.intent-module-archive
+
+
+ tar
+ application/x-tar
+
+
+ tcap
+ application/vnd.3gpp2.tcap
+
+
+ tcl
+ application/x-tcl
+
+
+ teacher
+ application/vnd.smart.teacher
+
+
+ tei
+ application/tei+xml
+
+
+ teicorpus
+ application/tei+xml
+
+
+ tex
+ application/x-tex
+
+
+ texi
+ application/x-texinfo
+
+
+ texinfo
+ application/x-texinfo
+
+
+ text
+ text/plain
+
+
+ tfi
+ application/thraud+xml
+
+
+ tfm
+ application/x-tex-tfm
+
+
+ thmx
+ application/vnd.ms-officetheme
+
+
+ tif
+ image/tiff
+
+
+ tiff
+ image/tiff
+
+
+ tmo
+ application/vnd.tmobile-livetv
+
+
+ torrent
+ application/x-bittorrent
+
+
+ tpl
+ application/vnd.groove-tool-template
+
+
+ tpt
+ application/vnd.trid.tpt
+
+
+ tr
+ text/troff
+
+
+ tra
+ application/vnd.trueapp
+
+
+ trm
+ application/x-msterminal
+
+
+ tsd
+ application/timestamped-data
+
+
+ tsv
+ text/tab-separated-values
+
+
+ ttc
+ application/x-font-ttf
+
+
+ ttf
+ application/x-font-ttf
+
+
+ ttl
+ text/turtle
+
+
+ twd
+ application/vnd.simtech-mindmapper
+
+
+ twds
+ application/vnd.simtech-mindmapper
+
+
+ txd
+ application/vnd.genomatix.tuxedo
+
+
+ txf
+ application/vnd.mobius.txf
+
+
+ txt
+ text/plain
+
+
+ u32
+ application/x-authorware-bin
+
+
+ udeb
+ application/x-debian-package
+
+
+ ufd
+ application/vnd.ufdl
+
+
+ ufdl
+ application/vnd.ufdl
+
+
+ ulw
+ audio/basic
+
+
+ umj
+ application/vnd.umajin
+
+
+ unityweb
+ application/vnd.unity
+
+
+ uoml
+ application/vnd.uoml+xml
+
+
+ uri
+ text/uri-list
+
+
+ uris
+ text/uri-list
+
+
+ urls
+ text/uri-list
+
+
+ ustar
+ application/x-ustar
+
+
+ utz
+ application/vnd.uiq.theme
+
+
+ uu
+ text/x-uuencode
+
+
+ uva
+ audio/vnd.dece.audio
+
+
+ uvd
+ application/vnd.dece.data
+
+
+ uvf
+ application/vnd.dece.data
+
+
+ uvg
+ image/vnd.dece.graphic
+
+
+ uvh
+ video/vnd.dece.hd
+
+
+ uvi
+ image/vnd.dece.graphic
+
+
+ uvm
+ video/vnd.dece.mobile
+
+
+ uvp
+ video/vnd.dece.pd
+
+
+ uvs
+ video/vnd.dece.sd
+
+
+ uvt
+ application/vnd.dece.ttml+xml
+
+
+ uvu
+ video/vnd.uvvu.mp4
+
+
+ uvv
+ video/vnd.dece.video
+
+
+ uvva
+ audio/vnd.dece.audio
+
+
+ uvvd
+ application/vnd.dece.data
+
+
+ uvvf
+ application/vnd.dece.data
+
+
+ uvvg
+ image/vnd.dece.graphic
+
+
+ uvvh
+ video/vnd.dece.hd
+
+
+ uvvi
+ image/vnd.dece.graphic
+
+
+ uvvm
+ video/vnd.dece.mobile
+
+
+ uvvp
+ video/vnd.dece.pd
+
+
+ uvvs
+ video/vnd.dece.sd
+
+
+ uvvt
+ application/vnd.dece.ttml+xml
+
+
+ uvvu
+ video/vnd.uvvu.mp4
+
+
+ uvvv
+ video/vnd.dece.video
+
+
+ uvvx
+ application/vnd.dece.unspecified
+
+
+ uvvz
+ application/vnd.dece.zip
+
+
+ uvx
+ application/vnd.dece.unspecified
+
+
+ uvz
+ application/vnd.dece.zip
+
+
+ vcard
+ text/vcard
+
+
+ vcd
+ application/x-cdlink
+
+
+ vcf
+ text/x-vcard
+
+
+ vcg
+ application/vnd.groove-vcard
+
+
+ vcs
+ text/x-vcalendar
+
+
+ vcx
+ application/vnd.vcx
+
+
+ vis
+ application/vnd.visionary
+
+
+ viv
+ video/vnd.vivo
+
+
+ vor
+ application/vnd.stardivision.writer
+
+
+ vox
+ application/x-authorware-bin
+
+
+ vrml
+ model/vrml
+
+
+ vsd
+ application/vnd.visio
+
+
+ vsf
+ application/vnd.vsf
+
+
+ vss
+ application/vnd.visio
+
+
+ vst
+ application/vnd.visio
+
+
+ vsw
+ application/vnd.visio
+
+
+ vtu
+ model/vnd.vtu
+
+
+ vxml
+ application/voicexml+xml
+
+
+ w3d
+ application/x-director
+
+
+ wad
+ application/x-doom
+
+
+ wav
+ audio/x-wav
+
+
+ wax
+ audio/x-ms-wax
+
+
+
+ wbmp
+ image/vnd.wap.wbmp
+
+
+ wbs
+ application/vnd.criticaltools.wbs+xml
+
+
+ wbxml
+ application/vnd.wap.wbxml
+
+
+ wcm
+ application/vnd.ms-works
+
+
+ wdb
+ application/vnd.ms-works
+
+
+ weba
+ audio/webm
+
+
+ webm
+ video/webm
+
+
+ webp
+ image/webp
+
+
+ wg
+ application/vnd.pmi.widget
+
+
+ wgt
+ application/widget
+
+
+ wks
+ application/vnd.ms-works
+
+
+ wm
+ video/x-ms-wm
+
+
+ wma
+ audio/x-ms-wma
+
+
+ wmd
+ application/x-ms-wmd
+
+
+ wmf
+ application/x-msmetafile
+
+
+
+ wml
+ text/vnd.wap.wml
+
+
+
+ wmlc
+ application/vnd.wap.wmlc
+
+
+
+ wmls
+ text/vnd.wap.wmlscript
+
+
+
+ wmlsc
+ application/vnd.wap.wmlscriptc
+
+
+ wmv
+ video/x-ms-wmv
+
+
+ wmx
+ video/x-ms-wmx
+
+
+ wmz
+ application/x-ms-wmz
+
+
+ woff
+ application/x-font-woff
+
+
+ wpd
+ application/vnd.wordperfect
+
+
+ wpl
+ application/vnd.ms-wpl
+
+
+ wps
+ application/vnd.ms-works
+
+
+ wqd
+ application/vnd.wqd
+
+
+ wri
+ application/x-mswrite
+
+
+ wrl
+ model/vrml
+
+
+ wsdl
+ application/wsdl+xml
+
+
+ wspolicy
+ application/wspolicy+xml
+
+
+ wtb
+ application/vnd.webturbo
+
+
+ wvx
+ video/x-ms-wvx
+
+
+ x32
+ application/x-authorware-bin
+
+
+ x3d
+ application/vnd.hzn-3d-crossword
+
+
+ xap
+ application/x-silverlight-app
+
+
+ xar
+ application/vnd.xara
+
+
+ xbap
+ application/x-ms-xbap
+
+
+ xbd
+ application/vnd.fujixerox.docuworks.binder
+
+
+ xbm
+ image/x-xbitmap
+
+
+ xdf
+ application/xcap-diff+xml
+
+
+ xdm
+ application/vnd.syncml.dm+xml
+
+
+ xdp
+ application/vnd.adobe.xdp+xml
+
+
+ xdssc
+ application/dssc+xml
+
+
+ xdw
+ application/vnd.fujixerox.docuworks
+
+
+ xenc
+ application/xenc+xml
+
+
+ xer
+ application/patch-ops-error+xml
+
+
+ xfdf
+ application/vnd.adobe.xfdf
+
+
+ xfdl
+ application/vnd.xfdl
+
+
+ xht
+ application/xhtml+xml
+
+
+ xhtml
+ application/xhtml+xml
+
+
+ xhvml
+ application/xv+xml
+
+
+ xif
+ image/vnd.xiff
+
+
+ xla
+ application/vnd.ms-excel
+
+
+ xlam
+ application/vnd.ms-excel.addin.macroenabled.12
+
+
+ xlc
+ application/vnd.ms-excel
+
+
+ xlm
+ application/vnd.ms-excel
+
+
+ xls
+ application/vnd.ms-excel
+
+
+ xlsb
+ application/vnd.ms-excel.sheet.binary.macroenabled.12
+
+
+ xlsm
+ application/vnd.ms-excel.sheet.macroenabled.12
+
+
+ xlsx
+ application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
+
+
+ xlt
+ application/vnd.ms-excel
+
+
+ xltm
+ application/vnd.ms-excel.template.macroenabled.12
+
+
+ xltx
+ application/vnd.openxmlformats-officedocument.spreadsheetml.template
+
+
+ xlw
+ application/vnd.ms-excel
+
+
+ xml
+ application/xml
+
+
+ xo
+ application/vnd.olpc-sugar
+
+
+ xop
+ application/xop+xml
+
+
+ xpi
+ application/x-xpinstall
+
+
+ xpm
+ image/x-xpixmap
+
+
+ xpr
+ application/vnd.is-xpr
+
+
+ xps
+ application/vnd.ms-xpsdocument
+
+
+ xpw
+ application/vnd.intercon.formnet
+
+
+ xpx
+ application/vnd.intercon.formnet
+
+
+ xsl
+ application/xml
+
+
+ xslt
+ application/xslt+xml
+
+
+ xsm
+ application/vnd.syncml+xml
+
+
+ xspf
+ application/xspf+xml
+
+
+ xul
+ application/vnd.mozilla.xul+xml
+
+
+ xvm
+ application/xv+xml
+
+
+ xvml
+ application/xv+xml
+
+
+ xwd
+ image/x-xwindowdump
+
+
+ xyz
+ chemical/x-xyz
+
+
+ yang
+ application/yang
+
+
+ yin
+ application/yin+xml
+
+
+ z
+ application/x-compress
+
+
+ Z
+ application/x-compress
+
+
+ zaz
+ application/vnd.zzazz.deck+xml
+
+
+ zip
+ application/zip
+
+
+ zir
+ application/vnd.zul
+
+
+ zirz
+ application/vnd.zul
+
+
+ zmm
+ application/vnd.handheld-entertainment+xml
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ index.html
+ index.htm
+ index.jsp
+
+
+
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/tomcat/logs/access_log.2019-10-08" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/tomcat/logs/access_log.2019-10-08"
new file mode 100644
index 0000000000000000000000000000000000000000..0e3d4e74c0d7de4cb68d36deddeadaa3c9a55360
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/tomcat/logs/access_log.2019-10-08"
@@ -0,0 +1,42 @@
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:16:55:54 +0800] "GET /demo/query HTTP/1.1" 500 3482 http-bio-8080-exec-1 86
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:16:58:31 +0800] "GET /demo/query HTTP/1.1" 500 3377 http-bio-8080-exec-1 58
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:17:02:45 +0800] "GET /demo/query HTTP/1.1" 200 - http-bio-8080-exec-1 77
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:17:02:45 +0800] "GET /favicon.ico HTTP/1.1" 200 - http-bio-8080-exec-3 1
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:17:51:56 +0800] "GET /demo/query?name=zhangsan HTTP/1.1" 500 1974 http-bio-8080-exec-1 95
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:17:51:56 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-2 2
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:17:57:35 +0800] "GET /demo/query?name=zhangsan HTTP/1.1" 500 1974 http-bio-8080-exec-1 107
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:17:57:35 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-2 4
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:17:58:18 +0800] "GET /demo/query?name=zhangsan HTTP/1.1" 500 1974 http-bio-8080-exec-1 105
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:17:58:18 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-2 3
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:17:58:19 +0800] "GET /demo/query?name=zhangsan HTTP/1.1" 500 1974 http-bio-8080-exec-3 3
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:17:58:19 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-4 1
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:17:58:19 +0800] "GET /demo/query?name=zhangsan HTTP/1.1" 500 1974 http-bio-8080-exec-5 3
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:17:58:20 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-6 1
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:17:58:20 +0800] "GET /demo/query?name=zhangsan HTTP/1.1" 500 1974 http-bio-8080-exec-7 7
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:17:58:20 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-8 1
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:17:58:20 +0800] "GET /demo/query?name=zhangsan HTTP/1.1" 500 1974 http-bio-8080-exec-9 2
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:17:58:20 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-10 1
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:03:38 +0800] "GET /demo/query?name=zhangsan HTTP/1.1" 200 - http-bio-8080-exec-1 93
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:03:38 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-3 2
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:05:13 +0800] "GET /demo/query?name=zhangsan HTTP/1.1" 500 1974 http-bio-8080-exec-1 81
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:05:13 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-2 2
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:06:54 +0800] "GET /demo/query?name=lisi HTTP/1.1" 500 1974 http-bio-8080-exec-1 110
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:06:55 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-2 4
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:13:27 +0800] "GET /demo/query?name=lisi HTTP/1.1" 500 1974 http-bio-8080-exec-1 97
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:13:27 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-2 2
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:21:09 +0800] "GET /demo/query?name=lisi HTTP/1.1" 200 - http-bio-8080-exec-1 98
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:21:09 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-3 2
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:21:11 +0800] "GET /demo/query?name=lisi HTTP/1.1" 200 - http-bio-8080-exec-4 2
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:21:11 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-5 0
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:21:19 +0800] "GET /demo/query?name=lisi HTTP/1.1" 200 - http-bio-8080-exec-6 2
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:21:19 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-8 0
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:24:40 +0800] "GET /demo/query?name=lisi HTTP/1.1" 200 - http-bio-8080-exec-1 53
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:24:41 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-3 3
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:26:09 +0800] "GET /demo/query?name=lisi HTTP/1.1" 500 1974 http-bio-8080-exec-1 112
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:26:09 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-2 2
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:28:08 +0800] "GET /demo/query?name=lisi HTTP/1.1" 500 1974 http-bio-8080-exec-1 77
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:28:09 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-2 3
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:32:58 +0800] "GET /demo/query?name=lisi HTTP/1.1" 500 1974 http-bio-8080-exec-1 69
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:32:59 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-2 3
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:39:52 +0800] "GET /demo/query?name=lisi HTTP/1.1" 200 - http-bio-8080-exec-1 76
+0:0:0:0:0:0:0:1 - - [08/Oct/2019:18:39:52 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-3 2
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/tomcat/logs/access_log.2020-01-09" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/tomcat/logs/access_log.2020-01-09"
new file mode 100644
index 0000000000000000000000000000000000000000..cbef109462207ddd33e3092419c797c9d9f6fa98
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/tomcat/logs/access_log.2020-01-09"
@@ -0,0 +1,2 @@
+0:0:0:0:0:0:0:1 - - [09/Jan/2020:11:37:49 +0800] "GET /demo/query?name=zhaoliu HTTP/1.1" 200 - http-bio-8080-exec-1 74
+0:0:0:0:0:0:0:1 - - [09/Jan/2020:11:37:49 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-2 2
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/tomcat/logs/access_log.2022-03-28" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/tomcat/logs/access_log.2022-03-28"
new file mode 100644
index 0000000000000000000000000000000000000000..03ad1b8864725f03efabb7e26e336582ed7727cf
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/code/mvc/target/tomcat/logs/access_log.2022-03-28"
@@ -0,0 +1,18 @@
+127.0.0.1 - - [28/Mar/2022:00:15:45 +0800] "GET / HTTP/1.1" 200 13 http-bio-8080-exec-1 184
+127.0.0.1 - - [28/Mar/2022:00:15:45 +0800] "GET /favicon.ico HTTP/1.1" 200 13 http-bio-8080-exec-2 3
+127.0.0.1 - - [28/Mar/2022:00:15:57 +0800] "GET /query/userName=star HTTP/1.1" 200 13 http-bio-8080-exec-3 3
+127.0.0.1 - - [28/Mar/2022:00:16:12 +0800] "GET /query/ HTTP/1.1" 200 13 http-bio-8080-exec-4 2
+127.0.0.1 - - [28/Mar/2022:00:17:04 +0800] "GET /query/ HTTP/1.1" 200 13 http-bio-8080-exec-5 20100
+127.0.0.1 - - [28/Mar/2022:00:17:17 +0800] "GET /demo/query HTTP/1.1" 200 - http-bio-8080-exec-6 3547
+127.0.0.1 - - [28/Mar/2022:00:17:35 +0800] "GET /demo/query/userName=star HTTP/1.1" 200 13 http-bio-8080-exec-7 4667
+127.0.0.1 - - [28/Mar/2022:00:17:49 +0800] "GET /demo/query?userName=star HTTP/1.1" 200 - http-bio-8080-exec-8 2392
+127.0.0.1 - - [28/Mar/2022:00:18:16 +0800] "GET /demo/query?userName=star2 HTTP/1.1" 200 - http-bio-8080-exec-9 2445
+127.0.0.1 - - [28/Mar/2022:00:19:04 +0800] "GET /demo/query?userName=star2 HTTP/1.1" 200 - http-bio-8080-exec-10 39260
+127.0.0.1 - - [28/Mar/2022:00:23:03 +0800] "GET /demo/query?userName=star2 HTTP/1.1" 200 - http-bio-8080-exec-1 3678
+127.0.0.1 - - [28/Mar/2022:00:23:38 +0800] "GET /demo/query?userName=star2 HTTP/1.1" 200 - http-bio-8080-exec-2 25305
+127.0.0.1 - - [28/Mar/2022:00:24:58 +0800] "GET /demo/query?userName=star2 HTTP/1.1" 200 - http-bio-8080-exec-3 76987
+127.0.0.1 - - [28/Mar/2022:00:29:58 +0800] "GET /demo/query?userName=star2 HTTP/1.1" 200 - http-bio-8080-exec-1 114411
+127.0.0.1 - - [28/Mar/2022:00:32:13 +0800] "GET /demo/query?userName=star2 HTTP/1.1" 200 - http-bio-8080-exec-1 2840
+127.0.0.1 - - [28/Mar/2022:00:36:03 +0800] "GET /demo/query?userName=star2 HTTP/1.1" 200 - http-bio-8080-exec-2 222576
+127.0.0.1 - - [28/Mar/2022:00:37:39 +0800] "GET /demo/query?userName=star2 HTTP/1.1" 200 13 http-bio-8080-exec-1 3363
+127.0.0.1 - - [28/Mar/2022:00:37:50 +0800] "GET /demo/query?userName=star HTTP/1.1" 200 - http-bio-8080-exec-2 2693
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/\351\252\214\350\257\201\346\235\220\346\226\231/20220328_071151.mp4" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/\351\252\214\350\257\201\346\235\220\346\226\231/20220328_071151.mp4"
new file mode 100644
index 0000000000000000000000000000000000000000..7c27f6be925ea9dc3b80da5b6cf6080bdaafdee9
Binary files /dev/null and "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\270\211/\351\252\214\350\257\201\346\235\220\346\226\231/20220328_071151.mp4" differ
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/pom.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/pom.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..0be01240af0b16a2a205854430e34cc414d2ef52
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/pom.xml"
@@ -0,0 +1,160 @@
+
+
+
+ 4.0.0
+
+ com.lagou.edu
+ lagou-transfer-transaction
+ 1.0-SNAPSHOT
+ war
+
+ lagou-transfer-transaction Maven Webapp
+
+ http://www.example.com
+
+
+ UTF-8
+ 11
+ 11
+
+
+
+
+
+
+ junit
+ junit
+ 4.12
+
+
+
+
+ mysql
+ mysql-connector-java
+ 8.0.21
+
+
+
+ com.alibaba
+ druid
+ 1.1.21
+
+
+
+
+ javax.servlet
+ javax.servlet-api
+ 3.1.0
+ provided
+
+
+
+
+ com.fasterxml.jackson.core
+ jackson-databind
+ 2.9.6
+
+
+
+
+ dom4j
+ dom4j
+ 1.6.1
+
+
+
+ jaxen
+ jaxen
+ 1.1.6
+
+
+
+ cglib
+ cglib
+ 2.1_2
+
+
+
+
+ org.springframework
+ spring-context
+ 5.1.12.RELEASE
+
+
+
+
+ org.springframework
+ spring-web
+ 5.1.12.RELEASE
+
+
+
+ javax.annotation
+ javax.annotation-api
+ 1.3.2
+
+
+
+
+ org.springframework
+ spring-test
+ 5.1.12.RELEASE
+
+
+
+
+
+ org.springframework
+ spring-aop
+ 5.1.12.RELEASE
+
+
+
+
+ org.aspectj
+ aspectjweaver
+ 1.8.13
+
+
+
+
+ org.springframework
+ spring-jdbc
+ 5.1.12.RELEASE
+
+
+ org.springframework
+ spring-tx
+ 5.1.12.RELEASE
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.2
+
+ 11
+ 11
+ UTF-8
+
+
+
+
+
+
+ org.apache.tomcat.maven
+ tomcat7-maven-plugin
+ 2.2
+
+ 8080
+ /
+
+
+
+
+
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/annotation/Autowired.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/annotation/Autowired.java"
new file mode 100644
index 0000000000000000000000000000000000000000..e4a5a4e39e6b82218edae2e8ad00021a2610abda
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/annotation/Autowired.java"
@@ -0,0 +1,12 @@
+package com.lagou.edu.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Retention(RetentionPolicy.RUNTIME)
+@Target({ElementType.FIELD, ElementType.CONSTRUCTOR})
+public @interface Autowired {
+ String value() default "";
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/dao/AccountDao.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/dao/AccountDao.java"
new file mode 100644
index 0000000000000000000000000000000000000000..462ad14477d321c9c0c6512d0dfcce25b7f8a9b4
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/dao/AccountDao.java"
@@ -0,0 +1,13 @@
+package com.lagou.edu.dao;
+
+import com.lagou.edu.pojo.Account;
+
+/**
+ * @author 应癫
+ */
+public interface AccountDao {
+
+ Account queryAccountByCardNo(String cardNo) throws Exception;
+
+ int updateAccountByCardNo(Account account) throws Exception;
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/dao/impl/JdbcTemplateDaoImpl.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/dao/impl/JdbcTemplateDaoImpl.java"
new file mode 100644
index 0000000000000000000000000000000000000000..fa374e4f72b0839cef05d8b16765c9edcd56784f
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/dao/impl/JdbcTemplateDaoImpl.java"
@@ -0,0 +1,44 @@
+package com.lagou.edu.dao.impl;
+
+import com.lagou.edu.pojo.Account;
+import com.lagou.edu.dao.AccountDao;
+//import org.springframework.beans.factory.annotation.Autowired;
+import com.lagou.edu.annotation.Autowired;
+import org.springframework.jdbc.core.JdbcTemplate;
+import org.springframework.jdbc.core.RowMapper;
+import org.springframework.stereotype.Repository;
+
+
+import java.sql.ResultSet;
+import java.sql.SQLException;
+
+/**
+ * @author 应癫
+ */
+@Repository("accountDao")
+public class JdbcTemplateDaoImpl implements AccountDao {
+
+ @Autowired
+ private JdbcTemplate jdbcTemplate;
+
+ @Override
+ public Account queryAccountByCardNo(String cardNo) throws Exception {
+ String sql = "select * from account where cardNo=?";
+ return jdbcTemplate.queryForObject(sql, new RowMapper() {
+ @Override
+ public Account mapRow(ResultSet resultSet, int i) throws SQLException {
+ Account account = new Account();
+ account.setName(resultSet.getString("name"));
+ account.setCardNo(resultSet.getString("cardNo"));
+ account.setMoney(resultSet.getInt("money"));
+ return account;
+ }
+ }, cardNo);
+ }
+
+ @Override
+ public int updateAccountByCardNo(Account account) throws Exception {
+ String sql = "update account set money=? where cardNo=?";
+ return jdbcTemplate.update(sql,account.getMoney(),account.getCardNo());
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/pojo/Account.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/pojo/Account.java"
new file mode 100644
index 0000000000000000000000000000000000000000..50125a01bc08bef869a4cc5e251958137e70a080
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/pojo/Account.java"
@@ -0,0 +1,40 @@
+package com.lagou.edu.pojo;
+
+/**
+ * @author 应癫
+ */
+public class Account {
+
+ private String cardNo;
+ private String name;
+ private int money;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public int getMoney() {
+ return money;
+ }
+
+ public void setMoney(int money) {
+ this.money = money;
+ }
+
+ public String getCardNo() { return cardNo; }
+
+ public void setCardNo(String cardNo) { this.cardNo = cardNo;}
+
+ @Override
+ public String toString() {
+ return "Account{" +
+ "cardNo='" + cardNo + '\'' +
+ ", name='" + name + '\'' +
+ ", money=" + money +
+ '}';
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/pojo/Result.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/pojo/Result.java"
new file mode 100644
index 0000000000000000000000000000000000000000..f747c5c05f89a7a6b9c5c0980f5e31823bda79f3
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/pojo/Result.java"
@@ -0,0 +1,44 @@
+package com.lagou.edu.pojo;
+
+import org.springframework.beans.BeansException;
+import org.springframework.beans.factory.*;
+import org.springframework.context.ApplicationContext;
+import org.springframework.context.ApplicationContextAware;
+import org.springframework.context.annotation.Scope;
+
+import javax.annotation.PostConstruct;
+import javax.annotation.PreDestroy;
+
+/**
+ * @author 应癫
+ */
+public class Result {
+
+ private String status;
+ private String message;
+
+ public String getStatus() {
+ return status;
+ }
+
+ public void setStatus(String status) {
+ this.status = status;
+ }
+
+ public String getMessage() {
+ return message;
+ }
+
+ public void setMessage(String message) {
+ this.message = message;
+ }
+
+ @Override
+ public String toString() {
+ return "Result{" +
+ "status='" + status + '\'' +
+ ", message='" + message + '\'' +
+ '}';
+ }
+
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/service/TransferService.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/service/TransferService.java"
new file mode 100644
index 0000000000000000000000000000000000000000..9bbf63a4f7b17e0bde8fb624bf15ec91b56aa9c8
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/service/TransferService.java"
@@ -0,0 +1,12 @@
+package com.lagou.edu.service;
+
+import org.springframework.transaction.annotation.Transactional;
+
+/**
+ * @author 应癫
+ */
+
+public interface TransferService {
+
+ void transfer(String fromCardNo,String toCardNo,int money) throws Exception;
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/service/impl/TransferServiceImpl.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/service/impl/TransferServiceImpl.java"
new file mode 100644
index 0000000000000000000000000000000000000000..0694fd40dff65116660fb833192154c2bfc334da
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/service/impl/TransferServiceImpl.java"
@@ -0,0 +1,40 @@
+package com.lagou.edu.service.impl;
+
+import com.lagou.edu.dao.AccountDao;
+import com.lagou.edu.pojo.Account;
+import com.lagou.edu.service.TransferService;
+import com.lagou.edu.annotation.Autowired;
+//import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Qualifier;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+
+/**
+ * @author 应癫
+ */
+@Service("transferService")
+@Transactional
+public class TransferServiceImpl implements TransferService {
+
+
+ @Autowired
+ @Qualifier("accountDao")
+ private AccountDao accountDao;
+
+ @Override
+ public void transfer(String fromCardNo, String toCardNo, int money) throws Exception {
+
+ Account from = accountDao.queryAccountByCardNo(fromCardNo);
+ Account to = accountDao.queryAccountByCardNo(toCardNo);
+
+ from.setMoney(from.getMoney()-money);
+ to.setMoney(to.getMoney()+money);
+
+ accountDao.updateAccountByCardNo(to);
+ int c = 1/0;
+ accountDao.updateAccountByCardNo(from);
+
+
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/servlet/TransferServlet.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/servlet/TransferServlet.java"
new file mode 100644
index 0000000000000000000000000000000000000000..e69f68addf48d557b1f67d0ede0b535110a1a485
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/servlet/TransferServlet.java"
@@ -0,0 +1,76 @@
+package com.lagou.edu.servlet;
+
+import com.lagou.edu.utils.JsonUtils;
+import com.lagou.edu.pojo.Result;
+import com.lagou.edu.service.TransferService;
+import com.lagou.edu.utils.MyBeanFactory;
+import com.lagou.edu.utils.ProxyFactory;
+import org.springframework.web.bind.support.WebExchangeBindException;
+import org.springframework.web.context.WebApplicationContext;
+import org.springframework.web.context.support.WebApplicationContextUtils;
+
+import javax.servlet.ServletException;
+import javax.servlet.annotation.WebServlet;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.sql.DataSource;
+import java.io.IOException;
+
+/**
+ * @author 应癫
+ */
+@WebServlet(name="transferServlet",urlPatterns = "/transferServlet")
+public class TransferServlet extends HttpServlet {
+
+ private TransferService transferService = null ;
+
+
+ @Override
+ public void init() throws ServletException {
+ WebApplicationContext webApplicationContext = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
+
+ ProxyFactory proxyFactory = (ProxyFactory) webApplicationContext.getBean("proxyFactory");
+ DataSource dataSource = (DataSource) webApplicationContext.getBean("dataSource");
+ MyBeanFactory myBeanFactory = MyBeanFactory.getInstance();
+ myBeanFactory.addBean(proxyFactory, "proxyFactory");
+ myBeanFactory.addBean(dataSource, "dataSource");
+ myBeanFactory.init();
+// transferService = (TransferService) proxyFactory.getJdkProxy(webApplicationContext.getBean("transferService"));
+// transferService = (TransferService) webApplicationContext.getBean("transferService");
+ transferService = (TransferService) myBeanFactory.getBean("transferService");
+ }
+
+ @Override
+ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
+ doPost(req,resp);
+ }
+
+ @Override
+ protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
+ // 设置请求体的字符编码
+ req.setCharacterEncoding("UTF-8");
+
+ String fromCardNo = req.getParameter("fromCardNo");
+ String toCardNo = req.getParameter("toCardNo");
+ String moneyStr = req.getParameter("money");
+ int money = Integer.parseInt(moneyStr);
+
+ Result result = new Result();
+
+ try {
+
+ // 2. 调用service层方法
+ transferService.transfer(fromCardNo,toCardNo,money);
+ result.setStatus("200");
+ } catch (Exception e) {
+ e.printStackTrace();
+ result.setStatus("201");
+ result.setMessage(e.toString());
+ }
+
+ // 响应
+ resp.setContentType("application/json;charset=utf-8");
+ resp.getWriter().print(JsonUtils.object2Json(result));
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/utils/ConnectionUtils.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/utils/ConnectionUtils.java"
new file mode 100644
index 0000000000000000000000000000000000000000..05030767f284eb973bba8a9743cc7ad217005c20
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/utils/ConnectionUtils.java"
@@ -0,0 +1,39 @@
+package com.lagou.edu.utils;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import javax.sql.DataSource;
+import java.sql.Connection;
+import java.sql.SQLException;
+
+/**
+ * @author 应癫
+ */
+@Component("connectionUtils")
+public class ConnectionUtils {
+
+ @Autowired
+ private DataSource dataSource;
+
+
+ private ThreadLocal threadLocal = new ThreadLocal<>(); // 存储当前线程的连接
+
+ /**
+ * 从当前线程获取连接
+ */
+ public Connection getCurrentThreadConn() throws SQLException {
+ /**
+ * 判断当前线程中是否已经绑定连接,如果没有绑定,需要从连接池获取一个连接绑定到当前线程
+ */
+ Connection connection = threadLocal.get();
+ if(connection == null) {
+ // 从连接池拿连接并绑定到线程
+ connection = dataSource.getConnection();
+ // 绑定到当前线程
+ threadLocal.set(connection);
+ }
+ return connection;
+
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/utils/JsonUtils.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/utils/JsonUtils.java"
new file mode 100644
index 0000000000000000000000000000000000000000..9bf153ea3ca011899cf43a9d1ec4fbc581fef82c
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/utils/JsonUtils.java"
@@ -0,0 +1,68 @@
+package com.lagou.edu.utils;
+
+import java.util.List;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.JavaType;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.context.annotation.EnableAspectJAutoProxy;
+
+/**
+ * JSON工具类(使用的是jackson实现的)
+ * @author 应癫
+ */
+public class JsonUtils {
+
+ private static final ObjectMapper MAPPER = new ObjectMapper();
+
+ /**
+ * 将对象转换成json字符串。
+ * @param data
+ * @return
+ */
+ public static String object2Json(Object data) {
+ try {
+ String string = MAPPER.writeValueAsString(data);
+ return string;
+ } catch (JsonProcessingException e) {
+ e.printStackTrace();
+ }
+ return null;
+ }
+
+ /**
+ * 将json结果集转化为对象
+ *
+ * @param jsonData json数据
+ * @param beanType 对象中的object类型
+ * @return
+ */
+ public static T json2Pojo(String jsonData, Class beanType) {
+ try {
+ T t = MAPPER.readValue(jsonData, beanType);
+ return t;
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ return null;
+ }
+
+ /**
+ * 将json数据转换成pojo对象list
+ * @param jsonData
+ * @param beanType
+ * @return
+ */
+ public static List json2List(String jsonData, Class beanType) {
+ JavaType javaType = MAPPER.getTypeFactory().constructParametricType(List.class, beanType);
+ try {
+ List list = MAPPER.readValue(jsonData, javaType);
+ return list;
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+ return null;
+ }
+
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/utils/MyBeanFactory.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/utils/MyBeanFactory.java"
new file mode 100644
index 0000000000000000000000000000000000000000..1cf58226f52268ae24e79a57e29d3796f946de68
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/utils/MyBeanFactory.java"
@@ -0,0 +1,220 @@
+package com.lagou.edu.utils;
+
+import com.lagou.edu.annotation.Autowired;
+//import com.lagou.edu.annotation.Service;
+import org.springframework.jdbc.core.JdbcTemplate;
+import org.springframework.stereotype.Repository;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+import org.springframework.util.StringUtils;
+
+import javax.sql.DataSource;
+import java.io.File;
+import java.io.FileFilter;
+import java.lang.annotation.Annotation;
+import java.lang.reflect.Constructor;
+import java.lang.reflect.Field;
+import java.net.URL;
+import java.net.URLDecoder;
+import java.util.*;
+
+public class MyBeanFactory {
+
+ private static final String PAKAGE_NAME = "com/lagou/edu";
+ private static List classList = new ArrayList<>();
+
+ private Map beanMap = new HashMap<>(32);
+ private Map classNameToAnnoMap = new HashMap<>(32);
+
+ private MyBeanFactory() {
+
+
+ }
+
+ public void init() {
+ try {
+ Enumeration urls = Thread.currentThread()
+ .getContextClassLoader().getResources(PAKAGE_NAME);
+ while (urls.hasMoreElements()) {
+ URL url = urls.nextElement();
+ if ("file".equals(url.getProtocol())) {
+ String filepath = URLDecoder.decode(url.getFile(), "UTF-8");
+ getClassList(PAKAGE_NAME, filepath);
+ }
+ }
+ System.out.println(classList);
+ for (String bean : classList) {
+ getBean(bean);
+ }
+ System.out.println(beanMap);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ public static MyBeanFactory getInstance() {
+ return new MyBeanFactory();
+ }
+
+ public Object getBean(String beanId) {
+ Object bean = beanMap.get(beanId);
+ if (bean == null) {
+ try {
+ bean = createBean(beanId);
+ } catch (Exception e) {
+ bean = null;
+ }
+ }
+ return bean;
+ }
+
+ private Object createBean(String beanId) throws Exception {
+// char[] arr = beanId.toCharArray();
+// arr[0] = Character.toUpperCase(arr[0]);
+// String className = new String(arr);
+ Class> clazz = Class.forName(beanId);
+ Object obj = parseAnnoations(beanId);
+ parseFieldAnnotation(clazz, obj);
+ obj = postProcess(clazz,obj,beanId);
+ return obj;
+ }
+
+ private void getClassList(String packageName, String filePath) {
+ File dir = new File(filePath);
+ if (!dir.exists() || !dir.isDirectory()) {
+ return;
+ }
+ File[] files = dir.listFiles(new FileFilter() {
+ @Override
+ public boolean accept(File pathname) {
+ return pathname.isDirectory() || pathname.getName().endsWith(".class");
+ }
+ });
+ for (File file : files) {
+ if (file.isDirectory()) {
+ getClassList(packageName + "/" + file.getName(), file.getAbsolutePath());
+ } else {
+ String className = packageName + "/" + file.getName().replace(".class", "");
+ className = className.replace("/", ".");
+ classList.add(className);
+ }
+
+ }
+ }
+
+ // private Object parseAnnoations(Class> clazz) throws InstantiationException, IllegalAccessException {
+ private Object parseAnnoations(String className) throws Exception {
+// if (clazz.isAnnotationPresent(Service.class)) {
+// Service service = clazz.getAnnotation(Service.class);
+// String name = service.value();
+// Class>[] interfaces = clazz.getInterfaces();
+//
+// Object o = clazz.newInstance();
+// beanMap.put(name,o);
+// return o;
+// }
+ String name = classNameToAnnoMap.get(className);
+ Object o = beanMap.get(name);
+ if (o != null) {
+ return o;
+ }
+ Class> clazz = Class.forName(className);
+ Annotation[] annotateds = clazz.getAnnotations();
+ if (clazz.isInterface() || (annotateds.length <= 0 && className.contains("$"))) {
+ return null;
+ }
+ o = clazz.newInstance();
+ for (Annotation annotation : annotateds) {
+ String value = null;
+ if (annotation instanceof Service) {
+ value = ((Service) annotation).value();
+ } else if (annotation instanceof Repository) {
+ value = ((Repository) annotation).value();
+ } else if (annotation instanceof Autowired) {
+ value = ((Autowired) annotation).value();
+ }
+ if (value != null && value.length() == 0) {
+ try {
+ value = clazz.getSuperclass().getName();
+ } catch (Exception e) {
+ value = clazz.getInterfaces()[0].getName();
+ }
+ value = value.substring(0, 1).toLowerCase(Locale.ROOT)
+ + value.substring(1);
+ }
+ beanMap.put(value, o);
+ classNameToAnnoMap.put(className, value);
+ return o;
+ }
+ return o;
+ }
+
+ private void parseFieldAnnotation(Class> clazz, Object obj) throws Exception {
+ Field[] fields = clazz.getDeclaredFields();
+ for (Field field : fields) {
+ if (!field.isAnnotationPresent(Autowired.class)) {
+ return;
+ }
+ Class> c = field.getType();
+ Annotation annotation = field.getAnnotation(Autowired.class);
+ String annonationName = ((Autowired) annotation).value();
+ String implClassName = null;
+ Object impl = null;
+ if (StringUtils.isEmpty(annonationName) && c.isInterface()) {
+ // TODO get the interface implement
+ implClassName = classList.stream()
+ .filter(item -> item.contains(c.getPackageName() + ".imp"))
+ .filter(item -> !item.contains("$"))
+ .findFirst().get();
+ annonationName = classNameToAnnoMap.get(implClassName);
+ impl = beanMap.get(annonationName);
+ } else {
+ if (c.getName().contains("JdbcTemplate")) {
+ Object param = beanMap.get("dataSource");
+ impl = c.newInstance();
+ ((JdbcTemplate)impl).setDataSource((DataSource)param);
+ }else {
+ impl = c.newInstance();
+ }
+ }
+ field.setAccessible(true);
+ if (impl != null) {
+ field.set(obj, impl);
+ return;
+ }
+
+ try {
+// Class> implClass = Class.forName(implClassName);
+// if (implClass.isAnnotation()){
+//
+// }
+// Object impl = implClass.newInstance();
+// impl = createBean(implClass);
+ impl = createBean(implClassName);
+ field.set(obj, impl);
+ } catch (Exception e) {
+ System.out.println(e);
+ }
+// }
+ System.out.println("find annotation Autowired " + field);
+ field.setAccessible(false);
+ }
+ }
+
+ public Object postProcess(Class> clazz,Object obj, String className){
+ Transactional transactional = clazz.getAnnotation(Transactional.class);
+ if (transactional == null){
+ return obj;
+ }
+ ProxyFactory proxyFactory = (ProxyFactory) beanMap.get("proxyFactory");
+ String beanName = classNameToAnnoMap.get(className);
+ Object proxyObj = proxyFactory.getJdkProxy(obj);
+ beanMap.put(beanName, proxyObj);
+ return proxyObj;
+ }
+
+ public void addBean(Object obj, String name){
+ beanMap.put(name,obj);
+ }
+
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/utils/ProxyFactory.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/utils/ProxyFactory.java"
new file mode 100644
index 0000000000000000000000000000000000000000..e95f1d8b28e90f46770ef41168852aeb84a8a005
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/utils/ProxyFactory.java"
@@ -0,0 +1,104 @@
+package com.lagou.edu.utils;
+
+import net.sf.cglib.proxy.Enhancer;
+import net.sf.cglib.proxy.MethodInterceptor;
+import net.sf.cglib.proxy.MethodProxy;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import java.lang.reflect.InvocationHandler;
+import java.lang.reflect.Method;
+import java.lang.reflect.Proxy;
+
+/**
+ * @author 应癫
+ *
+ *
+ * 代理对象工厂:生成代理对象的
+ */
+
+
+@Component("proxyFactory")
+public class ProxyFactory {
+
+
+ @Autowired
+ private TransactionManager transactionManager;
+
+
+
+
+ /**
+ * Jdk动态代理
+ * @param obj 委托对象
+ * @return 代理对象
+ */
+ public Object getJdkProxy(Object obj) {
+
+ // 获取代理对象
+ return Proxy.newProxyInstance(obj.getClass().getClassLoader(), obj.getClass().getInterfaces(),
+ new InvocationHandler() {
+ @Override
+ public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
+ Object result = null;
+
+ try{
+ // 开启事务(关闭事务的自动提交)
+ transactionManager.beginTransaction();
+ System.out.println("begin" + Thread.currentThread());
+ result = method.invoke(obj,args);
+
+ // 提交事务
+
+ transactionManager.commit();
+ }catch (Exception e) {
+ e.printStackTrace();
+ // 回滚事务
+ transactionManager.rollback();
+ System.out.println("rollbacke" + Thread.currentThread());
+
+ // 抛出异常便于上层servlet捕获
+ throw e;
+
+ }
+
+ return result;
+ }
+ });
+
+ }
+
+
+ /**
+ * 使用cglib动态代理生成代理对象
+ * @param obj 委托对象
+ * @return
+ */
+ public Object getCglibProxy(Object obj) {
+ return Enhancer.create(obj.getClass(), new MethodInterceptor() {
+ @Override
+ public Object intercept(Object o, Method method, Object[] objects, MethodProxy methodProxy) throws Throwable {
+ Object result = null;
+ try{
+ // 开启事务(关闭事务的自动提交)
+ transactionManager.beginTransaction();
+
+ result = method.invoke(obj,objects);
+
+ // 提交事务
+
+ transactionManager.commit();
+ }catch (Exception e) {
+ e.printStackTrace();
+ // 回滚事务
+ transactionManager.rollback();
+
+ // 抛出异常便于上层servlet捕获
+ throw e;
+
+ }
+ return result;
+ }
+ });
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/utils/TransactionManager.java" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/utils/TransactionManager.java"
new file mode 100644
index 0000000000000000000000000000000000000000..fa3ebe1b5b43c4aec80cedb58a9bc7e95f676b21
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/java/com/lagou/edu/utils/TransactionManager.java"
@@ -0,0 +1,35 @@
+package com.lagou.edu.utils;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+import java.sql.SQLException;
+
+/**
+ * @author 应癫
+ *
+ * 事务管理器类:负责手动事务的开启、提交、回滚
+ */
+@Component("transactionManager")
+public class TransactionManager {
+
+
+ @Autowired
+ private ConnectionUtils connectionUtils;
+
+ // 开启手动事务控制
+ public void beginTransaction() throws SQLException {
+ connectionUtils.getCurrentThreadConn().setAutoCommit(false);
+ }
+
+ // 提交事务
+ public void commit() throws SQLException {
+ connectionUtils.getCurrentThreadConn().commit();
+ }
+
+
+ // 回滚事务
+ public void rollback() throws SQLException {
+ connectionUtils.getCurrentThreadConn().rollback();
+ }
+}
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/resources/applicationContext.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/resources/applicationContext.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..bd6407c8a34ad8ad2b4f840faa718b290c460ff7
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/resources/applicationContext.xml"
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/resources/jdbc.properties" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/resources/jdbc.properties"
new file mode 100644
index 0000000000000000000000000000000000000000..099c3e81702bd270893e4ee9d34b91c12a04e025
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/resources/jdbc.properties"
@@ -0,0 +1,5 @@
+jdbc.driver=com.mysql.cj.jdbc.Driver
+jdbc.url=jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf8&useSSL=true&serverTimezone=UTC
+#jdbc.url=jdbc:mysql://127.0.0.1:3306/test?useSSL=true&serverTimezone=UTC
+jdbc.username=star
+jdbc.password=123456
\ No newline at end of file
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/webapp/META-INF/MANIFEST.MF" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/webapp/META-INF/MANIFEST.MF"
new file mode 100644
index 0000000000000000000000000000000000000000..70a71b51b9478ad73188d27090354797d2253c39
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/webapp/META-INF/MANIFEST.MF"
@@ -0,0 +1,5 @@
+Manifest-Version: 1.0
+Created-By: IntelliJ IDEA
+Built-By: Administrator
+Build-Jdk: version 11.0.14
+
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/webapp/WEB-INF/web.xml" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/webapp/WEB-INF/web.xml"
new file mode 100644
index 0000000000000000000000000000000000000000..28b5ae98234148eec10a1e9173d4c45d36b43f22
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/webapp/WEB-INF/web.xml"
@@ -0,0 +1,19 @@
+
+
+
+ Archetype Created Web Application
+
+
+
+
+ contextConfigLocation
+ classpath:applicationContext.xml
+
+
+
+ org.springframework.web.context.ContextLoaderListener
+
+
+
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/webapp/index.html" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/webapp/index.html"
new file mode 100644
index 0000000000000000000000000000000000000000..9bdfd0a53cb31d8f9af7707a3e7fc676db0e79f6
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/webapp/index.html"
@@ -0,0 +1,146 @@
+
+
+
+
+ 转账汇款2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/webapp/js/jquery-3.4.1.min.js" "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/webapp/js/jquery-3.4.1.min.js"
new file mode 100644
index 0000000000000000000000000000000000000000..a1c07fd803b5fc9c54f44e31123ae4fa11e134b0
--- /dev/null
+++ "b/02_\344\275\234\344\270\232\347\233\270\345\205\263/\347\254\254\344\270\200\351\230\266\346\256\265\346\250\241\345\235\227\344\272\214/code/lagou-transfer-transaction/src/main/webapp/js/jquery-3.4.1.min.js"
@@ -0,0 +1,2 @@
+/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */
+!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(m.childNodes),m.childNodes),t[m.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:m)!==C&&T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&U.test(t)){(s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=k),o=(l=h(t)).length;while(o--)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ee.test(t)&&ye(e.parentNode)||e}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){A(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[k]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:m;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),m!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML=" ",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML=" ";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===m&&y(m,e)?-1:t===C||t.ownerDocument===m&&y(m,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]===m?-1:s[r]===m?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&E&&!A[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,q=k(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""," "],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;nx",y.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&k.event.add(e,i,ke)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(t);if(v){n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ie,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;while(l--)d=g=(s=Ee.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(R)||[""]).length;while(l--)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=k.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)k.event.remove(e,d+t[l],n,r,!0);k.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/