• 大小: 2.22MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-29
  • 语言: 其他
  • 标签: SpringBoot  Velocity  

资源简介

Spring Boot项目 自动生成数据表模板,包括:Mapper、Mapper.xml、Service、Controller

资源截图

代码片段和文件信息

package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/**
 * 启动程序
 *
 * @author Rimon
 */
/* Spring Boot 默认会加载 org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration 类,DataSourceAutoConfiguration
    类使用了 @Configuration 注解向 spring 注入了DataSource Bean。因为工程中没有关于 DataSource 相关的配置信息,当 spring
    创建 DataSource Bean 因缺少相关的信息就会报错。在 Application 类上增加 (exclude={DataSourceAutoConfiguration.class})
    解决此问题 */
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
@MapperScan(“com.example.demo.project.*.mapper“)
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(DemoApplication.class);
        application.setBannerMode(Banner.Mode.OFF);// 不输出Banner
        application.run(args);

        /** 启动成功后输出信息 */
        System.out.println(“  ____    _____      _      ____    _____     ____    _   _    ____    ____   _____   ____    ____      _   _   _ \n“ +
                “ / ___|  |_   _|    / \\    |  _ \\  |_   _|   / ___|  | | | |  / ___|  / ___| | ____| / ___|  / ___|    | | | | | |\n“ +
                “ \\___ \\    | |     / _ \\   | |_) |   | |     \\___ \\  | | | | | |     | |     |  _|   \\___ \\  \\___ \\    | | | | | |\n“ +
                “  ___) |   | |    / ___ \\  |  _ <    | |      ___) | | |_| | | |___  | |___  | |___   ___) |  ___) |   |_| |_| |_|\n“ +
                “ |____/    |_|   /_/   \\_\\ |_| \\_\\   |_|     |____/   \\___/   \\____|  \\____| |_____| |____/  |____/    (_) (_) (_)\n“ +
                “                                                                                                                  “);
    }
}

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

     文件        268  2018-08-19 15:21  demo\.gitignore

     文件        620  2018-08-19 15:22  demo\.idea\compiler.xml

     文件        172  2018-08-19 15:22  demo\.idea\encodings.xml

     文件        290  2018-08-19 20:14  demo\.idea\inspectionProfiles\Project_Default.xml

     文件        568  2018-08-19 15:22  demo\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xml

     文件        547  2018-08-19 15:22  demo\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xml

     文件        616  2018-08-19 21:52  demo\.idea\libraries\Maven__commons_collections_commons_collections_3_2_1.xml

     文件        503  2018-08-19 21:39  demo\.idea\libraries\Maven__commons_io_commons_io_2_5.xml

     文件        525  2018-08-19 21:52  demo\.idea\libraries\Maven__commons_lang_commons_lang_2_4.xml

     文件        493  2018-08-19 15:26  demo\.idea\libraries\Maven__com_alibaba_druid_1_1_10.xml

     文件        633  2018-08-19 15:26  demo\.idea\libraries\Maven__com_alibaba_druid_spring_boot_starter_1_1_10.xml

     文件        522  2018-08-19 17:59  demo\.idea\libraries\Maven__com_fasterxml_classmate_1_3_4.xml

     文件        644  2018-08-19 17:59  demo\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml

     文件        595  2018-08-19 17:59  demo\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_core_2_9_6.xml

     文件        623  2018-08-19 17:59  demo\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_databind_2_9_6.xml

     文件        674  2018-08-19 17:59  demo\.idea\libraries\Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_6.xml

     文件        688  2018-08-19 17:59  demo\.idea\libraries\Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_6.xml

     文件        729  2018-08-19 17:59  demo\.idea\libraries\Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_6.xml

     文件        547  2018-08-19 20:36  demo\.idea\libraries\Maven__com_github_jsqlparser_jsqlparser_1_0.xml

     文件        561  2018-08-19 20:36  demo\.idea\libraries\Maven__com_github_pagehelper_pagehelper_5_1_4.xml

     文件        743  2018-08-19 20:36  demo\.idea\libraries\Maven__com_github_pagehelper_pagehelper_spring_boot_autoconfigure_1_2_5.xml

     文件        701  2018-08-19 20:36  demo\.idea\libraries\Maven__com_github_pagehelper_pagehelper_spring_boot_starter_1_2_5.xml

     文件        673  2018-08-19 21:04  demo\.idea\libraries\Maven__com_github_theborakompanioni_thymeleaf_extras_shiro_2_0_0.xml

     文件        546  2018-08-19 15:22  demo\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xml

     文件        700  2018-08-19 15:22  demo\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml

     文件        503  2018-08-19 17:54  demo\.idea\libraries\Maven__com_zaxxer_HikariCP_2_7_9.xml

     文件        611  2018-08-19 15:22  demo\.idea\libraries\Maven__javax_annotation_javax_annotation_api_1_3_2.xml

     文件        611  2018-08-19 17:59  demo\.idea\libraries\Maven__javax_validation_validation_api_2_0_1_Final.xml

     文件        455  2018-08-19 15:22  demo\.idea\libraries\Maven__junit_junit_4_12.xml

     文件        574  2018-08-19 15:27  demo\.idea\libraries\Maven__mysql_mysql_connector_java_5_1_46.xml

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

评论

共有 条评论