cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-6869] Removing CXFServlet registration in JAX-RS demo SampleRestApplication
Date Fri, 27 May 2016 12:57:48 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 8b69d2f18 -> a9e7837d7


[CXF-6869] Removing CXFServlet registration in JAX-RS demo SampleRestApplication


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/a9e7837d
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/a9e7837d
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/a9e7837d

Branch: refs/heads/3.1.x-fixes
Commit: a9e7837d71973a76eed184e764d21035969132e7
Parents: 8b69d2f
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Fri May 27 13:55:26 2016 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Fri May 27 13:57:12 2016 +0100

----------------------------------------------------------------------
 .../main/java/sample/rs/service/SampleRestApplication.java  | 9 ---------
 1 file changed, 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/a9e7837d/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot/src/main/java/sample/rs/service/SampleRestApplication.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot/src/main/java/sample/rs/service/SampleRestApplication.java
b/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot/src/main/java/sample/rs/service/SampleRestApplication.java
index 5338ca2..c2cbc7d 100644
--- a/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot/src/main/java/sample/rs/service/SampleRestApplication.java
+++ b/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot/src/main/java/sample/rs/service/SampleRestApplication.java
@@ -22,11 +22,8 @@ import java.util.Arrays;
 import org.apache.cxf.endpoint.Server;
 import org.apache.cxf.jaxrs.JAXRSServerFactoryBean;
 import org.apache.cxf.jaxrs.swagger.Swagger2Feature;
-import org.apache.cxf.transport.servlet.CXFServlet;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.context.embedded.ServletRegistrationBean;
-import org.springframework.context.ApplicationContext;
 import org.springframework.context.annotation.Bean;
 
 import sample.rs.service.hello1.HelloService;
@@ -39,12 +36,6 @@ public class SampleRestApplication {
     }
  
     @Bean
-    public ServletRegistrationBean servletRegistrationBean(ApplicationContext context) {
-        return new ServletRegistrationBean(new CXFServlet(), "/services/*");
-    }
- 
-    
-    @Bean
     public Server rsServer() {
         JAXRSServerFactoryBean endpoint = new JAXRSServerFactoryBean();
         endpoint.setServiceBeans(Arrays.asList(new HelloService(), new HelloService2()));


Mime
View raw message