Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

spring websocket allow origin

@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfigurer extends WebSocketMessageBrokerConfigurer {

	@Override
	public void registerStompEndpoints(StompEndpointRegistry stompEndpointRegistry) {
    	stompEndpointRegistry.addEndpoint("/ws").setAllowedOriginPatterns("*").withSockJS();
	}
  
  	...
}
Comment

PREVIOUS NEXT
Code Example
Java :: how to conver string to int 
Java :: blurview android github 
Java :: random number generator java with range 
Java :: BST in java 
Java :: sorting java 
Java :: java convert edittext to double 
Java :: java square root 
Java :: java print formatted string 
Java :: print array 
Java :: java printf 
Java :: space seperator in string in java 
Java :: has been compiled by a more recent version of the Java Runtime (class file version ), this version of the Java Runtime only recognizes class file versions up to 
Java :: how to find prime numbers in java 
Java :: palindrome find in java 
Java :: tomcat 9 default username and password 
Java :: how to change tablayout current view position in android 
Java :: check if char is a space java 
Java :: java multiple catch blocks 
Java :: what does setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) is used for 
Java :: pre increment and post increments 
Java :: java read integer from text file into array scanner 
Java :: first and last digit of a number in java 
Java :: java string get ith char 
Java :: is java compiled or interpreted 
Java :: java variable declaration 
Java :: Date(Long) to integer and back 
Java :: splay tree java implementation 
Java :: print 1 to 10 using thread in java 
Java :: java input - how to read a string 
Java :: adjust font scale in android studio 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =