-
大小: 114KB文件类型: .zip金币: 2下载: 1 次发布日期: 2021-06-12
- 语言: 数据库
- 标签: springboot mybatis idea mysql
资源简介
idea springboot mybatis mysql数据库增删改查,适合初学者(附sql文件),运行没问题,有问题的留言。
代码片段和文件信息
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License Version 2.0 (the
“License“); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing
software distributed under the License is distributed on an
“AS IS“ BASIS WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.util.Properties;
public class MavenWrapperDownloader {
/**
* Default URL to download the maven-wrapper.jar from if no ‘downloadUrl‘ is provided.
*/
private static final String DEFAULT_DOWNLOAD_URL =
“https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar“;
/**
* Path to the maven-wrapper.properties file which might contain a downloadUrl property to
* use instead of the default one.
*/
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
“.mvn/wrapper/maven-wrapper.properties“;
/**
* Path where the maven-wrapper.jar will be saved to.
*/
private static final String MAVEN_WRAPPER_JAR_PATH =
“.mvn/wrapper/maven-wrapper.jar“;
/**
* Name of the property which should be used to override the default download url for the wrapper.
*/
private static final String PROPERTY_NAME_WRAPPER_URL = “wrapperUrl“;
public static void main(String args[]) {
System.out.println(“- Downloader started“);
File baseDirectory = new File(args[0]);
System.out.println(“- Using base directory: “ + baseDirectory.getAbsolutePath());
// If the maven-wrapper.properties exists read it and check if it contains a custom
// wrapperUrl parameter.
File mavenWrapperPropertyFile = new File(baseDirectory MAVEN_WRAPPER_PROPERTIES_PATH);
String url = DEFAULT_DOWNLOAD_URL;
if(mavenWrapperPropertyFile.exists()) {
FileInputStream mavenWrapperPropertyFileInputStream = null;
try {
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
Properties mavenWrapperProperties = new Properties();
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL url);
} catch (IOException e) {
System
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-05-24 21:55 demo\
文件 277 2019-03-01 10:47 demo\.gitignore
目录 0 2019-05-24 21:55 demo\.idea\
文件 620 2019-03-01 10:50 demo\.idea\compiler.xm
文件 172 2019-03-01 10:50 demo\.idea\encodings.xm
目录 0 2019-03-04 20:21 demo\.idea\httpRequests\
文件 157 2019-03-04 19:51 demo\.idea\httpRequests\2019-03-04T075126.404.json
文件 159 2019-03-04 20:19 demo\.idea\httpRequests\2019-03-04T081949.404.json
文件 1067 2019-03-04 20:21 demo\.idea\httpRequests\http-requests-log.http
目录 0 2019-03-04 20:47 demo\.idea\inspectionProfiles\
文件 1444 2019-03-04 20:47 demo\.idea\inspectionProfiles\Project_Default.xm
目录 0 2019-05-24 14:18 demo\.idea\libraries\
文件 592 2019-03-01 10:50 demo\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xm
文件 571 2019-03-01 10:50 demo\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xm
文件 522 2019-05-23 22:11 demo\.idea\libraries\Maven__com_fasterxm
文件 644 2019-05-23 22:11 demo\.idea\libraries\Maven__com_fasterxm
文件 595 2019-05-23 22:11 demo\.idea\libraries\Maven__com_fasterxm
文件 623 2019-05-23 22:11 demo\.idea\libraries\Maven__com_fasterxm
文件 674 2019-05-23 22:11 demo\.idea\libraries\Maven__com_fasterxm
文件 688 2019-05-23 22:11 demo\.idea\libraries\Maven__com_fasterxm
文件 729 2019-05-23 22:11 demo\.idea\libraries\Maven__com_fasterxm
文件 546 2019-05-23 21:55 demo\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xm
文件 700 2019-05-23 21:55 demo\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xm
文件 527 2019-03-01 10:50 demo\.idea\libraries\Maven__com_zaxxer_HikariCP_3_2_0.xm
文件 635 2019-03-01 10:50 demo\.idea\libraries\Maven__javax_annotation_javax_annotation_api_1_3_2.xm
文件 611 2019-05-23 22:11 demo\.idea\libraries\Maven__javax_validation_validation_api_2_0_1_Final.xm
文件 455 2019-05-23 21:55 demo\.idea\libraries\Maven__junit_junit_4_12.xm
文件 574 2019-05-23 22:02 demo\.idea\libraries\Maven__mysql_mysql_connector_java_5_1_35.xm
文件 536 2019-05-23 21:55 demo\.idea\libraries\Maven__net_bytebuddy_byte_buddy_1_9_10.xm
文件 578 2019-05-23 21:55 demo\.idea\libraries\Maven__net_bytebuddy_byte_buddy_agent_1_9_10.xm
文件 542 2019-05-23 21:55 demo\.idea\libraries\Maven__net_minidev_accessors_smart_1_2.xm
............此处省略123个文件信息
相关资源
- Maven搭建Spring+Mybatis+MySql
- 最新_尚硅谷_mybatisplus_全套视频教程
- myBatis中文文档
- springmvc+spring+mybatis+mysql数据库整合读
- 黑马 出品代码生成器
- 基于SpringBoot技术开发的个人博客系统
- 框架写的简单学生管理系统
- 基于SpringBoot2+Jpa+SpringSecurity+redis+Vue的
- SpringBoot测试项目
- 毕业设计体检预约系统-springmvc+mybat
- mybatis 整合oracle (含增删改查)
- SpringBoot员工管理系统.7z
- springboot学生管理系统.zip
- Struts2+spring+Mybatis+mysql+架包相对完善的
- Ajax+SpringMVC+Spring+Mybatis+MySql+js用户注册
- 简易后台管理系统
- 基于springmvc、spring、mybatis、shiro、e
- SpingMVC+MyBatis简单权限管理系统
- Extjs+Mysql+SpringMVC+MyBatis通用后台管理系
- SpringBootLearning_forezp.tar.gz
- idea+springboot+oracle+mybatis
- SpringMVC+Mybatis+SQLServer整合源码 含数据
- 基于Springboot的药品管理系统.rar
- SSM框架--Spring+SpringMVC+Mybatis整合
- spring+springmvc+mybatis OA考勤管理系统带
- MyBatis的逆向工程——generatorSqlmapCus
- 基于SSM框架的完整项目 Spring+SpringMV
- SSM框架+mybatis自动生成代码
- springboot开发的视频网站源码.zip
- 家庭财务管理系统SpringMVC3+Spring3+Myb
评论
共有 条评论