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); } } }