资源简介

springboot集成mysql、TDengine双数据库Demo,利用mybatis进行sql管理;下载使用前,请确保是否已存在mysql以及TDengine数据库环境。 TDengine是涛思数据专为物联网、车联网、工业互联网、IT运维等设计和优化的大数据平台。除核心的快10倍以上的时序数据库功能外,还提供缓存、数据订阅、流式计算等功能,最大程度减少研发和运维的复杂度,且核心代码,包括集群功能全部开源。

资源截图

代码片段和文件信息

/*
 * 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) {
    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    .CA....       299  2020-05-11 14:08  springbootdemo\.gitignore

    .CA....         0  2020-08-14 16:49  springbootdemo\.idea\.gitignore

    .CA....       833  2020-08-14 16:51  springbootdemo\.idea\compiler.xml

    .CA....       191  2020-08-14 16:51  springbootdemo\.idea\encodings.xml

    .CA....       879  2020-08-14 16:51  springbootdemo\.idea\jarRepositories.xml

    .CA....       568  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xml

    .CA....       547  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xml

    .CA....       572  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__commons_logging_commons_logging_1_1_2.xml

    .CA....       493  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__com_alibaba_druid_1_1_17.xml

    .CA....       633  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__com_alibaba_druid_spring_boot_starter_1_1_17.xml

    .CA....       522  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__com_fasterxml_classmate_1_5_1.xml

    .CA....       651  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_annotations_2_10_0.xml

    .CA....       602  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_core_2_10_0.xml

    .CA....       630  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_databind_2_10_0.xml

    .CA....       681  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_10_0.xml

    .CA....       695  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_10_0.xml

    .CA....       736  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_10_0.xml

    .CA....       546  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xml

    .CA....       580  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__com_taosdata_jdbc_taos_jdbcdriver_1_0_3.xml

    .CA....       700  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml

    .CA....       503  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__com_zaxxer_HikariCP_3_4_1.xml

    .CA....       633  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__jakarta_activation_jakarta_activation_api_1_2_1.xml

    .CA....       633  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml

    .CA....       633  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__jakarta_validation_jakarta_validation_api_2_0_1.xml

    .CA....       611  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_2.xml

    .CA....       574  2020-08-18 17:43  springbootdemo\.idea\libraries\Maven__mysql_mysql_connector_java_8_0_18.xml

    .CA....       536  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__net_bytebuddy_byte_buddy_1_10_2.xml

    .CA....       578  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__net_bytebuddy_byte_buddy_agent_1_10_2.xml

    .CA....       542  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__net_minidev_accessors_smart_1_2.xml

    .CA....       507  2020-08-14 16:51  springbootdemo\.idea\libraries\Maven__net_minidev_json_smart_2_3.xml

............此处省略168个文件信息

评论

共有 条评论