We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
原来的
package io.github.yfblock.test.Runners; import io.github.yfblock.test.Bean.User; import io.github.yfblock.yfSql.Annotation.DataRunner; import io.github.yfblock.yfSql.Annotation.Select; import java.sql.SQLException; import java.util.List; @DataRunner public class TestService { // private SqlRunner sqlRunner; @Select("select id, username from user") public List<User> getUsers() throws SQLException { return null; } }
目标:
package io.github.yfblock.test; import io.github.yfblock.test.Bean.User; import io.github.yfblock.yfSql.Annotation.DataRunner; import io.github.yfblock.yfSql.Annotation.Select; import java.sql.SQLException; import java.util.List; @DataRunner public interface TestInterface { @Select("select id, username from user") public List<User> getUsers() throws SQLException; }
预计方案:利用 JavaParser 生成类,然后利用注解处理器将初始化函数插入到注解存在的位置。
JavaParser
The text was updated successfully, but these errors were encountered:
将数据库配置改为一个 class 如:
@DatabaseConnection public class MysqlConnectionConfig { public string connection = "jdbc://*******"; }
Sorry, something went wrong.
57307407
When branches are created from issues, their pull requests are automatically linked.
原来的
目标:
预计方案:利用
JavaParser
生成类,然后利用注解处理器将初始化函数插入到注解存在的位置。The text was updated successfully, but these errors were encountered: