支持再windows下开发该项目

This commit is contained in:
winLsy
2017-12-01 14:27:34 +08:00
parent 0380b93c12
commit b99e7eeb60
3 changed files with 25 additions and 3 deletions
@@ -78,7 +78,7 @@ public class MybatisGeneratorExtend {
Map<String,Object> mybatisGeneratorModel = new HashMap<>();
mybatisGeneratorModel.put("db",MybatisGeneratorExtend.db);
mybatisGeneratorModel.put("mybatisGenerator",MybatisGeneratorExtend.mybatisGenerator);
boolean mybatisGeneratorFileSuccess = FreemarkerUtil.createFile("mybatisGenerator.fm", mybatisGeneratorModel, "mybatisGenerator.xml");
boolean mybatisGeneratorFileSuccess = FreemarkerUtil.createFile("mybatisGenerator.fm", mybatisGeneratorModel, "mybatisGenerator.properties");
boolean generatorConfigFileSuccess = FreemarkerUtil.createFile("generatorConfig.fm", mybatisGeneratorModel, "generatorConfig.xml");
} catch (SQLException e) {
log.error("错误{} {}", e, "sql语句执行失败");
@@ -15,7 +15,7 @@
</parent>
<modules>
<module>mybatis-generator-extend</module>
<module>mybatis-generator-extend-maven-plugin</module>
</modules>
<build>
+23 -1
View File
@@ -21,7 +21,7 @@
<modules>
<module>boot-starter</module>
<module>ms</module>
<module>pa</module>
<module>performance-appraisal</module>
</modules>
<properties>
@@ -98,6 +98,28 @@
</dependencies>
</dependencyManagement>
</profile>
<profile>
<id>win-dev</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<!--这里面的参数在这个profile被激活的时候会覆盖默认的这些参数值-->
<java.version>1.7</java.version>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<version>${springboot.version}</version>
<optional>true</optional>
</dependency>
</dependencies>
</dependencyManagement>
</profile>
</profiles>
<!--对依赖的版本进行统一管理-->
<dependencyManagement>