Initial commit

This commit is contained in:
Yo Vinchen 2023-03-15 12:33:09 +08:00
parent 28025d4d4f
commit 19ab07f8ce
54 changed files with 777 additions and 0 deletions

View File

@ -9,6 +9,7 @@
<module name="springboot_01_03_quickstart" /> <module name="springboot_01_03_quickstart" />
<module name="springboot_01_02_quickstart" /> <module name="springboot_01_02_quickstart" />
<module name="springboot_01_04_quickstart" /> <module name="springboot_01_04_quickstart" />
<module name="springboot_07_durid" />
<module name="springboot_04_junit" /> <module name="springboot_04_junit" />
<module name="springboot_05_mybatis" /> <module name="springboot_05_mybatis" />
<module name="springboot_03_yaml" /> <module name="springboot_03_yaml" />
@ -29,6 +30,8 @@
<module name="springboot_04_junit" target="17" /> <module name="springboot_04_junit" target="17" />
<module name="springboot_05_mybatis" target="17" /> <module name="springboot_05_mybatis" target="17" />
<module name="springboot_06_mybatis_plus" target="17" /> <module name="springboot_06_mybatis_plus" target="17" />
<module name="springboot_07_druid" target="17" />
<module name="springboot_07_durid" target="17" />
</bytecodeTargetLevel> </bytecodeTargetLevel>
</component> </component>
<component name="JavacSettings"> <component name="JavacSettings">
@ -43,6 +46,8 @@
<module name="springboot_04_junit" options="-parameters" /> <module name="springboot_04_junit" options="-parameters" />
<module name="springboot_05_mybatis" options="-parameters" /> <module name="springboot_05_mybatis" options="-parameters" />
<module name="springboot_06_mybatis_plus" options="-parameters" /> <module name="springboot_06_mybatis_plus" options="-parameters" />
<module name="springboot_07_druid" options="-parameters" />
<module name="springboot_07_durid" options="-parameters" />
</option> </option>
</component> </component>
</project> </project>

View File

@ -17,5 +17,7 @@
<file url="file://$PROJECT_DIR$/springboot_04_junit/src/main/java" charset="UTF-8" /> <file url="file://$PROJECT_DIR$/springboot_04_junit/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/springboot_05_mybatis/src/main/java" charset="UTF-8" /> <file url="file://$PROJECT_DIR$/springboot_05_mybatis/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/springboot_06_mybatis_plus/src/main/java" charset="UTF-8" /> <file url="file://$PROJECT_DIR$/springboot_06_mybatis_plus/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/springboot_07_druid/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/springboot_07_durid/src/main/java" charset="UTF-8" />
</component> </component>
</project> </project>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: ch.qos.logback:logback-classic:1.2.11">
<CLASSES>
<root url="jar://E:/maven-cangku/ch/qos/logback/logback-classic/1.2.11/logback-classic-1.2.11.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/ch/qos/logback/logback-classic/1.2.11/logback-classic-1.2.11-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/ch/qos/logback/logback-classic/1.2.11/logback-classic-1.2.11-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: ch.qos.logback:logback-core:1.2.11">
<CLASSES>
<root url="jar://E:/maven-cangku/ch/qos/logback/logback-core/1.2.11/logback-core-1.2.11.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/ch/qos/logback/logback-core/1.2.11/logback-core-1.2.11-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/ch/qos/logback/logback-core/1.2.11/logback-core-1.2.11-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.alibaba:druid:1.2.16">
<CLASSES>
<root url="jar://E:/maven-cangku/com/alibaba/druid/1.2.16/druid-1.2.16.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/com/alibaba/druid/1.2.16/druid-1.2.16-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/com/alibaba/druid/1.2.16/druid-1.2.16-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.alibaba:druid-spring-boot-starter:1.2.16">
<CLASSES>
<root url="jar://E:/maven-cangku/com/alibaba/druid-spring-boot-starter/1.2.16/druid-spring-boot-starter-1.2.16.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/com/alibaba/druid-spring-boot-starter/1.2.16/druid-spring-boot-starter-1.2.16-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/com/alibaba/druid-spring-boot-starter/1.2.16/druid-spring-boot-starter-1.2.16-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.jayway.jsonpath:json-path:2.6.0">
<CLASSES>
<root url="jar://E:/maven-cangku/com/jayway/jsonpath/json-path/2.6.0/json-path-2.6.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/com/jayway/jsonpath/json-path/2.6.0/json-path-2.6.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/com/jayway/jsonpath/json-path/2.6.0/json-path-2.6.0-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.zaxxer:HikariCP:4.0.3">
<CLASSES>
<root url="jar://E:/maven-cangku/com/zaxxer/HikariCP/4.0.3/HikariCP-4.0.3.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/com/zaxxer/HikariCP/4.0.3/HikariCP-4.0.3-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/com/zaxxer/HikariCP/4.0.3/HikariCP-4.0.3-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: net.bytebuddy:byte-buddy:1.11.22">
<CLASSES>
<root url="jar://E:/maven-cangku/net/bytebuddy/byte-buddy/1.11.22/byte-buddy-1.11.22.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/net/bytebuddy/byte-buddy/1.11.22/byte-buddy-1.11.22-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/net/bytebuddy/byte-buddy/1.11.22/byte-buddy-1.11.22-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: net.bytebuddy:byte-buddy-agent:1.11.22">
<CLASSES>
<root url="jar://E:/maven-cangku/net/bytebuddy/byte-buddy-agent/1.11.22/byte-buddy-agent-1.11.22.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/net/bytebuddy/byte-buddy-agent/1.11.22/byte-buddy-agent-1.11.22-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/net/bytebuddy/byte-buddy-agent/1.11.22/byte-buddy-agent-1.11.22-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.apache.logging.log4j:log4j-api:2.17.2">
<CLASSES>
<root url="jar://E:/maven-cangku/org/apache/logging/log4j/log4j-api/2.17.2/log4j-api-2.17.2.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/apache/logging/log4j/log4j-api/2.17.2/log4j-api-2.17.2-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/apache/logging/log4j/log4j-api/2.17.2/log4j-api-2.17.2-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.17.2">
<CLASSES>
<root url="jar://E:/maven-cangku/org/apache/logging/log4j/log4j-to-slf4j/2.17.2/log4j-to-slf4j-2.17.2.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/apache/logging/log4j/log4j-to-slf4j/2.17.2/log4j-to-slf4j-2.17.2-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/apache/logging/log4j/log4j-to-slf4j/2.17.2/log4j-to-slf4j-2.17.2-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.assertj:assertj-core:3.21.0">
<CLASSES>
<root url="jar://E:/maven-cangku/org/assertj/assertj-core/3.21.0/assertj-core-3.21.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/assertj/assertj-core/3.21.0/assertj-core-3.21.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/assertj/assertj-core/3.21.0/assertj-core-3.21.0-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.junit.jupiter:junit-jupiter:5.8.2">
<CLASSES>
<root url="jar://E:/maven-cangku/org/junit/jupiter/junit-jupiter/5.8.2/junit-jupiter-5.8.2.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/junit/jupiter/junit-jupiter/5.8.2/junit-jupiter-5.8.2-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/junit/jupiter/junit-jupiter/5.8.2/junit-jupiter-5.8.2-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.junit.jupiter:junit-jupiter-api:5.8.2">
<CLASSES>
<root url="jar://E:/maven-cangku/org/junit/jupiter/junit-jupiter-api/5.8.2/junit-jupiter-api-5.8.2.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/junit/jupiter/junit-jupiter-api/5.8.2/junit-jupiter-api-5.8.2-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/junit/jupiter/junit-jupiter-api/5.8.2/junit-jupiter-api-5.8.2-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.junit.jupiter:junit-jupiter-engine:5.8.2">
<CLASSES>
<root url="jar://E:/maven-cangku/org/junit/jupiter/junit-jupiter-engine/5.8.2/junit-jupiter-engine-5.8.2.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/junit/jupiter/junit-jupiter-engine/5.8.2/junit-jupiter-engine-5.8.2-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/junit/jupiter/junit-jupiter-engine/5.8.2/junit-jupiter-engine-5.8.2-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.junit.jupiter:junit-jupiter-params:5.8.2">
<CLASSES>
<root url="jar://E:/maven-cangku/org/junit/jupiter/junit-jupiter-params/5.8.2/junit-jupiter-params-5.8.2.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/junit/jupiter/junit-jupiter-params/5.8.2/junit-jupiter-params-5.8.2-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/junit/jupiter/junit-jupiter-params/5.8.2/junit-jupiter-params-5.8.2-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.junit.platform:junit-platform-commons:1.8.2">
<CLASSES>
<root url="jar://E:/maven-cangku/org/junit/platform/junit-platform-commons/1.8.2/junit-platform-commons-1.8.2.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/junit/platform/junit-platform-commons/1.8.2/junit-platform-commons-1.8.2-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/junit/platform/junit-platform-commons/1.8.2/junit-platform-commons-1.8.2-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.junit.platform:junit-platform-engine:1.8.2">
<CLASSES>
<root url="jar://E:/maven-cangku/org/junit/platform/junit-platform-engine/1.8.2/junit-platform-engine-1.8.2.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/junit/platform/junit-platform-engine/1.8.2/junit-platform-engine-1.8.2-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/junit/platform/junit-platform-engine/1.8.2/junit-platform-engine-1.8.2-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.mockito:mockito-core:4.0.0">
<CLASSES>
<root url="jar://E:/maven-cangku/org/mockito/mockito-core/4.0.0/mockito-core-4.0.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/mockito/mockito-core/4.0.0/mockito-core-4.0.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/mockito/mockito-core/4.0.0/mockito-core-4.0.0-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.mockito:mockito-junit-jupiter:4.0.0">
<CLASSES>
<root url="jar://E:/maven-cangku/org/mockito/mockito-junit-jupiter/4.0.0/mockito-junit-jupiter-4.0.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/mockito/mockito-junit-jupiter/4.0.0/mockito-junit-jupiter-4.0.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/mockito/mockito-junit-jupiter/4.0.0/mockito-junit-jupiter-4.0.0-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.mybatis:mybatis-spring:2.1.0">
<CLASSES>
<root url="jar://E:/maven-cangku/org/mybatis/mybatis-spring/2.1.0/mybatis-spring-2.1.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/mybatis/mybatis-spring/2.1.0/mybatis-spring-2.1.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/mybatis/mybatis-spring/2.1.0/mybatis-spring-2.1.0-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:2.3.0">
<CLASSES>
<root url="jar://E:/maven-cangku/org/mybatis/spring/boot/mybatis-spring-boot-autoconfigure/2.3.0/mybatis-spring-boot-autoconfigure-2.3.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/mybatis/spring/boot/mybatis-spring-boot-autoconfigure/2.3.0/mybatis-spring-boot-autoconfigure-2.3.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/mybatis/spring/boot/mybatis-spring-boot-autoconfigure/2.3.0/mybatis-spring-boot-autoconfigure-2.3.0-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:2.3.0">
<CLASSES>
<root url="jar://E:/maven-cangku/org/mybatis/spring/boot/mybatis-spring-boot-starter/2.3.0/mybatis-spring-boot-starter-2.3.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/mybatis/spring/boot/mybatis-spring-boot-starter/2.3.0/mybatis-spring-boot-starter-2.3.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/mybatis/spring/boot/mybatis-spring-boot-starter/2.3.0/mybatis-spring-boot-starter-2.3.0-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.slf4j:jul-to-slf4j:1.7.36">
<CLASSES>
<root url="jar://E:/maven-cangku/org/slf4j/jul-to-slf4j/1.7.36/jul-to-slf4j-1.7.36.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/slf4j/jul-to-slf4j/1.7.36/jul-to-slf4j-1.7.36-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/slf4j/jul-to-slf4j/1.7.36/jul-to-slf4j-1.7.36-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.slf4j:slf4j-api:1.7.36">
<CLASSES>
<root url="jar://E:/maven-cangku/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.springframework.boot:spring-boot:2.6.11">
<CLASSES>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot/2.6.11/spring-boot-2.6.11.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot/2.6.11/spring-boot-2.6.11-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot/2.6.11/spring-boot-2.6.11-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.6.11">
<CLASSES>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-autoconfigure/2.6.11/spring-boot-autoconfigure-2.6.11.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-autoconfigure/2.6.11/spring-boot-autoconfigure-2.6.11-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-autoconfigure/2.6.11/spring-boot-autoconfigure-2.6.11-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.springframework.boot:spring-boot-starter:2.6.11">
<CLASSES>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-starter/2.6.11/spring-boot-starter-2.6.11.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-starter/2.6.11/spring-boot-starter-2.6.11-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-starter/2.6.11/spring-boot-starter-2.6.11-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.6.11">
<CLASSES>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-starter-jdbc/2.6.11/spring-boot-starter-jdbc-2.6.11.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-starter-jdbc/2.6.11/spring-boot-starter-jdbc-2.6.11-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-starter-jdbc/2.6.11/spring-boot-starter-jdbc-2.6.11-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.springframework.boot:spring-boot-starter-logging:2.6.11">
<CLASSES>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-starter-logging/2.6.11/spring-boot-starter-logging-2.6.11.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-starter-logging/2.6.11/spring-boot-starter-logging-2.6.11-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-starter-logging/2.6.11/spring-boot-starter-logging-2.6.11-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.springframework.boot:spring-boot-starter-test:2.6.11">
<CLASSES>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-starter-test/2.6.11/spring-boot-starter-test-2.6.11.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-starter-test/2.6.11/spring-boot-starter-test-2.6.11-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-starter-test/2.6.11/spring-boot-starter-test-2.6.11-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.springframework.boot:spring-boot-test:2.6.11">
<CLASSES>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-test/2.6.11/spring-boot-test-2.6.11.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-test/2.6.11/spring-boot-test-2.6.11-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-test/2.6.11/spring-boot-test-2.6.11-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.springframework.boot:spring-boot-test-autoconfigure:2.6.11">
<CLASSES>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-test-autoconfigure/2.6.11/spring-boot-test-autoconfigure-2.6.11.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-test-autoconfigure/2.6.11/spring-boot-test-autoconfigure-2.6.11-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/springframework/boot/spring-boot-test-autoconfigure/2.6.11/spring-boot-test-autoconfigure-2.6.11-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.springframework:spring-aop:5.3.22">
<CLASSES>
<root url="jar://E:/maven-cangku/org/springframework/spring-aop/5.3.22/spring-aop-5.3.22.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/springframework/spring-aop/5.3.22/spring-aop-5.3.22-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/springframework/spring-aop/5.3.22/spring-aop-5.3.22-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.springframework:spring-beans:5.3.22">
<CLASSES>
<root url="jar://E:/maven-cangku/org/springframework/spring-beans/5.3.22/spring-beans-5.3.22.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/springframework/spring-beans/5.3.22/spring-beans-5.3.22-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/springframework/spring-beans/5.3.22/spring-beans-5.3.22-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.springframework:spring-context:5.3.22">
<CLASSES>
<root url="jar://E:/maven-cangku/org/springframework/spring-context/5.3.22/spring-context-5.3.22.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/springframework/spring-context/5.3.22/spring-context-5.3.22-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/springframework/spring-context/5.3.22/spring-context-5.3.22-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.springframework:spring-core:5.3.22">
<CLASSES>
<root url="jar://E:/maven-cangku/org/springframework/spring-core/5.3.22/spring-core-5.3.22.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/springframework/spring-core/5.3.22/spring-core-5.3.22-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/springframework/spring-core/5.3.22/spring-core-5.3.22-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.springframework:spring-expression:5.3.22">
<CLASSES>
<root url="jar://E:/maven-cangku/org/springframework/spring-expression/5.3.22/spring-expression-5.3.22.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/springframework/spring-expression/5.3.22/spring-expression-5.3.22-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/springframework/spring-expression/5.3.22/spring-expression-5.3.22-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.springframework:spring-jcl:5.3.22">
<CLASSES>
<root url="jar://E:/maven-cangku/org/springframework/spring-jcl/5.3.22/spring-jcl-5.3.22.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/springframework/spring-jcl/5.3.22/spring-jcl-5.3.22-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/springframework/spring-jcl/5.3.22/spring-jcl-5.3.22-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.springframework:spring-jdbc:5.3.22">
<CLASSES>
<root url="jar://E:/maven-cangku/org/springframework/spring-jdbc/5.3.22/spring-jdbc-5.3.22.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/springframework/spring-jdbc/5.3.22/spring-jdbc-5.3.22-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/springframework/spring-jdbc/5.3.22/spring-jdbc-5.3.22-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.springframework:spring-test:5.3.22">
<CLASSES>
<root url="jar://E:/maven-cangku/org/springframework/spring-test/5.3.22/spring-test-5.3.22.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/springframework/spring-test/5.3.22/spring-test-5.3.22-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/springframework/spring-test/5.3.22/spring-test-5.3.22-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.springframework:spring-tx:5.3.22">
<CLASSES>
<root url="jar://E:/maven-cangku/org/springframework/spring-tx/5.3.22/spring-tx-5.3.22.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/springframework/spring-tx/5.3.22/spring-tx-5.3.22-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/springframework/spring-tx/5.3.22/spring-tx-5.3.22-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.xmlunit:xmlunit-core:2.8.4">
<CLASSES>
<root url="jar://E:/maven-cangku/org/xmlunit/xmlunit-core/2.8.4/xmlunit-core-2.8.4.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/xmlunit/xmlunit-core/2.8.4/xmlunit-core-2.8.4-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/xmlunit/xmlunit-core/2.8.4/xmlunit-core-2.8.4-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="Maven: org.yaml:snakeyaml:1.29">
<CLASSES>
<root url="jar://E:/maven-cangku/org/yaml/snakeyaml/1.29/snakeyaml-1.29.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://E:/maven-cangku/org/yaml/snakeyaml/1.29/snakeyaml-1.29-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://E:/maven-cangku/org/yaml/snakeyaml/1.29/snakeyaml-1.29-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -26,6 +26,8 @@
<option value="$PROJECT_DIR$/springboot_05_mybatis/pom.xml" /> <option value="$PROJECT_DIR$/springboot_05_mybatis/pom.xml" />
<option value="$PROJECT_DIR$/springboot_03_yaml/pom.xml" /> <option value="$PROJECT_DIR$/springboot_03_yaml/pom.xml" />
<option value="$PROJECT_DIR$/springboot_06_mybatis_plus/pom.xml" /> <option value="$PROJECT_DIR$/springboot_06_mybatis_plus/pom.xml" />
<option value="$PROJECT_DIR$/springboot_07_druid/pom.xml" />
<option value="$PROJECT_DIR$/springboot_07_durid/pom.xml" />
</list> </list>
</option> </option>
</component> </component>

View File

@ -11,6 +11,7 @@
<module fileurl="file://$PROJECT_DIR$/springboot_04_junit/springboot_04_junit.iml" filepath="$PROJECT_DIR$/springboot_04_junit/springboot_04_junit.iml" /> <module fileurl="file://$PROJECT_DIR$/springboot_04_junit/springboot_04_junit.iml" filepath="$PROJECT_DIR$/springboot_04_junit/springboot_04_junit.iml" />
<module fileurl="file://$PROJECT_DIR$/springboot_05_mybatis/springboot_05_mybatis.iml" filepath="$PROJECT_DIR$/springboot_05_mybatis/springboot_05_mybatis.iml" /> <module fileurl="file://$PROJECT_DIR$/springboot_05_mybatis/springboot_05_mybatis.iml" filepath="$PROJECT_DIR$/springboot_05_mybatis/springboot_05_mybatis.iml" />
<module fileurl="file://$PROJECT_DIR$/springboot_06_mybatis_plus/springboot_06_mybatis_plus.iml" filepath="$PROJECT_DIR$/springboot_06_mybatis_plus/springboot_06_mybatis_plus.iml" /> <module fileurl="file://$PROJECT_DIR$/springboot_06_mybatis_plus/springboot_06_mybatis_plus.iml" filepath="$PROJECT_DIR$/springboot_06_mybatis_plus/springboot_06_mybatis_plus.iml" />
<module fileurl="file://$PROJECT_DIR$/springboot_07_durid/springboot_07_durid.iml" filepath="$PROJECT_DIR$/springboot_07_durid/springboot_07_durid.iml" />
</modules> </modules>
</component> </component>
</project> </project>

33
springboot_07_durid/.gitignore vendored Normal file
View File

@ -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/

View File

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.11</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.yv</groupId>
<artifactId>springboot_07_durid</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>springboot_07_durid</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>17</java.version>
</properties>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.mybatis.spring.boot/mybatis-spring-boot-starter -->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.3.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.alibaba/druid-spring-boot-starter -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.2.16</version>
</dependency>
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.49</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,13 @@
package com.yv;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Springboot07DuridApplication {
public static void main(String[] args) {
SpringApplication.run(Springboot07DuridApplication.class, args);
}
}

View File

@ -0,0 +1,19 @@
package com.yv.dao;
import com.yv.domain.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
/**
* @author YoVinchen
* @date 2023/3/9 下午 3:25
*/
@Mapper
public interface BookDao {
/**
* @param id
* @return
*/
@Select("select * from tbl_book where id = #{id}")
public Book getById(Integer id);
}

View File

@ -0,0 +1,55 @@
package com.yv.domain;
/**
* @author YoVinchen
* @date 2023/3/9 下午 3:23
*/
public class Book {
private Integer id;
private String type;
private String name;
private String description;
@Override
public String toString() {
return "Book{" +
"id=" + id +
", type='" + type + '\'' +
", name='" + name + '\'' +
", description='" + description + '\'' +
'}';
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}

View File

@ -0,0 +1,16 @@
# 配置相关配置
#spring:
# datasource:
# driver-class-name: com.mysql.jdbc.Driver
# url: jdbc:mysql://localhost:3306/ssm_db?useSSL=false
# username: root
# password: 8520
# type: com.alibaba.druid.pool.DruidDataSource
spring:
datasource:
druid:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/ssm_db?useSSL=false
username: root
password: 8520

View File

@ -0,0 +1,18 @@
package com.yv;
import com.yv.dao.BookDao;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class Springboot07DuridApplicationTests {
@Autowired
private BookDao bookDao;
@Test
void contextLoads() {
System.out.println(bookDao.getById(1));
}
}