All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dreamroute.tx.manager.starter.config.TxManagerProperties Maven / Gradle / Ivy

package com.github.dreamroute.tx.manager.starter.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author w.dehai.2021/7/20.11:42
 */
@Data
@ConfigurationProperties(prefix = "tx.manager")
public class TxManagerProperties {
    /**
     * 需要被拦截的包,多个用逗号分割,比如:com.github.a, com.github.b
     */
    private String packages;

    /**
     * 指定回滚异常,默认java.lang.RuntimeException
     */
    private String rollbackFor = "java.lang.RuntimeException";

    /**
     * 是否开启readOnly,默认false,true:对于配置了readOnly的方法就会被设置成只读事务,false:对于配置了readOnly的方法就不会被施加事务管理
     */
    private boolean enableReadOnly = false;

    /**
     * 只读事务
     */
    private String readOnly;

    /**
     * 普通事务
     */
    private String required;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy