pom.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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>org.example</groupId>
  7. <artifactId>mybatis</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <dependencies>
  10. <!--1.添加 Spring 启动依赖-->
  11. <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-dependencies -->
  12. <dependency>
  13. <groupId>org.springframework.boot</groupId>
  14. <artifactId>spring-boot-dependencies</artifactId>
  15. <version>2.3.7.RELEASE</version>
  16. <type>pom</type>
  17. <scope>provided</scope>
  18. </dependency>
  19. <!--2.添加 Spring MVC 启动依赖-->
  20. <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web -->
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-web</artifactId>
  24. <version>2.3.7.RELEASE</version>
  25. </dependency>
  26. <!--2.添加 mybatis 启动依赖-->
  27. <!-- https://mvnrepository.com/artifact/org.mybatis.spring.boot/mybatis-spring-boot-starter -->
  28. <dependency>
  29. <groupId>org.mybatis.spring.boot</groupId>
  30. <artifactId>mybatis-spring-boot-starter</artifactId>
  31. <version>2.1.2</version>
  32. </dependency>
  33. <!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
  34. <dependency>
  35. <groupId>org.postgresql</groupId>
  36. <artifactId>postgresql</artifactId>
  37. <version>42.2.18</version>
  38. <scope>runtime</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.mybatis</groupId>
  42. <artifactId>mybatis-spring</artifactId>
  43. <version>2.0.5</version>
  44. </dependency>
  45. </dependencies>
  46. <properties>
  47. <maven.compiler.source>8</maven.compiler.source>
  48. <maven.compiler.target>8</maven.compiler.target>
  49. </properties>
  50. </project>