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

12
Java and Services: Code Lab-Spring Boot and Spring Data using MongoDB MIYA W. LONGWE TECHNOLOGY EVANGELIST [email protected]

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

Page 1: Java and services code lab spring boot and spring data using mongo db

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

Page 2: Java and services code lab spring boot and spring data using mongo db

AGENDA Introduction to Spring Boot

Why Use Spring Boot

Review Sample Application

QA

Page 3: Java and services code lab spring boot and spring data using mongo db

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!

Page 4: Java and services code lab spring boot and spring data using mongo db

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

Page 5: Java and services code lab spring boot and spring data using mongo db

Spring Boot: Focus Attention

Page 6: Java and services code lab spring boot and spring data using mongo db

Architecture

Page 7: Java and services code lab spring boot and spring data using mongo db

Disclaimer Spring Boot is NOT

! A prototyping tool

! Only for embedded container apps

! Sub-par Spring experience

! For Spring beginners only

Page 8: Java and services code lab spring boot and spring data using mongo db

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

Page 9: Java and services code lab spring boot and spring data using mongo db

Boot Modules

Boot

Autoconfigure

Starters

CLI

Actuator

Tools

Samples

Page 10: Java and services code lab spring boot and spring data using mongo db

Getting Started Quickly In Java!

http://spring.io/guides

DEMO – USING ECLIPSE

DEMO- Using Web Services

https://start.spring.io/

Page 11: Java and services code lab spring boot and spring data using mongo db

DEMO Application Overview

Page 12: Java and services code lab spring boot and spring data using mongo db

QA