pom.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.4.0</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.palatform</groupId>
  12. <artifactId>yijia</artifactId>
  13. <version>1.0.1-SNAPSHOT</version>
  14. <packaging>war</packaging>
  15. <name>YijiaRestful</name>
  16. <description>YijiaRestful project for Spring Boot</description>
  17. <properties>
  18. <java.version>1.8</java.version>
  19. </properties>
  20. <dependencies>
  21. <!-- Spring Boot Reids 依赖 -->
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-data-redis</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-web</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.mybatis.spring.boot</groupId>
  32. <artifactId>mybatis-spring-boot-starter</artifactId>
  33. <version>2.1.4</version>
  34. </dependency>
  35. <!-- Mysql驱动包 -->
  36. <dependency>
  37. <groupId>mysql</groupId>
  38. <artifactId>mysql-connector-java</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-tomcat</artifactId>
  43. <scope>provided</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-test</artifactId>
  48. <scope>test</scope>
  49. </dependency>
  50. <!-- Gson json 格式化 -->
  51. <dependency>
  52. <groupId>com.google.code.gson</groupId>
  53. <artifactId>gson</artifactId>
  54. <version>2.8.5</version>
  55. </dependency>
  56. <!--阿里数据库连接池 -->
  57. <dependency>
  58. <groupId>com.alibaba</groupId>
  59. <artifactId>druid-spring-boot-starter</artifactId>
  60. <version>1.2.1</version>
  61. </dependency>
  62. </dependencies>
  63. <build>
  64. <plugins>
  65. <plugin>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-maven-plugin</artifactId>
  68. </plugin>
  69. <plugin>
  70. <!--Mybatis-generator插件,用于自动生成Mapper和POJO-->
  71. <groupId>org.mybatis.generator</groupId>
  72. <artifactId>mybatis-generator-maven-plugin</artifactId>
  73. <version>1.3.7</version>
  74. <configuration>
  75. <!--配置文件的位置-->
  76. <configurationFile>src/main/resources/generator/generatorConfig.xml</configurationFile>
  77. <verbose>true</verbose>
  78. <overwrite>true</overwrite>
  79. </configuration>
  80. </plugin>
  81. </plugins>
  82. </build>
  83. <repositories>
  84. <repository>
  85. <id>public</id>
  86. <name>aliyun nexus</name>
  87. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  88. <releases>
  89. <enabled>true</enabled>
  90. </releases>
  91. </repository>
  92. </repositories>
  93. <pluginRepositories>
  94. <pluginRepository>
  95. <id>public</id>
  96. <name>aliyun nexus</name>
  97. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  98. <releases>
  99. <enabled>true</enabled>
  100. </releases>
  101. <snapshots>
  102. <enabled>false</enabled>
  103. </snapshots>
  104. </pluginRepository>
  105. </pluginRepositories>
  106. </project>