Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Spring Boot quickstart

Spring Boot quickstart

Spring Boot design principles and features incl. a hands on demo with Apache CXF

Jonas Hecht

August 30, 2016
Tweet

Other Decks in Technology

Transcript

  1. 18 ! Batch, Messaging, Caching, Relational Databases, JPA, NoSQL, whatever, Redis,

    Integration, Logging, WebServices, Mail, Security, Webapps, REST,… ! official: https://github.com/spring-projects/spring-boot/tree/ master/spring-boot-starters ! community: https://github.com/spring-projects/spring-boot/tree/ master/spring-boot-starters#community-contributions 'starter' POMs
  2. 24

  3. 29 Complete Howto: https://blog.codecentric.de/ 2016/02/spring-boot-apache-cxf/ à http://start.spring.io/ group: de.codecentric.webservice artifact:

    simpleservice Web & Devtools Demo: web service with Apache CXF 1/4 CXF-Dependencies <!-- Apache CXF --> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>3.1.7</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId> <version>3.1.7</version> </dependency>
  4. 30 Demo: web service with Apache CXF 2/4 @Bean public

    ServletRegistrationBean dispatcherServlet() { return new ServletRegistrationBean(new CXFServlet(), "/soap- api/*"); } @Bean(name= Bus.DEFAULT_BUS_ID) public SpringBus springBus() { return new SpringBus(); }
  5. 32 @Bean public WeatherService weatherService() { return new WeatherServiceEndpoint(); }

    @Bean public Endpoint endpoint() { EndpointImpl endpoint = new EndpointImpl(springBus(), weatherService()); endpoint.publish("/WeatherSoapService_1.0"); return endpoint; } Demo: web service with Apache CXF 4/4