package ch.rasc.wampspring.demo.various;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import ch.rasc.wampspring.config.DefaultWampConfiguration;
import ch.rasc.wampspring.config.WampEndpointRegistry;

import com.fasterxml.jackson.databind.ObjectMapper;

@Configuration
public class WampConfig extends DefaultWampConfiguration {

	// Reusing the objectMapper that spring boot provides

	@Autowired
	ObjectMapper objectMapper;

	@Override
	public ObjectMapper objectMapper() {
		return this.objectMapper;
	}

	@Override
	public void registerWampEndpoints(WampEndpointRegistry registry) {
		registry.addEndpoint("/wamp").withSockJS();
		registry.addEndpoint("/ws");
	}

}
@@ -66,106 +66,88 @@
 ork.
-beans.factory.annotation.Autowired;%0Aimport org.springframework.context.annotation.Configuration
+context.annotation.Configuration;%0A%0Aimport ch.rasc.wampspring.config.EnableWamp
 ;%0A
-%0A
 impo
@@ -175,23 +175,16 @@
 .config.
-Default
 WampConf
@@ -187,21 +187,25 @@
 Configur
-ation
+erAdapter
 ;%0Aimport
@@ -258,61 +258,8 @@
 y;%0A%0A
-import com.fasterxml.jackson.databind.ObjectMapper;%0A%0A
 @Con
@@ -269,16 +269,28 @@
 uration%0A
+@EnableWamp%0A
 public c
@@ -317,15 +317,8 @@
 nds 
-Default
 Wamp
@@ -329,193 +329,19 @@
 igur
-ation %7B%0A%0A%09// Reusing the objectMapper that spring boot provides%0A%0A%09@Autowired%0A%09ObjectMapper objectMapper;%0A%0A%09@Override%0A%09public ObjectMapper objectMapper() %7B%0A%09%09return this.objectMapper;%0A%09%7D
+erAdapter %7B
 %0A%0A%09@

Simplify configuration. wampspring uses by default the ObjectMapper configured by Spring Boot