资源简介
springboot整合pdfjs修改版,简单demo可直接使用,跳转指定页码,跨域访问,
参考pdfcontroller参数即可,非常方便的demo,直接使用,html页面的input,加上name就可以跳转指定页面了
代码片段和文件信息
/*
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-05-06 21:55 PDF\.gitignore
文件 2 2019-06-06 09:03 PDF\.idea\.name
文件 616 2019-06-06 09:04 PDF\.idea\compiler.xm
文件 172 2019-06-06 09:04 PDF\.idea\encodings.xm
文件 462 2019-06-06 09:04 PDF\.idea\libraries\Maven__antlr_antlr_2_7_7.xm
文件 575 2019-06-06 09:04 PDF\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_1_11.xm
文件 554 2019-06-06 09:04 PDF\.idea\libraries\Maven__ch_qos_logback_logback_core_1_1_11.xm
文件 605 2019-06-06 09:04 PDF\.idea\libraries\Maven__commons_fileupload_commons_fileupload_1_3_3.xm
文件 503 2019-06-06 09:04 PDF\.idea\libraries\Maven__commons_io_commons_io_2_2.xm
文件 522 2019-06-06 09:04 PDF\.idea\libraries\Maven__com_fasterxm
文件 644 2019-06-06 09:04 PDF\.idea\libraries\Maven__com_fasterxm
文件 602 2019-06-06 09:04 PDF\.idea\libraries\Maven__com_fasterxm
文件 644 2019-06-06 09:04 PDF\.idea\libraries\Maven__com_fasterxm
文件 499 2019-06-06 09:04 PDF\.idea\libraries\Maven__com_google_guava_guava_20_0.xm
文件 546 2019-06-06 09:04 PDF\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_2_0.xm
文件 526 2019-06-06 09:04 PDF\.idea\libraries\Maven__com_thoughtworks_qdox_qdox_2_0_M7.xm
文件 700 2019-06-06 09:04 PDF\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xm
文件 462 2019-06-06 09:04 PDF\.idea\libraries\Maven__dom4j_dom4j_1_6_1.xm
文件 553 2019-06-06 09:04 PDF\.idea\libraries\Maven__io_springfox_springfox_core_2_8_0.xm
文件 567 2019-06-06 09:04 PDF\.idea\libraries\Maven__io_springfox_springfox_schema_2_8_0.xm
文件 546 2019-06-06 09:04 PDF\.idea\libraries\Maven__io_springfox_springfox_spi_2_8_0.xm
文件 595 2019-06-06 09:04 PDF\.idea\libraries\Maven__io_springfox_springfox_spring_web_2_8_0.xm
文件 581 2019-06-06 09:04 PDF\.idea\libraries\Maven__io_springfox_springfox_swagger2_2_8_0.xm
文件 623 2019-06-06 09:04 PDF\.idea\libraries\Maven__io_springfox_springfox_swagger_common_2_8_0.xm
文件 595 2019-06-06 09:04 PDF\.idea\libraries\Maven__io_springfox_springfox_swagger_ui_2_8_0.xm
文件 587 2019-06-06 09:04 PDF\.idea\libraries\Maven__io_swagger_swagger_annotations_1_5_14.xm
文件 552 2019-06-06 09:04 PDF\.idea\libraries\Maven__io_swagger_swagger_models_1_5_14.xm
文件 608 2019-06-06 09:04 PDF\.idea\libraries\Maven__javax_transaction_javax_transaction_api_1_2.xm
文件 611 2019-06-06 09:04 PDF\.idea\libraries\Maven__javax_validation_validation_api_1_1_0_Final.xm
文件 455 2019-06-06 09:04 PDF\.idea\libraries\Maven__junit_junit_4_12.xm
............此处省略1467个文件信息
相关资源
- Vuejs文件上传组件多文件上传
- 2018 年 6 月黑马 java 就业班视频
- 李刚疯狂系列图书精选疯狂Ajax讲义、
- 《Java+Web程序设计任务教程》_线下题
-
疯狂HTML5 CSS 3 ja
vasc ript讲义 最完整 - 《设计模式》刘伟
- 基于VueElementui实现的一套后台管理系
- WebUploader是一个简单的以HTML5为主现代
- 交互式旅游地图svg
-
HTML+CSS+ja
vasc ript国外婚纱摄影企业 - 企业官方网站模板
- html鲜花网站课程设计
-
Foundation HTML5 Animation with ja
vasc ri -
Advanced Game Design with HTML5 and ja
vasc< - 静态学校网站
-
《HTML+CSS+ja
vasc ript实用详解》随书 - 淘宝页面最新版HTML+CSS.zip
-
Foundation HTML5 Animation with ja
vasc ri - Ace Admin 前端ui模板修改版
- 哄女友开心、告白、情侣日常秀恩爱
- 代理商管理系统_原型+需求分析
- HTML网页练习之努比亚官网模仿制作
- 传智播客Java SE基础毕向东老师全程笔
- mxGraph绘图控件(HTML5)
- 前端面试题大全
- 一个适合作为毕业设计的后台管理系
-
HTML5_CSS3_ja
vasc ript中文参考手册 - Pdf.jsDemo.zip
- 旋转照片魔方.7z
-
Foundation HTML5 Animation with ja
vasc ri
评论
共有 条评论