mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 17:48:25 +08:00
style: 更新 UseDataSource 注释。
This commit is contained in:
parent
912093be8a
commit
002feafd52
@ -1,4 +1,4 @@
|
||||
/**
|
||||
/*
|
||||
* Copyright (c) 2022-2023, Mybatis-Flex (fuhai999@gmail.com).
|
||||
* <p>
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@ -17,15 +17,17 @@ package com.mybatisflex.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* 多数据源切换注解。
|
||||
*/
|
||||
@Inherited
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.METHOD, ElementType.TYPE})
|
||||
public @interface UseDataSource {
|
||||
|
||||
/**
|
||||
* 使用哪个数据源,配置的是 Mybatis 的 environmentId
|
||||
* 使用哪个数据源,配置的是 Mybatis 的 environmentId 属性。
|
||||
*/
|
||||
String value();
|
||||
|
||||
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user