java and services code lab spring boot and spring data using mongo db
TRANSCRIPT
Java and Services: Code Lab-Spring Boot and Spring Data using MongoDBM I YA W. L O N G W E T E C H N O LO GY E VA N G E L I S T
M I YA _ L O N G W E @ YA 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