宁波信誉好品牌网站设计地址,手机怎么管理wifi踢人,建设行业,wordpress posts表ant用处,主要用在编译java文件,打包,部署。打包:jar,war,ear包等。ant在项目中有很重要的作用。今天我们讲解它的另一个作用:执行 SQL 脚本文件。
1 引入依赖 dependencygroupIdorg.apache.ant/groupIdartifactIdant/artifactIddependencygroupIdorg.apache.ant/groupIdartifactIdant/artifactIdversion1.10.11/version/dependencydependencygroupIdmysql/groupIdartifactIdmysql-connector-java/artifactIdversion8.0.26/version/dependency
2 准备脚本文件
DROP DATABASE IF EXISTS `testant`;
CREATE DATABASE `testant`;
use `testant`;
DROP TABLE IF EXISTS `leaf_alloc`;CREATE TABLE `leaf_alloc` (`biz_tag` varchar(128) NOT NULL DEFAULT '',`max_id` bigint(20