Browse Source

spring-boot-demo-codegen 完成,升级 velocity 依赖

pull/1/head
Yangkai.Shen 5 years ago
parent
commit
688a81891d
2 changed files with 5 additions and 3 deletions
  1. +2
    -2
      spring-boot-demo-codegen/pom.xml
  2. +3
    -1
      spring-boot-demo-codegen/src/test/java/com/xkcoding/codegen/CodeGenServiceTest.java

+ 2
- 2
spring-boot-demo-codegen/pom.xml View File

@@ -53,8 +53,8 @@
<!--velocity代码生成使用模板 --> <!--velocity代码生成使用模板 -->
<dependency> <dependency>
<groupId>org.apache.velocity</groupId> <groupId>org.apache.velocity</groupId>
<artifactId>velocity</artifactId>
<version>1.7</version>
<artifactId>velocity-engine-core</artifactId>
<version>2.1</version>
</dependency> </dependency>


<dependency> <dependency>


+ 3
- 1
spring-boot-demo-codegen/src/test/java/com/xkcoding/codegen/CodeGenServiceTest.java View File

@@ -43,7 +43,8 @@ public class CodeGenServiceTest {
TableRequest request = new TableRequest(); TableRequest request = new TableRequest();
request.setCurrentPage(1); request.setCurrentPage(1);
request.setPageSize(10); request.setPageSize(10);
request.setUrl("jdbc:mysql://127.0.0.1:3306/spring-boot-demo");
request.setPrepend("jdbc:mysql://");
request.setUrl("127.0.0.1:3306/spring-boot-demo");
request.setUsername("root"); request.setUsername("root");
request.setPassword("root"); request.setPassword("root");
request.setTableName("sec_"); request.setTableName("sec_");
@@ -57,6 +58,7 @@ public class CodeGenServiceTest {
GenConfig config = new GenConfig(); GenConfig config = new GenConfig();


TableRequest request = new TableRequest(); TableRequest request = new TableRequest();
request.setPrepend("jdbc:mysql://");
request.setUrl("127.0.0.1:3306/spring-boot-demo"); request.setUrl("127.0.0.1:3306/spring-boot-demo");
request.setUsername("root"); request.setUsername("root");
request.setPassword("root"); request.setPassword("root");


Loading…
Cancel
Save