-
大小: 111KB文件类型: .rar金币: 2下载: 1 次发布日期: 2021-05-28
- 语言: 数据库
- 标签: SpringBoot Mysql RBAC Jpa
资源简介
本demo适合作为Springboot,mysql,rbac,spring-data-jpa的入门学习资料
代码片段和文件信息
/*
* Copyright 2007-present the original author or authors.
*
* Licensed 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.net.*;
import java.io.*;
import java.nio.channels.*;
import java.util.Properties;
public class MavenWrapperDownloader {
private static final String WRAPPER_VERSION = “0.5.6“;
/**
* 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/“
+ WRAPPER_VERSION + “/maven-wrapper-“ + WRAPPER_VERSION + “.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.out.println(“- ERROR loading ‘“ + MAVEN_WRAPPER_PROPERTIES_PATH + “‘“);
} finally {
try {
if (mavenWrapperPropertyFileInputStream != null) {
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 333 2020-04-14 17:51 shiro\.gitignore
文件 806 2020-04-14 17:53 shiro\.idea\compiler.xm
文件 209 2020-04-14 17:53 shiro\.idea\encodings.xm
文件 462 2020-04-14 18:45 shiro\.idea\libraries\Maven__antlr_antlr_2_7_7.xm
文件 568 2020-04-14 17:53 shiro\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xm
文件 547 2020-04-14 17:53 shiro\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xm
文件 522 2020-04-14 17:53 shiro\.idea\libraries\Maven__com_fasterxm
文件 651 2020-04-14 17:53 shiro\.idea\libraries\Maven__com_fasterxm
文件 602 2020-04-14 17:53 shiro\.idea\libraries\Maven__com_fasterxm
文件 630 2020-04-14 17:53 shiro\.idea\libraries\Maven__com_fasterxm
文件 681 2020-04-14 17:53 shiro\.idea\libraries\Maven__com_fasterxm
文件 695 2020-04-14 17:53 shiro\.idea\libraries\Maven__com_fasterxm
文件 736 2020-04-14 17:53 shiro\.idea\libraries\Maven__com_fasterxm
文件 546 2020-04-14 17:53 shiro\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xm
文件 617 2020-04-14 18:45 shiro\.idea\libraries\Maven__com_sun_istack_istack_commons_runtime_3_0_8.xm
文件 583 2020-04-14 18:45 shiro\.idea\libraries\Maven__com_sun_xm
文件 700 2020-04-14 17:53 shiro\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xm
文件 503 2020-04-14 18:45 shiro\.idea\libraries\Maven__com_zaxxer_HikariCP_3_4_2.xm
文件 633 2020-04-14 17:53 shiro\.idea\libraries\Maven__jakarta_activation_jakarta_activation_api_1_2_2.xm
文件 633 2020-04-14 17:53 shiro\.idea\libraries\Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xm
文件 644 2020-04-14 18:45 shiro\.idea\libraries\Maven__jakarta_persistence_jakarta_persistence_api_2_2_3.xm
文件 644 2020-04-14 18:45 shiro\.idea\libraries\Maven__jakarta_transaction_jakarta_transaction_api_1_3_3.xm
文件 633 2020-04-14 17:53 shiro\.idea\libraries\Maven__jakarta_validation_jakarta_validation_api_2_0_2.xm
文件 611 2020-04-14 17:53 shiro\.idea\libraries\Maven__jakarta_xm
文件 574 2020-04-14 18:45 shiro\.idea\libraries\Maven__mysql_mysql_connector_java_8_0_19.xm
文件 536 2020-04-14 17:53 shiro\.idea\libraries\Maven__net_bytebuddy_byte_buddy_1_10_8.xm
文件 578 2020-04-14 17:53 shiro\.idea\libraries\Maven__net_bytebuddy_byte_buddy_agent_1_10_8.xm
文件 542 2020-04-14 17:53 shiro\.idea\libraries\Maven__net_minidev_accessors_smart_1_2.xm
文件 507 2020-04-14 17:53 shiro\.idea\libraries\Maven__net_minidev_json_smart_2_3.xm
文件 573 2020-04-14 17:53 shiro\.idea\libraries\Maven__org_apache_logging_log4j_log4j_api_2_12_1.xm
............此处省略159个文件信息
相关资源
- mysql数据库驱动8.0.12版本
- mha4mysql-0.56-0.el6
- mysql_5.6.24_winx64
- MYSQL作业提交作业批改系统.zip
- Maven搭建Spring+Mybatis+MySql
- 成语首尾字用于成语接龙.sql
- MySQL中文手册api帮助文档
- linux_mysql5.1.66x86_64.zip
- oracle 到mysql转换工具
- 数据库原理实验指导书Mysql
- mysql 5.6 绿色精简版 5Mb
- mysql Premium 破解
- 深入浅出MySQL第二版本pdf
- 深入浅出MySQL.pdf
- 深入浅出mysql全文
- 全球国家及地区库,采集自腾讯QQ国内
- mysql操作练习的表数据
- 免费的Navicat11全系列注册机Navicat fo
- Navicat For MySql 8.0.20 简体中文版(含破
- navicat for mysql v 11.1.13破解工具
- mysql数据库5.6连接包
- Navicat for MySQL注册机 绿色版
- 旅游管理系统数据库
- 易语言MySQL注册登录源码
- 传智播客mysql的sql优化
- msvcr120.dll 32位和64位
- mysql5.7驱动.rar
- mysql innodb恢复数据工具.rar
- 易语言Mysql线程池2.0模块源码
- 数据库宾馆管理系统Mysql
评论
共有 条评论