info.baseinsight.plugin.springsecurity.websocket.WebSocketProperties Maven / Gradle / Ivy
The newest version!
package info.baseinsight.plugin.springsecurity.websocket;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "base.websocket")
public class WebSocketProperties {
private String userDestinationPrefix="/user/";
private String stompEndpoint="/websocket";
private String topicBroker="/topic";
private String queueBroker="/queue";
//增加
private String allowedOrigins="'*'";
public String getUserDestinationPrefix() {
return userDestinationPrefix;
}
public void setUserDestinationPrefix(String userDestinationPrefix) {
this.userDestinationPrefix = userDestinationPrefix;
}
public String getStompEndpoint() {
return stompEndpoint;
}
public void setStompEndpoint(String stompEndpoint) {
this.stompEndpoint = stompEndpoint;
}
public String getTopicBroker() {
return topicBroker;
}
public void setTopicBroker(String topicBroker) {
this.topicBroker = topicBroker;
}
public String getQueueBroker() {
return queueBroker;
}
public void setQueueBroker(String queueBroker) {
this.queueBroker = queueBroker;
}
public String getAllowedOrigins() {
return allowedOrigins;
}
public void setAllowedOrigins(String allowedOrigins) {
this.allowedOrigins = allowedOrigins;
}
}