pom.xml

    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <project xmlns="http://maven.apache.org/POM/4.0.0"
    3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    5. <modelVersion>4.0.0</modelVersion>
    6. <groupId>com.kkb</groupId>
    7. <artifactId>spring04-jdbc</artifactId>
    8. <version>1.0-SNAPSHOT</version>
    9. <dependencies>
    10. <!-- 测试依赖 -->
    11. <dependency>
    12. <groupId>junit</groupId>
    13. <artifactId>junit</artifactId>
    14. <version>4.12</version>
    15. <scope>test</scope>
    16. </dependency>
    17. <!-- Spring核心依赖 -->
    18. <dependency>
    19. <groupId>org.springframework</groupId>
    20. <artifactId>spring-context</artifactId>
    21. <version>5.2.13.RELEASE</version>
    22. </dependency>
    23. <dependency>
    24. <groupId>org.springframework</groupId>
    25. <artifactId>spring-jdbc</artifactId>
    26. <version>5.2.13.RELEASE</version>
    27. </dependency>
    28. <dependency>
    29. <groupId>mysql</groupId>
    30. <artifactId>mysql-connector-java</artifactId>
    31. <version>8.0.23</version>
    32. </dependency>
    33. <dependency>
    34. <groupId>com.mchange</groupId>
    35. <artifactId>c3p0</artifactId>
    36. <version>0.9.5.2</version>
    37. </dependency>
    38. <!-- 事务的依赖 -->
    39. <dependency>
    40. <groupId>org.aspectj</groupId>
    41. <artifactId>aspectjweaver</artifactId>
    42. <version>1.9.6</version>
    43. </dependency>
    44. </dependencies>
    45. <properties>
    46. <maven.compiler.source>1.8</maven.compiler.source>
    47. <maven.compiler.target>1.8</maven.compiler.target>
    48. </properties>
    49. <build>
    50. <plugins>
    51. <!-- 编译插件 -->
    52. <plugin>
    53. <groupId>org.apache.maven.plugins</groupId>
    54. <artifactId>maven-compiler-plugin</artifactId>
    55. <version>3.8.0</version>
    56. <configuration>
    57. <source>1.8</source>
    58. <target>1.8</target>
    59. </configuration>
    60. </plugin>
    61. </plugins>
    62. </build>
    63. </project>