重写用户获取火点数据的接口
This commit is contained in:
parent
6ddb10b45b
commit
75bf29abc1
5
pom.xml
5
pom.xml
@ -62,11 +62,6 @@
|
|||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-messaging</artifactId>
|
<artifactId>spring-security-messaging</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-starter-websocket</artifactId>
|
|
||||||
<!-- <scope>provided</scope>-->
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-devtools</artifactId>
|
<artifactId>spring-boot-devtools</artifactId>
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
package com.xkrs.common.config;
|
|
||||||
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
import org.springframework.security.config.annotation.web.messaging.MessageSecurityMetadataSourceRegistry;
|
|
||||||
import org.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer;
|
|
||||||
|
|
||||||
import static org.springframework.messaging.simp.SimpMessageType.MESSAGE;
|
|
||||||
import static org.springframework.messaging.simp.SimpMessageType.SUBSCRIBE;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author xkrs
|
|
||||||
*/
|
|
||||||
@Configuration
|
|
||||||
public class WebSocketSecurityConfig extends AbstractSecurityWebSocketMessageBrokerConfigurer {
|
|
||||||
@Override
|
|
||||||
protected void configureInbound(MessageSecurityMetadataSourceRegistry messages) {
|
|
||||||
messages
|
|
||||||
.nullDestMatcher().authenticated()
|
|
||||||
.simpSubscribeDestMatchers("/user/queue/errors").permitAll()
|
|
||||||
.simpTypeMatchers(MESSAGE, SUBSCRIBE).denyAll()
|
|
||||||
.anyMessage().denyAll();
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user