liuchen
10 months ago
4 changed files with 19 additions and 35 deletions
@ -0,0 +1,15 @@ |
|||
package com.win.mq.config; |
|||
|
|||
|
|||
import lombok.Data; |
|||
import org.springframework.boot.context.properties.ConfigurationProperties; |
|||
import org.springframework.context.annotation.Configuration; |
|||
|
|||
@Data |
|||
@Configuration |
|||
@ConfigurationProperties(prefix = "rocketmq.config") |
|||
public class MQConfigure { |
|||
|
|||
private String dataPath; |
|||
|
|||
} |
@ -1,28 +0,0 @@ |
|||
package com.win.mq.config; |
|||
|
|||
|
|||
import lombok.Data; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import org.apache.rocketmq.common.MixAll; |
|||
import org.slf4j.Logger; |
|||
import org.slf4j.LoggerFactory; |
|||
import org.springframework.boot.context.properties.ConfigurationProperties; |
|||
import org.springframework.boot.web.server.ErrorPage; |
|||
import org.springframework.boot.web.server.ErrorPageRegistrar; |
|||
import org.springframework.boot.web.server.ErrorPageRegistry; |
|||
import org.springframework.context.annotation.Bean; |
|||
import org.springframework.context.annotation.Configuration; |
|||
import org.springframework.http.HttpStatus; |
|||
|
|||
import java.io.File; |
|||
|
|||
import static org.apache.rocketmq.client.ClientConfig.SEND_MESSAGE_WITH_VIP_CHANNEL_PROPERTY; |
|||
|
|||
@Data |
|||
@Configuration |
|||
@ConfigurationProperties(prefix = "rocketmq.config") |
|||
public class RMQConfigure { |
|||
|
|||
private String dataPath; |
|||
|
|||
} |
Loading…
Reference in new issue