资源简介
springboot集成jwt和shiro实现前后端分离权限demo2 添加realm中异常处理
代码片段和文件信息
/*
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) {
Syst
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 303 2019-04-03 19:42 demo\.gitignore
文件 9 2019-04-03 19:42 demo\.idea\.name
文件 792 2019-04-03 19:45 demo\.idea\compiler.xm
文件 177 2019-04-03 19:44 demo\.idea\encodings.xm
文件 1444 2019-04-03 19:42 demo\.idea\inspectionProfiles\Project_Default.xm
文件 590 2019-04-03 19:45 demo\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_1_11.xm
文件 569 2019-04-03 19:45 demo\.idea\libraries\Maven__ch_qos_logback_logback_core_1_1_11.xm
文件 609 2019-04-04 12:23 demo\.idea\libraries\Maven__commons_beanutils_commons_beanutils_1_9_3.xm
文件 558 2019-04-04 12:23 demo\.idea\libraries\Maven__commons_codec_commons_codec_1_10.xm
文件 631 2019-04-04 12:23 demo\.idea\libraries\Maven__commons_collections_commons_collections_3_2_2.xm
文件 529 2019-04-04 18:25 demo\.idea\libraries\Maven__com_alibaba_fastjson_1_2_15.xm
文件 514 2019-04-04 12:23 demo\.idea\libraries\Maven__com_auth0_java_jwt_3_2_0.xm
文件 537 2019-04-03 19:45 demo\.idea\libraries\Maven__com_fasterxm
文件 659 2019-04-03 19:45 demo\.idea\libraries\Maven__com_fasterxm
文件 617 2019-04-03 19:45 demo\.idea\libraries\Maven__com_fasterxm
文件 645 2019-04-03 19:45 demo\.idea\libraries\Maven__com_fasterxm
文件 561 2019-04-03 19:45 demo\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_2_0.xm
文件 715 2019-04-03 19:45 demo\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xm
文件 626 2019-04-03 19:45 demo\.idea\libraries\Maven__javax_validation_validation_api_1_1_0_Final.xm
文件 470 2019-04-03 19:45 demo\.idea\libraries\Maven__junit_junit_4_12.xm
文件 557 2019-04-03 19:45 demo\.idea\libraries\Maven__net_minidev_accessors_smart_1_1.xm
文件 536 2019-04-03 19:45 demo\.idea\libraries\Maven__net_minidev_json_smart_2_2_1.xm
文件 562 2019-04-04 12:23 demo\.idea\libraries\Maven__net_sf_ehcache_ehcache_core_2_5_0.xm
文件 556 2019-04-04 12:23 demo\.idea\libraries\Maven__org_apache_shiro_shiro_core_1_2_5.xm
文件 577 2019-04-04 12:23 demo\.idea\libraries\Maven__org_apache_shiro_shiro_ehcache_1_2_5.xm
文件 570 2019-04-04 12:23 demo\.idea\libraries\Maven__org_apache_shiro_shiro_spring_1_2_5.xm
文件 549 2019-04-04 12:23 demo\.idea\libraries\Maven__org_apache_shiro_shiro_web_1_2_5.xm
文件 640 2019-04-03 19:45 demo\.idea\libraries\Maven__org_apache_tomcat_em
文件 626 2019-04-03 19:45 demo\.idea\libraries\Maven__org_apache_tomcat_em
文件 675 2019-04-03 19:45 demo\.idea\libraries\Maven__org_apache_tomcat_em
............此处省略101个文件信息
相关资源
- Spring与MyBatis整合源码
- springboot经典项目
- ssm+maven整合,前后端分离技术完整源
- springboot+beetl+i18n.zip
- spring集成rabbitMq(基于direct、topic和
- SpringBoot+ActiveMq+MQTT实现消息的发送和
- 微服务springboot.txt
- Spring Boot简单登录注册demo
- springcloud微服务项目架构基础demo
-
gba
se8tinformix+mybatis+maven+springboot 整合 - spring5.0的全部xsd文件
- 2018尚硅谷电商项目前后端分离视频教
- springboot + mybaties + phoenix + HikariCP 整合
- 《Spring Cloud 微服务实战》项目源码
- 某学院spring-boot全套教程+项目源码
- spring boot+hibernate+thymeleaf 练习demo项目
- springboot+spring data jpa+thymeleaf学习web项
- springboot实现验证码校验demo
- springcloud2.0+版本集成eureka注册中心、
- Spring相关的外文文献和翻译(毕设论
- IDEA实现 springmvc的简单注册登录功能的
- SpringBoot如何在运行时动态添加数据源
- Windchill+spring+mybatis
- SpringMVC+MyBatis企业应用实战+源码
- 史上最全 69 道 Spring 面试题和答案
- SpringerLATEX模板
- SpringBoot-从零开发校园商铺平台带源码
- Spring集成redis集群
- 深入理解Spring Cloud与微服务构建 方志
- springcloud
评论
共有 条评论