mirror of
https://github.com/wahyd4/Martian.git
synced 2026-08-09 05:16:21 +10:00
update version
This commit is contained in:
@@ -53,6 +53,7 @@ public class ExecTraction {
|
||||
* 获取aop实体
|
||||
* @param traction 事务监听注解
|
||||
* @return aop实体
|
||||
* @throws Exception 异常
|
||||
*/
|
||||
public static AopModel getAopModel(Traction traction) throws Exception {
|
||||
if(traction == null){
|
||||
|
||||
@@ -61,7 +61,7 @@ public abstract class MarsConfig {
|
||||
|
||||
/**
|
||||
* 其他配置项
|
||||
* @return
|
||||
* @return 配置
|
||||
*/
|
||||
public Map<String,String> marsValues(){
|
||||
return null;
|
||||
|
||||
@@ -17,7 +17,6 @@ public class MarsConfiguration {
|
||||
/**
|
||||
* 加载配置文件
|
||||
* @param marsConfig 后缀
|
||||
* @throws Exception 异常
|
||||
*/
|
||||
public static void loadConfig(MarsConfig marsConfig) {
|
||||
constants.setAttr(MarsConstant.CONFIG_CACHE_KEY,marsConfig);
|
||||
|
||||
@@ -54,14 +54,12 @@ public class BeanFactory {
|
||||
throw new Exception("创建["+className.getName()+"]类型的bean对象出现错误",e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获取bean
|
||||
* @param name bean名称
|
||||
* @param cls bean类型
|
||||
* @param <T> 类型
|
||||
* @return bean对象
|
||||
*
|
||||
* @throws Exception 异常
|
||||
*/
|
||||
public static <T> T getBean(String name,Class<T> cls) throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user