mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-05-01 01:21:28 +08:00
update 重构 将系统内置配置放置到common包内独立加载 不允许用户随意修改
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package org.dromara.common.dubbo.config;
|
||||
|
||||
import org.dromara.common.core.factory.YmlPropertySourceFactory;
|
||||
import org.dromara.common.dubbo.properties.DubboCustomProperties;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
|
||||
/**
|
||||
* dubbo 配置类
|
||||
*/
|
||||
@AutoConfiguration
|
||||
@EnableConfigurationProperties(DubboCustomProperties.class)
|
||||
@PropertySource(value = "classpath:common-dubbo.yml", factory = YmlPropertySourceFactory.class)
|
||||
public class DubboConfiguration {
|
||||
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
package org.dromara.common.dubbo.properties;
|
||||
|
||||
import org.dromara.common.dubbo.enumd.RequestLogEnum;
|
||||
import lombok.Data;
|
||||
import org.dromara.common.dubbo.enumd.RequestLogEnum;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user