pom.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.neo</groupId>
  6. <artifactId>spring-boot-mybatis-xml</artifactId>
  7. <version>1.0.0</version>
  8. <packaging>jar</packaging>
  9. <name>spring-boot-mybatis-xml</name>
  10. <description>Demo project for Spring Boot and mybatis</description>
  11. <parent>
  12. <groupId>org.springframework.boot</groupId>
  13. <artifactId>spring-boot-starter-parent</artifactId>
  14. <version>1.4.1.RELEASE</version>
  15. <relativePath/> <!-- lookup parent from repository -->
  16. </parent>
  17. <properties>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <java.version>1.8</java.version>
  20. </properties>
  21. <dependencies>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-test</artifactId>
  29. <scope>test</scope>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-web</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.mybatis.spring.boot</groupId>
  37. <artifactId>mybatis-spring-boot-starter</artifactId>
  38. <version>1.1.1</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>mysql</groupId>
  42. <artifactId>mysql-connector-java</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-devtools</artifactId>
  47. <optional>true</optional>
  48. </dependency>
  49. </dependencies>
  50. <build>
  51. <resources>
  52. <resource>
  53. <directory>src/main/resources</directory>
  54. <filtering>true</filtering>
  55. <excludes>
  56. <exclude>bootstrap-test.properties</exclude>
  57. <exclude>bootstrap-dev.properties</exclude>
  58. <exclude>bootstrap-pro.properties</exclude>
  59. <exclude>bootstrap.properties</exclude>
  60. </excludes>
  61. </resource>
  62. <resource>
  63. <directory>src/main/resources</directory>
  64. <filtering>true</filtering>
  65. <includes>
  66. <include>bootstrap-${env}.properties</include>
  67. <include>bootstrap.properties</include>
  68. </includes>
  69. </resource>
  70. </resources>
  71. <plugins>
  72. <plugin>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-maven-plugin</artifactId>
  75. <configuration>
  76. <fork>true</fork>
  77. </configuration>
  78. </plugin>
  79. </plugins>
  80. </build>
  81. </project>