Java and Services: Code
Lab-Spring Boot and Spring
Data using MongoDB
M I Y A W . L O N G W E T E C H N O L O G Y E V A N G E L I S T
M I Y A _ L O N G W E @ Y A H O O . C O M
AGENDA
Introduction to Spring Boot
Why Use Spring Boot
Review Sample Application
QA
Spring Boot Goals
➔ Introduce developers to Spring Boot, an opinionated way to rapidly build production
grade Spring applications quickly and with minimal fuss.
➔ Be opinionated out of the box, but get out of the way quickly as requirements start to
diverge from the defaults
➔ Provide a range of non-functional features that are common to large classes of
projects (e.
g. embedded servers, security, metrics, health checks, externalized configuration)
➔ Absolutely no code generation and no requirement for XML configuration!
Spring Boot Goals…
➔ Single point of focus (as opposed to large collection of spring-* projects)
➔ A tool for getting started very quickly with Spring
➔ Common non-functional requirements for a "real" application
➔ Exposes a lot of useful features by default
➔ Gets out of the way quickly if you want to change defaults
Spring Boot: Focus Attention
Architecture
Disclaimer
Spring Boot is NOT
! A prototyping tool
! Only for embedded container apps
! Sub-par Spring experience
! For Spring beginners only
Spring Boot Modules
 Spring Boot - main library supporting the other parts of Spring Boot
 Spring Boot Autoconfigure - single @EnableAutoConfiguration annotation creates a
whole Spring context
 Spring Boot Starters - a set of convenient dependency descriptors that you can
include in your application.
 Spring Boot CLI - compiles and runs Groovy source as a Spring application
 Spring Boot Actuator - common non-functional features that make an app instantly
deployable and supportable in production
 Spring Boot Tools - for building and executing self-contained JAR and WAR archives
 Spring Boot Samples - a wide range of sample apps
Boot Modules
Boot
Autoconfigure
Starters
CLI
Actuator
Tools
Samples
Getting Started Quickly In Java!
http://spring.io/guides
DEMO – USING ECLIPSE
DEMO- Using Web Services
https://start.spring.io/
DEMO
Application Overview
QA

Java and services code lab spring boot and spring data using mongo db

  • 1.
    Java and Services:Code Lab-Spring Boot and Spring Data using MongoDB M I Y A W . L O N G W E T E C H N O L O G Y E V A N G E L I S T M I Y A _ L O N G W E @ Y A H O O . C O M
  • 2.
    AGENDA Introduction to SpringBoot Why Use Spring Boot Review Sample Application QA
  • 3.
    Spring Boot Goals ➔Introduce developers to Spring Boot, an opinionated way to rapidly build production grade Spring applications quickly and with minimal fuss. ➔ Be opinionated out of the box, but get out of the way quickly as requirements start to diverge from the defaults ➔ Provide a range of non-functional features that are common to large classes of projects (e. g. embedded servers, security, metrics, health checks, externalized configuration) ➔ Absolutely no code generation and no requirement for XML configuration!
  • 4.
    Spring Boot Goals… ➔Single point of focus (as opposed to large collection of spring-* projects) ➔ A tool for getting started very quickly with Spring ➔ Common non-functional requirements for a "real" application ➔ Exposes a lot of useful features by default ➔ Gets out of the way quickly if you want to change defaults
  • 5.
  • 6.
  • 7.
    Disclaimer Spring Boot isNOT ! A prototyping tool ! Only for embedded container apps ! Sub-par Spring experience ! For Spring beginners only
  • 8.
    Spring Boot Modules Spring Boot - main library supporting the other parts of Spring Boot  Spring Boot Autoconfigure - single @EnableAutoConfiguration annotation creates a whole Spring context  Spring Boot Starters - a set of convenient dependency descriptors that you can include in your application.  Spring Boot CLI - compiles and runs Groovy source as a Spring application  Spring Boot Actuator - common non-functional features that make an app instantly deployable and supportable in production  Spring Boot Tools - for building and executing self-contained JAR and WAR archives  Spring Boot Samples - a wide range of sample apps
  • 9.
  • 10.
    Getting Started QuicklyIn Java! http://spring.io/guides DEMO – USING ECLIPSE DEMO- Using Web Services https://start.spring.io/
  • 11.
  • 12.