shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.iplatform.generator;
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
import javax.annotation.PostConstruct;
 
//@Component
public class TestJdbcGenerator {
 
    @Autowired
    private JdbcGeneratorEngine jdbcGeneratorEngine;
 
    @PostConstruct
    public void testGenerate(){
        System.out.println("~~~~~~~~~~~~~~~ 开始生成数据库代码:");
        try {
            this.jdbcGeneratorEngine.generatePoFile("s_role", "po,mapper", "f:/项目/springboot/po.zip");
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}