直接调用无需拼装sql 注入依赖 <dependency> <groupId>org.xerial</groupId> <artifactId>sqlite-jdbc</artifactId> <version>3.43.0.0</version> </dependency> 工具类 import org.sqlite.SQLiteConnection; import java.sql.*; public class SQLiteUtils { private static final String DB_FILE = "src/main/resources/database.db"; public static void main(String[] args) throws SQLException { Connection conn = getConnection(); String[] columns = new String[]{"id", "name", "age", "gender"}; createTable(conn, "students", columns);...