package br.holandajunior.workaday;

import org.apache.activemq.broker.BrokerService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.jms.annotation.EnableJms;


/**
 * Created by holandajunior on 29/04/17.
 */

@SpringBootApplication // same as @Configuration @EnableAutoConfiguration @ComponentScan
@EnableJms
public class Application {

    private static final String URL_MSG_BROKER = "tcp://localhost:61616";

    @Bean(initMethod = "start", destroyMethod = "stop")
    public BrokerService broker() throws Exception {

        final BrokerService broker = new BrokerService();
        broker.addConnector( URL_MSG_BROKER );
        broker.setPersistent(false);

        return broker;
    }

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}

@@ -303,16 +303,244 @@
 bleJms;%0A
+import org.springframework.web.servlet.config.annotation.CorsRegistry;%0Aimport org.springframework.web.servlet.config.annotation.WebMvcConfigurer;%0Aimport org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;%0A
 %0A%0A/**%0A *
@@ -1069,16 +1069,303 @@
 %0A    %7D%0A%0A
+    @Bean%0A    public WebMvcConfigurer corsConfigurer() %7B%0A        return new WebMvcConfigurerAdapter() %7B%0A            @Override%0A            public void addCorsMappings(CorsRegistry registry) %7B%0A                registry.addMapping(%22/**%22).allowedOrigins(%22*%22);%0A            %7D%0A        %7D;%0A    %7D%0A%0A
     publ

Add cors filter into query-side