-
大小: 5.98MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-11-08
- 语言: 其他
- 标签: springboot 滑块验证
资源简介
参考网上https://blog.csdn.net/qq_35992956/article/details/80801962 整理的demo,可以正常运行,非极验的
代码片段和文件信息
/*
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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-09-20 15:45 captcha\
文件 333 2019-09-20 09:42 captcha\.gitignore
目录 0 2019-09-23 09:21 captcha\.idea\
文件 812 2019-09-20 09:42 captcha\.idea\compiler.xm
文件 177 2019-09-20 09:42 captcha\.idea\encodings.xm
目录 0 2019-09-20 09:42 captcha\.idea\inspectionProfiles\
文件 1444 2019-09-20 09:42 captcha\.idea\inspectionProfiles\Project_Default.xm
目录 0 2019-09-20 15:45 captcha\.idea\libraries\
文件 553 2019-09-20 09:42 captcha\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xm
文件 532 2019-09-20 09:42 captcha\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xm
文件 579 2019-09-20 09:54 captcha\.idea\libraries\Maven__commons_beanutils_commons_beanutils_1_9_3.xm
文件 601 2019-09-20 09:54 captcha\.idea\libraries\Maven__commons_collections_commons_collections_3_2_2.xm
文件 502 2019-09-20 11:27 captcha\.idea\libraries\Maven__commons_io_commons_io_1_3_2.xm
文件 499 2019-09-20 09:56 captcha\.idea\libraries\Maven__com_alibaba_fastjson_1_2_60.xm
文件 507 2019-09-20 09:42 captcha\.idea\libraries\Maven__com_fasterxm
文件 629 2019-09-20 09:42 captcha\.idea\libraries\Maven__com_fasterxm
文件 580 2019-09-20 09:42 captcha\.idea\libraries\Maven__com_fasterxm
文件 622 2019-09-20 09:42 captcha\.idea\libraries\Maven__com_fasterxm
文件 659 2019-09-20 09:42 captcha\.idea\libraries\Maven__com_fasterxm
文件 673 2019-09-20 09:42 captcha\.idea\libraries\Maven__com_fasterxm
文件 714 2019-09-20 09:42 captcha\.idea\libraries\Maven__com_fasterxm
文件 484 2019-09-20 09:49 captcha\.idea\libraries\Maven__com_google_guava_guava_19_0.xm
文件 531 2019-09-20 09:42 captcha\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xm
文件 685 2019-09-20 09:42 captcha\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xm
文件 596 2019-09-20 09:42 captcha\.idea\libraries\Maven__javax_annotation_javax_annotation_api_1_3_2.xm
文件 596 2019-09-20 09:42 captcha\.idea\libraries\Maven__javax_validation_validation_api_2_0_1_Final.xm
文件 440 2019-09-20 09:42 captcha\.idea\libraries\Maven__junit_junit_4_12.xm
文件 521 2019-09-20 09:42 captcha\.idea\libraries\Maven__net_bytebuddy_byte_buddy_1_9_16.xm
文件 563 2019-09-20 09:42 captcha\.idea\libraries\Maven__net_bytebuddy_byte_buddy_agent_1_9_16.xm
文件 527 2019-09-20 09:42 captcha\.idea\libraries\Maven__net_minidev_accessors_smart_1_2.xm
文件 492 2019-09-20 09:42 captcha\.idea\libraries\Maven__net_minidev_json_smart_2_3.xm
............此处省略183个文件信息
相关资源
- Spring Boot 参考指南
- springboot+springdatajpa+thymeleaf+shiro 的管理
- spring-boot-中文参考手册
- 使用IDEA对springboot+activiti开发demo和详
- SpringBoot整合Vue最佳实践
- Spring Boot实战
- SpringBoot中整合Mail实现发送带附件的邮
- springboot+shiro+md5
- springboot+Shiro 实现动态授权
- SpringBoot+mybatis+redis+rabbitmq
- SpringBoot+Vue前后端分离,使用SpringSe
- springboot+websocket实现聊天室
- maven-springboot-bootstrap-angularjs学生数据
- springboot图片代理,请求url传入img返回
- 基于SpringBoot+vue的前后端分离工资绩效
- springBoot客户管理系统
- 面试宝典包含redis,springboot,springc
- springboot从入门到精通
- SpringBoot实战.pdf
- springboot 培训课程md文档
- springboot官方文档
- Spring Boot实战 丁雪丰 (译者) -带书
- vue家政金融项目
- Springboot+shiro简单登录案例
- 《超市订单管理系统》项目源码 My
- 基于zookeeper注册发现服务的springboot
- Springboot初学者项目demo超实用
- SpringBoot框架开发详解(李兴华)源码
- springboot投票系统
- spring boot 基础学习资料
评论
共有 条评论