springboot整合pdfjs修改版,简单demo可直接使用,跳转指定页码,跨域访问,
参考pdfcontroller参数即可,非常方便的demo,直接使用,html页面的input,加上name就可以跳转指定页面了
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 303 2019-05-06 21:55 PDF.gitignore
文件 2 2019-06-06 09:03 PDF.idea.name
文件 616 2019-06-06 09:04 PDF.ideacompiler.xml
文件 172 2019-06-06 09:04 PDF.ideaencodings.xml
文件 462 2019-06-06 09:04 PDF.idealibrariesMaven__antlr_antlr_2_7_7.xml
文件 575 2019-06-06 09:04 PDF.idealibrariesMaven__ch_qos_logback_logback_classic_1_1_11.xml
文件 554 2019-06-06 09:04 PDF.idealibrariesMaven__ch_qos_logback_logback_core_1_1_11.xml
文件 605 2019-06-06 09:04 PDF.idealibrariesMaven__commons_fileupload_commons_fileupload_1_3_3.xml
文件 503 2019-06-06 09:04 PDF.idealibrariesMaven__commons_io_commons_io_2_2.xml
文件 522 2019-06-06 09:04 PDF.idealibrariesMaven__com_fasterxml_classmate_1_3_4.xml
文件 644 2019-06-06 09:04 PDF.idealibrariesMaven__com_fasterxml_jackson_core_jackson_annotations_2_8_0.xml
文件 602 2019-06-06 09:04 PDF.idealibrariesMaven__com_fasterxml_jackson_core_jackson_core_2_8_11.xml
文件 644 2019-06-06 09:04 PDF.idealibrariesMaven__com_fasterxml_jackson_core_jackson_databind_2_8_11_3.xml
文件 499 2019-06-06 09:04 PDF.idealibrariesMaven__com_google_guava_guava_20_0.xml
文件 546 2019-06-06 09:04 PDF.idealibrariesMaven__com_jayway_jsonpath_json_path_2_2_0.xml
文件 526 2019-06-06 09:04 PDF.idealibrariesMaven__com_thoughtworks_qdox_qdox_2_0_M7.xml
文件 700 2019-06-06 09:04 PDF.idealibrariesMaven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml
文件 462 2019-06-06 09:04 PDF.idealibrariesMaven__dom4j_dom4j_1_6_1.xml
文件 553 2019-06-06 09:04 PDF.idealibrariesMaven__io_springfox_springfox_core_2_8_0.xml
文件 567 2019-06-06 09:04 PDF.idealibrariesMaven__io_springfox_springfox_schema_2_8_0.xml
文件 546 2019-06-06 09:04 PDF.idealibrariesMaven__io_springfox_springfox_spi_2_8_0.xml
文件 595 2019-06-06 09:04 PDF.idealibrariesMaven__io_springfox_springfox_spring_web_2_8_0.xml
文件 581 2019-06-06 09:04 PDF.idealibrariesMaven__io_springfox_springfox_swagger2_2_8_0.xml
文件 623 2019-06-06 09:04 PDF.idealibrariesMaven__io_springfox_springfox_swagger_common_2_8_0.xml
文件 595 2019-06-06 09:04 PDF.idealibrariesMaven__io_springfox_springfox_swagger_ui_2_8_0.xml
文件 587 2019-06-06 09:04 PDF.idealibrariesMaven__io_swagger_swagger_annotations_1_5_14.xml
文件 552 2019-06-06 09:04 PDF.idealibrariesMaven__io_swagger_swagger_models_1_5_14.xml
文件 608 2019-06-06 09:04 PDF.idealibrariesMaven__javax_transaction_javax_transaction_api_1_2.xml
文件 611 2019-06-06 09:04 PDF.idealibrariesMaven__javax_validation_validation_api_1_1_0_Final.xml
文件 455 2019-06-06 09:04 PDF.idealibrariesMaven__junit_junit_4_12.xml
............此处省略1467个文件信息
/*
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.ideacompiler.xm
文件 172 2019-06-06 09:04 PDF.ideaencodings.xm
文件 462 2019-06-06 09:04 PDF.idealibrariesMaven__antlr_antlr_2_7_7.xm
文件 575 2019-06-06 09:04 PDF.idealibrariesMaven__ch_qos_logback_logback_classic_1_1_11.xm
文件 554 2019-06-06 09:04 PDF.idealibrariesMaven__ch_qos_logback_logback_core_1_1_11.xm
文件 605 2019-06-06 09:04 PDF.idealibrariesMaven__commons_fileupload_commons_fileupload_1_3_3.xm
文件 503 2019-06-06 09:04 PDF.idealibrariesMaven__commons_io_commons_io_2_2.xm
文件 522 2019-06-06 09:04 PDF.idealibrariesMaven__com_fasterxm
文件 644 2019-06-06 09:04 PDF.idealibrariesMaven__com_fasterxm
文件 602 2019-06-06 09:04 PDF.idealibrariesMaven__com_fasterxm
文件 644 2019-06-06 09:04 PDF.idealibrariesMaven__com_fasterxm
文件 499 2019-06-06 09:04 PDF.idealibrariesMaven__com_google_guava_guava_20_0.xm
文件 546 2019-06-06 09:04 PDF.idealibrariesMaven__com_jayway_jsonpath_json_path_2_2_0.xm
文件 526 2019-06-06 09:04 PDF.idealibrariesMaven__com_thoughtworks_qdox_qdox_2_0_M7.xm
文件 700 2019-06-06 09:04 PDF.idealibrariesMaven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xm
文件 462 2019-06-06 09:04 PDF.idealibrariesMaven__dom4j_dom4j_1_6_1.xm
文件 553 2019-06-06 09:04 PDF.idealibrariesMaven__io_springfox_springfox_core_2_8_0.xm
文件 567 2019-06-06 09:04 PDF.idealibrariesMaven__io_springfox_springfox_schema_2_8_0.xm
文件 546 2019-06-06 09:04 PDF.idealibrariesMaven__io_springfox_springfox_spi_2_8_0.xm
文件 595 2019-06-06 09:04 PDF.idealibrariesMaven__io_springfox_springfox_spring_web_2_8_0.xm
文件 581 2019-06-06 09:04 PDF.idealibrariesMaven__io_springfox_springfox_swagger2_2_8_0.xm
文件 623 2019-06-06 09:04 PDF.idealibrariesMaven__io_springfox_springfox_swagger_common_2_8_0.xm
文件 595 2019-06-06 09:04 PDF.idealibrariesMaven__io_springfox_springfox_swagger_ui_2_8_0.xm
文件 587 2019-06-06 09:04 PDF.idealibrariesMaven__io_swagger_swagger_annotations_1_5_14.xm
文件 552 2019-06-06 09:04 PDF.idealibrariesMaven__io_swagger_swagger_models_1_5_14.xm
文件 608 2019-06-06 09:04 PDF.idealibrariesMaven__javax_transaction_javax_transaction_api_1_2.xm
文件 611 2019-06-06 09:04 PDF.idealibrariesMaven__javax_validation_validation_api_1_1_0_Final.xm
文件 455 2019-06-06 09:04 PDF.idealibrariesMaven__junit_junit_4_12.xm
............此处省略1467个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)