资源简介
SpringBoot整合ActiveMQ(消息中间件)实现邮件发送功能,里面含有详细业务逻辑代码,配置文件等
代码片段和文件信息
/*
* Copyright 2012-2019 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.5“;
/**
* 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 2019-12-23 16:23 .gitignore
目录 0 2019-12-27 21:25 .idea\
文件 803 2019-12-23 16:27 .idea\compiler.xm
文件 177 2019-12-23 16:27 .idea\encodings.xm
目录 0 2019-12-27 14:43 .idea\libraries\
文件 462 2019-12-23 16:48 .idea\libraries\Maven__antlr_antlr_2_7_7.xm
文件 568 2019-12-23 16:30 .idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xm
文件 547 2019-12-23 16:30 .idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xm
文件 514 2019-12-26 14:32 .idea\libraries\Maven__com_alibaba_fastjson_1_2_30.xm
文件 522 2019-12-23 16:30 .idea\libraries\Maven__com_fasterxm
文件 651 2019-12-23 16:30 .idea\libraries\Maven__com_fasterxm
文件 602 2019-12-23 16:30 .idea\libraries\Maven__com_fasterxm
文件 630 2019-12-23 16:30 .idea\libraries\Maven__com_fasterxm
文件 681 2019-12-23 16:30 .idea\libraries\Maven__com_fasterxm
文件 695 2019-12-23 16:30 .idea\libraries\Maven__com_fasterxm
文件 736 2019-12-23 16:30 .idea\libraries\Maven__com_fasterxm
文件 545 2019-12-27 13:48 .idea\libraries\Maven__com_google_code_findbugs_jsr305_3_0_2.xm
文件 652 2019-12-27 13:48 .idea\libraries\Maven__com_google_errorprone_error_prone_annotations_2_3_2.xm
文件 562 2019-12-27 13:48 .idea\libraries\Maven__com_google_guava_failureaccess_1_0_1.xm
文件 527 2019-12-27 13:48 .idea\libraries\Maven__com_google_guava_guava_28_0_jre.xm
文件 835 2019-12-27 13:48 .idea\libraries\Maven__com_google_guava_listenablefuture_9999_0_empty_to_avoid_conflict_with_guava.xm
文件 587 2019-12-27 13:48 .idea\libraries\Maven__com_google_j2objc_j2objc_annotations_1_3.xm
文件 546 2019-12-23 16:30 .idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xm
文件 605 2019-12-27 09:09 .idea\libraries\Maven__com_sun_activation_jakarta_activation_1_2_1.xm
文件 617 2019-12-23 16:48 .idea\libraries\Maven__com_sun_istack_istack_commons_runtime_3_0_8.xm
文件 539 2019-12-27 09:09 .idea\libraries\Maven__com_sun_mail_jakarta_mail_1_6_4.xm
文件 583 2019-12-23 16:48 .idea\libraries\Maven__com_sun_xm
文件 700 2019-12-23 16:30 .idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xm
文件 503 2019-12-23 16:48 .idea\libraries\Maven__com_zaxxer_HikariCP_3_4_1.xm
文件 633 2019-12-23 16:30 .idea\libraries\Maven__jakarta_activation_jakarta_activation_api_1_2_1.xm
文件 633 2019-12-23 16:30 .idea\libraries\Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xm
............此处省略182个文件信息
- 上一篇:VAX垃圾注册信息全自动清理器-亲测有效
- 下一篇:EMTP ATP使用说明
评论
共有 条评论