pom.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. <parent>
  6. <artifactId>csc-szls-parent</artifactId>
  7. <groupId>com.unissoft</groupId>
  8. <version>1.0-SNAPSHOT</version>
  9. <relativePath>../csc-szls-parent/pom.xml</relativePath>
  10. </parent>
  11. <modelVersion>4.0.0</modelVersion>
  12. <artifactId>csc-szls-oauth</artifactId>
  13. <description>oauth权限认证服务</description>
  14. <dependencies>
  15. <dependency>
  16. <groupId>com.unissoft</groupId>
  17. <artifactId>csc-szls-common-utils</artifactId>
  18. <version>1.0-SNAPSHOT</version>
  19. <scope>compile</scope>
  20. </dependency>
  21. <!--spring cloud-->
  22. <dependency>
  23. <groupId>org.springframework.cloud</groupId>
  24. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.cloud</groupId>
  28. <artifactId>spring-cloud-starter-config</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-actuator</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.cloud</groupId>
  36. <artifactId>spring-cloud-starter-bus-amqp</artifactId>
  37. </dependency>
  38. <!--spring boot-->
  39. <dependency>
  40. <groupId>org.springframework.boot</groupId>
  41. <artifactId>spring-boot-starter-web</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-starter-test</artifactId>
  46. <scope>test</scope>
  47. </dependency>
  48. <!--swagger-->
  49. <dependency>
  50. <groupId>io.springfox</groupId>
  51. <artifactId>springfox-swagger2</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>io.springfox</groupId>
  55. <artifactId>springfox-swagger-ui</artifactId>
  56. </dependency>
  57. <!--mysql-->
  58. <dependency>
  59. <groupId>mysql</groupId>
  60. <artifactId>mysql-connector-java</artifactId>
  61. </dependency>
  62. <!--spring-boot-starter-jdbc-->
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-starter-jdbc</artifactId>
  66. </dependency>
  67. <!--redis-->
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-data-redis</artifactId>
  71. </dependency>
  72. <!--cloud oauth2-->
  73. <dependency>
  74. <groupId>org.springframework.cloud</groupId>
  75. <artifactId>spring-cloud-starter-oauth2</artifactId>
  76. </dependency>
  77. <!--使用security-jwt-->
  78. <dependency>
  79. <groupId>org.springframework.security</groupId>
  80. <artifactId>spring-security-jwt</artifactId>
  81. </dependency>
  82. <!--jwt解析相关-->
  83. <dependency>
  84. <groupId>io.jsonwebtoken</groupId>
  85. <artifactId>jjwt</artifactId>
  86. <version>0.9.1</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.alibaba</groupId>
  90. <artifactId>fastjson</artifactId>
  91. <version>1.2.41</version>
  92. </dependency>
  93. <!-- mybatisplus与springboot整合 -->
  94. <dependency>
  95. <groupId>com.baomidou</groupId>
  96. <artifactId>mybatis-plus-boot-starter</artifactId>
  97. </dependency>
  98. <!-- springboot整合mybatis(核心就这一个) -->
  99. <!-- 注意顺序,这个一定要放在最下面 -->
  100. <dependency>
  101. <groupId>org.mybatis.spring.boot</groupId>
  102. <artifactId>mybatis-spring-boot-starter</artifactId>
  103. </dependency>
  104. </dependencies>
  105. <build>
  106. <plugins>
  107. <plugin>
  108. <groupId>org.springframework.boot</groupId>
  109. <artifactId>spring-boot-maven-plugin</artifactId>
  110. <configuration>
  111. <mainClass>com.unissoft.OauthStart</mainClass>
  112. </configuration>
  113. </plugin>
  114. </plugins>
  115. <!-- 如果不添加此节点mybatis的mapper.xml文件都会被漏掉。 -->
  116. <resources>
  117. <resource>
  118. <directory>src/main/java</directory>
  119. <includes>
  120. <include>**/*.properties</include>
  121. <include>**/*.xml</include>
  122. </includes>
  123. <!--<filtering>false</filtering>-->
  124. </resource>
  125. <resource>
  126. <directory>src/main/resources</directory>
  127. </resource>
  128. </resources>
  129. </build>
  130. </project>