-
大小: 94KB文件类型: .rar金币: 1下载: 0 次发布日期: 2021-05-12
- 语言: 数据库
- 标签: SpringBoot MyBatis Thymeleaf 增删改查
资源简介
SpringBoot+MyBatis+Thymeleaf连接MySQL实现的简单增删改查实例,参考使用。
代码片段和文件信息
/*
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
https://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) {
Syste
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 333 2019-10-11 13:37 demo\.gitignore
文件 620 2019-10-11 13:38 demo\.idea\compiler.xm
文件 172 2019-10-11 13:38 demo\.idea\encodings.xm
文件 592 2019-10-11 13:38 demo\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xm
文件 571 2019-10-11 13:38 demo\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xm
文件 546 2019-10-11 13:38 demo\.idea\libraries\Maven__com_fasterxm
文件 668 2019-10-11 13:38 demo\.idea\libraries\Maven__com_fasterxm
文件 619 2019-10-11 13:38 demo\.idea\libraries\Maven__com_fasterxm
文件 661 2019-10-11 13:38 demo\.idea\libraries\Maven__com_fasterxm
文件 698 2019-10-11 13:38 demo\.idea\libraries\Maven__com_fasterxm
文件 712 2019-10-11 13:38 demo\.idea\libraries\Maven__com_fasterxm
文件 753 2019-10-11 13:38 demo\.idea\libraries\Maven__com_fasterxm
文件 570 2019-10-11 13:38 demo\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xm
文件 724 2019-10-11 13:38 demo\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xm
文件 527 2019-10-12 21:58 demo\.idea\libraries\Maven__com_zaxxer_HikariCP_3_2_0.xm
文件 635 2019-10-11 13:38 demo\.idea\libraries\Maven__javax_annotation_javax_annotation_api_1_3_2.xm
文件 635 2019-10-11 13:38 demo\.idea\libraries\Maven__javax_validation_validation_api_2_0_1_Final.xm
文件 479 2019-10-11 13:38 demo\.idea\libraries\Maven__junit_junit_4_12.xm
文件 598 2019-10-12 22:16 demo\.idea\libraries\Maven__mysql_mysql_connector_java_5_1_30.xm
文件 560 2019-10-11 13:38 demo\.idea\libraries\Maven__net_bytebuddy_byte_buddy_1_9_16.xm
文件 602 2019-10-11 13:38 demo\.idea\libraries\Maven__net_bytebuddy_byte_buddy_agent_1_9_16.xm
文件 566 2019-10-11 13:38 demo\.idea\libraries\Maven__net_minidev_accessors_smart_1_2.xm
文件 531 2019-10-11 13:38 demo\.idea\libraries\Maven__net_minidev_json_smart_2_3.xm
文件 597 2019-10-11 13:38 demo\.idea\libraries\Maven__org_apache_logging_log4j_log4j_api_2_11_2.xm
文件 632 2019-10-11 13:38 demo\.idea\libraries\Maven__org_apache_logging_log4j_log4j_to_slf4j_2_11_2.xm
文件 649 2019-10-11 13:38 demo\.idea\libraries\Maven__org_apache_tomcat_em
文件 635 2019-10-11 13:38 demo\.idea\libraries\Maven__org_apache_tomcat_em
文件 684 2019-10-11 13:38 demo\.idea\libraries\Maven__org_apache_tomcat_em
文件 566 2019-10-11 13:38 demo\.idea\libraries\Maven__org_assertj_assertj_core_3_11_1.xm
文件 613 2019-10-12 18:07 demo\.idea\libraries\Maven__org_attoparser_attoparser_2_0_5_RELEASE.xm
............此处省略124个文件信息
相关资源
- springboot抽奖系统.zip
- springboot+druid+jpa(hibernate)+mysql项目案
- SSM框架IDEA+Spring+SpringMVC+Maven+Mybatis
- 采用最新版本SpringBoot2+MyBatis+Mysql+Ap
- spring-boot+mybatis+mysql+maven整合
- spring boot mybatis oracle
- SpringBoot2.0整合SSM框架,Vue.js项目
- Spirng+SpringMVC+Maven+Mybatis+MySQL
- MyBatis 通过第三方Druid数据连接池连接
- maven+springboot+jpa+shiro权限管理内有数据
- 基于springboot的一个简单物料管理
- vue+element+springboot+shiro权限控制
- spring boot + mybatis + mysql整合项目
- Springboot+Poi实现Excel的导入导出
- ideamybatis-log-plugin.zip
- 最新版本-MYBATIS反向工程生成代码Ge
- Maven+springmvc+mybatis+easyui+mysql DEMO
- Spring MVC 整合Mybatis详解,SSM框架的配
- SpringBoot+MyBatis+Mysql+Easyui+Ajax实现CURD
- springboot+shiro+mybatis+mysql+element简单整合
- springboot-mybatis-dubbo-zookeeper项目框架集
- spring boot +mybatis+mysql+dubbo+zookeeper分布
- spring+springMvc+mybatis+layui实现数据表格
- springboot+mybatisPlus整合开发搭建好的新
- Spring+Mybatis+SpringMVC+Maven+MySql项目搭建
- springboot_shiro.zip
- springboot整合elasticsearch完整代码
- ZooKeeper+dubbo+spring+springMvc+mybatis
- springboot、spring batch
- springboot+websocket实时聊天系统
评论
共有 条评论