资源简介

本项目是:SpringBoot 基于注解,实现多数据源切换(辅助用到:Druid连接池 + 事务 + MyBatis 等),项目下载后只需要修改一下.yml文件中的 MySQL 的URL连接,即可成功启动,欢迎大家下载

资源截图

代码片段和文件信息

package com.example.demo02.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 自定义注解
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface Ds {
   String value();
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-10-30 18:17  demo02\
     目录           0  2019-10-30 18:19  demo02\.idea\
     文件        1062  2019-10-30 10:39  demo02\.idea\compiler.xml
     文件         344  2019-10-30 10:39  demo02\.idea\encodings.xml
     目录           0  2019-10-30 17:49  demo02\.idea\libraries\
     文件         592  2019-10-30 10:39  demo02\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_2_3.xml
     文件         571  2019-10-30 10:39  demo02\.idea\libraries\Maven__ch_qos_logback_logback_core_1_2_3.xml
     文件         517  2019-10-30 15:07  demo02\.idea\libraries\Maven__com_alibaba_druid_1_1_20.xml
     文件         657  2019-10-30 15:07  demo02\.idea\libraries\Maven__com_alibaba_druid_spring_boot_starter_1_1_20.xml
     文件         546  2019-10-30 10:39  demo02\.idea\libraries\Maven__com_fasterxml_classmate_1_5_0.xml
     文件         675  2019-10-30 10:39  demo02\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_annotations_2_10_0.xml
     文件         626  2019-10-30 10:39  demo02\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_core_2_10_0.xml
     文件         654  2019-10-30 10:39  demo02\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_databind_2_10_0.xml
     文件         705  2019-10-30 10:39  demo02\.idea\libraries\Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_10_0.xml
     文件         719  2019-10-30 10:39  demo02\.idea\libraries\Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_10_0.xml
     文件         760  2019-10-30 10:39  demo02\.idea\libraries\Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_10_0.xml
     文件         570  2019-10-30 10:39  demo02\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_4_0.xml
     文件         724  2019-10-30 10:39  demo02\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml
     文件         527  2019-10-30 11:00  demo02\.idea\libraries\Maven__com_zaxxer_HikariCP_3_4_1.xml
     文件         657  2019-10-30 10:39  demo02\.idea\libraries\Maven__jakarta_activation_jakarta_activation_api_1_2_1.xml
     文件         657  2019-10-30 10:39  demo02\.idea\libraries\Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml
     文件         657  2019-10-30 10:39  demo02\.idea\libraries\Maven__jakarta_validation_jakarta_validation_api_2_0_1.xml
     文件         635  2019-10-30 10:39  demo02\.idea\libraries\Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_2.xml
     文件         493  2019-10-30 17:48  demo02\.idea\libraries\Maven__log4j_log4j_1_2_17.xml
     文件         598  2019-10-30 11:13  demo02\.idea\libraries\Maven__mysql_mysql_connector_java_5_1_34.xml
     文件         560  2019-10-30 10:39  demo02\.idea\libraries\Maven__net_bytebuddy_byte_buddy_1_10_1.xml
     文件         602  2019-10-30 10:39  demo02\.idea\libraries\Maven__net_bytebuddy_byte_buddy_agent_1_10_1.xml
     文件         566  2019-10-30 10:39  demo02\.idea\libraries\Maven__net_minidev_accessors_smart_1_2.xml
     文件         531  2019-10-30 10:39  demo02\.idea\libraries\Maven__net_minidev_json_smart_2_3.xml
     文件         597  2019-10-30 10:39  demo02\.idea\libraries\Maven__org_apache_logging_log4j_log4j_api_2_12_1.xml
     文件         632  2019-10-30 10:39  demo02\.idea\libraries\Maven__org_apache_logging_log4j_log4j_to_slf4j_2_12_1.xml
............此处省略152个文件信息

评论

共有 条评论