资源简介

SpringBoot写一个登陆注册功能,开发工具使用IDEA,技术使用SpringBoot2.1.3+Mybatis+Jpa+mysql,项目中主要使用Mybatis,jpa只做了demo,实体转换使用的是mapstruct,集成了swagger文档配置,redis缓存demo,代码只是参考,请学会思考,重要的是开发过程中的乐趣,开发步骤请参考我的博客:https://blog.csdn.net/kaifaxiaoliu/article/details/89309047

资源截图

代码片段和文件信息

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

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

     文件        768  2019-02-28 21:30  SpringBootDemo\.gitignore

     文件        833  2019-04-15 10:38  SpringBootDemo\.idea\compiler.xml

     文件        345  2019-04-13 13:46  SpringBootDemo\.idea\encodings.xml

     文件       1969  2019-04-13 20:39  SpringBootDemo\.idea\inspectionProfiles\Project_Default.xml

     文件        471  2019-04-03 11:07  SpringBootDemo\.idea\libraries\Maven__antlr_antlr_2_7_7.xml

     文件        577  2019-04-03 11:04  SpringBootDemo\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xml

     文件        556  2019-04-03 11:04  SpringBootDemo\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xml

     文件        523  2019-04-13 17:59  SpringBootDemo\.idea\libraries\Maven__com_alibaba_fastjson_1_2_57.xml

     文件        531  2019-04-03 11:04  SpringBootDemo\.idea\libraries\Maven__com_fasterxml_classmate_1_4_0.xml

     文件        653  2019-04-03 11:04  SpringBootDemo\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml

     文件        604  2019-04-03 11:04  SpringBootDemo\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_core_2_9_8.xml

     文件        632  2019-04-03 11:04  SpringBootDemo\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_databind_2_9_8.xml

     文件        683  2019-04-03 11:04  SpringBootDemo\.idea\libraries\Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_8.xml

     文件        697  2019-04-03 11:04  SpringBootDemo\.idea\libraries\Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_8.xml

     文件        738  2019-04-03 11:04  SpringBootDemo\.idea\libraries\Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_8.xml

     文件        508  2019-04-05 09:49  SpringBootDemo\.idea\libraries\Maven__com_google_guava_guava_20_0.xml

     文件        555  2019-04-03 11:04  SpringBootDemo\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xml

     文件        709  2019-04-03 11:04  SpringBootDemo\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml

     文件        512  2019-04-03 11:07  SpringBootDemo\.idea\libraries\Maven__com_zaxxer_HikariCP_3_2_0.xml

     文件        596  2019-04-03 15:13  SpringBootDemo\.idea\libraries\Maven__io_lettuce_lettuce_core_5_1_4_RELEASE.xml

     文件        581  2019-04-03 15:13  SpringBootDemo\.idea\libraries\Maven__io_netty_netty_buffer_4_1_33_Final.xml

     文件        574  2019-04-03 15:13  SpringBootDemo\.idea\libraries\Maven__io_netty_netty_codec_4_1_33_Final.xml

     文件        581  2019-04-03 15:13  SpringBootDemo\.idea\libraries\Maven__io_netty_netty_common_4_1_33_Final.xml

     文件        588  2019-04-03 15:13  SpringBootDemo\.idea\libraries\Maven__io_netty_netty_handler_4_1_33_Final.xml

     文件        595  2019-04-03 15:13  SpringBootDemo\.idea\libraries\Maven__io_netty_netty_resolver_4_1_33_Final.xml

     文件        602  2019-04-03 15:13  SpringBootDemo\.idea\libraries\Maven__io_netty_netty_transport_4_1_33_Final.xml

     文件        624  2019-04-03 15:13  SpringBootDemo\.idea\libraries\Maven__io_projectreactor_reactor_core_3_2_6_RELEASE.xml

     文件        562  2019-04-05 09:49  SpringBootDemo\.idea\libraries\Maven__io_springfox_springfox_core_2_9_2.xml

     文件        576  2019-04-05 09:49  SpringBootDemo\.idea\libraries\Maven__io_springfox_springfox_schema_2_9_2.xml

     文件        555  2019-04-05 09:49  SpringBootDemo\.idea\libraries\Maven__io_springfox_springfox_spi_2_9_2.xml

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

评论

共有 条评论