pom.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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.sf</groupId>
  7. <artifactId>mybatisDemo</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <maven.compiler.source>8</maven.compiler.source>
  11. <maven.compiler.target>8</maven.compiler.target>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. </properties>
  14. <!--用来指定要依赖的外部库坐标-->
  15. <dependencies>
  16. <!--指定连接MySQL的依赖库坐标-->
  17. <!--引入MySQL的依赖-->
  18. <dependency>
  19. <groupId>com.mysql</groupId>
  20. <artifactId>mysql-connector-j</artifactId>
  21. <version>8.0.33</version>
  22. </dependency>
  23. <!--引入mybatis的依赖-->
  24. <dependency>
  25. <groupId>org.mybatis</groupId>
  26. <artifactId>mybatis</artifactId>
  27. <version>3.5.7</version>
  28. </dependency>
  29. <!--引入Lombok依赖-->
  30. <!--Lombok库的作用是可以帮我们省去手写构造方法、get set toString等方法,只需要添加3个注解,自动帮我们生成-->
  31. <dependency>
  32. <groupId>org.projectlombok</groupId>
  33. <artifactId>lombok</artifactId>
  34. <version>1.18.26</version>
  35. </dependency>
  36. <!--引入单元测试Junit依赖-->
  37. <dependency>
  38. <groupId>junit</groupId>
  39. <artifactId>junit</artifactId>
  40. <version>4.12</version>
  41. <scope>test</scope>
  42. </dependency>
  43. </dependencies>
  44. </project>