Suche senden
Hochladen
Introduction to Spring Boot!
•
13 gefällt mir
•
6,400 views
Jakub Kubrynski
Folgen
Software
Technologie
Bildung
Melden
Teilen
Melden
Teilen
1 von 28
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
Spring Boot in Action
Spring Boot in Action
Alex Movila
Spring boot
Spring boot
Gyanendra Yadav
Spring Boot
Spring Boot
Jaran Flaath
Introduction to Spring Boot
Introduction to Spring Boot
Purbarun Chakrabarti
Spring boot
Spring boot
sdeeg
Spring boot - an introduction
Spring boot - an introduction
Jonathan Holloway
Spring Boot
Spring Boot
Jiayun Zhou
Spring data jpa
Spring data jpa
Jeevesh Pandey
Empfohlen
Spring Boot in Action
Spring Boot in Action
Alex Movila
Spring boot
Spring boot
Gyanendra Yadav
Spring Boot
Spring Boot
Jaran Flaath
Introduction to Spring Boot
Introduction to Spring Boot
Purbarun Chakrabarti
Spring boot
Spring boot
sdeeg
Spring boot - an introduction
Spring boot - an introduction
Jonathan Holloway
Spring Boot
Spring Boot
Jiayun Zhou
Spring data jpa
Spring data jpa
Jeevesh Pandey
Introduction to Spring Boot
Introduction to Spring Boot
Trey Howard
Spring Boot
Spring Boot
HongSeong Jeon
Spring Boot
Spring Boot
Pei-Tang Huang
PUC SE Day 2019 - SpringBoot
PUC SE Day 2019 - SpringBoot
Josué Neis
Spring Boot Tutorial
Spring Boot Tutorial
Naphachara Rattanawilai
Spring Framework - AOP
Spring Framework - AOP
Dzmitry Naskou
Spring boot Introduction
Spring boot Introduction
Jeevesh Pandey
Java Spring framework, Dependency Injection, DI, IoC, Inversion of Control
Java Spring framework, Dependency Injection, DI, IoC, Inversion of Control
Arjun Thakur
Spring boot
Spring boot
Pradeep Shanmugam
Spring boot introduction
Spring boot introduction
Rasheed Waraich
Spring User Guide
Spring User Guide
Muthuselvam RS
Rediscovering Spring with Spring Boot(1)
Rediscovering Spring with Spring Boot(1)
Gunith Devasurendra
Introduction to spring boot
Introduction to spring boot
Santosh Kumar Kar
Spring Data JPA
Spring Data JPA
Cheng Ta Yeh
Spring Framework
Spring Framework
tola99
Spring Boot
Spring Boot
koppenolski
Introduction to Spring Framework
Introduction to Spring Framework
Serhat Can
REST APIs with Spring
REST APIs with Spring
Joshua Long
Spring boot
Spring boot
Bhagwat Kumar
Spring Framework - Core
Spring Framework - Core
Dzmitry Naskou
Microservices with Spring Boot
Microservices with Spring Boot
Joshua Long
Microservice With Spring Boot and Spring Cloud
Microservice With Spring Boot and Spring Cloud
Eberhard Wolff
Weitere ähnliche Inhalte
Was ist angesagt?
Introduction to Spring Boot
Introduction to Spring Boot
Trey Howard
Spring Boot
Spring Boot
HongSeong Jeon
Spring Boot
Spring Boot
Pei-Tang Huang
PUC SE Day 2019 - SpringBoot
PUC SE Day 2019 - SpringBoot
Josué Neis
Spring Boot Tutorial
Spring Boot Tutorial
Naphachara Rattanawilai
Spring Framework - AOP
Spring Framework - AOP
Dzmitry Naskou
Spring boot Introduction
Spring boot Introduction
Jeevesh Pandey
Java Spring framework, Dependency Injection, DI, IoC, Inversion of Control
Java Spring framework, Dependency Injection, DI, IoC, Inversion of Control
Arjun Thakur
Spring boot
Spring boot
Pradeep Shanmugam
Spring boot introduction
Spring boot introduction
Rasheed Waraich
Spring User Guide
Spring User Guide
Muthuselvam RS
Rediscovering Spring with Spring Boot(1)
Rediscovering Spring with Spring Boot(1)
Gunith Devasurendra
Introduction to spring boot
Introduction to spring boot
Santosh Kumar Kar
Spring Data JPA
Spring Data JPA
Cheng Ta Yeh
Spring Framework
Spring Framework
tola99
Spring Boot
Spring Boot
koppenolski
Introduction to Spring Framework
Introduction to Spring Framework
Serhat Can
REST APIs with Spring
REST APIs with Spring
Joshua Long
Spring boot
Spring boot
Bhagwat Kumar
Spring Framework - Core
Spring Framework - Core
Dzmitry Naskou
Was ist angesagt?
(20)
Introduction to Spring Boot
Introduction to Spring Boot
Spring Boot
Spring Boot
Spring Boot
Spring Boot
PUC SE Day 2019 - SpringBoot
PUC SE Day 2019 - SpringBoot
Spring Boot Tutorial
Spring Boot Tutorial
Spring Framework - AOP
Spring Framework - AOP
Spring boot Introduction
Spring boot Introduction
Java Spring framework, Dependency Injection, DI, IoC, Inversion of Control
Java Spring framework, Dependency Injection, DI, IoC, Inversion of Control
Spring boot
Spring boot
Spring boot introduction
Spring boot introduction
Spring User Guide
Spring User Guide
Rediscovering Spring with Spring Boot(1)
Rediscovering Spring with Spring Boot(1)
Introduction to spring boot
Introduction to spring boot
Spring Data JPA
Spring Data JPA
Spring Framework
Spring Framework
Spring Boot
Spring Boot
Introduction to Spring Framework
Introduction to Spring Framework
REST APIs with Spring
REST APIs with Spring
Spring boot
Spring boot
Spring Framework - Core
Spring Framework - Core
Andere mochten auch
Microservices with Spring Boot
Microservices with Spring Boot
Joshua Long
Microservice With Spring Boot and Spring Cloud
Microservice With Spring Boot and Spring Cloud
Eberhard Wolff
Simplify Cloud Applications using Spring Cloud
Simplify Cloud Applications using Spring Cloud
Ramnivas Laddad
Spring Framework 4.0 to 4.1
Spring Framework 4.0 to 4.1
Sam Brannen
Spring Web MVC
Spring Web MVC
zeeshanhanif
Microservices with Java, Spring Boot and Spring Cloud
Microservices with Java, Spring Boot and Spring Cloud
Eberhard Wolff
Spring Boot with Quartz
Spring Boot with Quartz
David Kiss
Spring Framework Training Course
Spring Framework Training Course
RMS Software Technologies
REST - the good and the bad parts
REST - the good and the bad parts
Jakub Kubrynski
REST - the good and the bad parts
REST - the good and the bad parts
Jakub Kubrynski
Modular Java - OSGi
Modular Java - OSGi
Craig Walls
That old Spring magic has me in its SpEL
That old Spring magic has me in its SpEL
Craig Walls
Getting Started with Spring Boot
Getting Started with Spring Boot
David Kiss
-XX:+UseG1GC
-XX:+UseG1GC
Jakub Kubrynski
JVM Dive for mere mortals
JVM Dive for mere mortals
Jakub Kubrynski
Spring Boot
Spring Boot
Eberhard Wolff
Cloud Native PWAs (progressive web apps with Spring Boot and Angular) - DevNe...
Cloud Native PWAs (progressive web apps with Spring Boot and Angular) - DevNe...
Matt Raible
Bootiful Code with Spring Boot
Bootiful Code with Spring Boot
Joshua Long
Andere mochten auch
(18)
Microservices with Spring Boot
Microservices with Spring Boot
Microservice With Spring Boot and Spring Cloud
Microservice With Spring Boot and Spring Cloud
Simplify Cloud Applications using Spring Cloud
Simplify Cloud Applications using Spring Cloud
Spring Framework 4.0 to 4.1
Spring Framework 4.0 to 4.1
Spring Web MVC
Spring Web MVC
Microservices with Java, Spring Boot and Spring Cloud
Microservices with Java, Spring Boot and Spring Cloud
Spring Boot with Quartz
Spring Boot with Quartz
Spring Framework Training Course
Spring Framework Training Course
REST - the good and the bad parts
REST - the good and the bad parts
REST - the good and the bad parts
REST - the good and the bad parts
Modular Java - OSGi
Modular Java - OSGi
That old Spring magic has me in its SpEL
That old Spring magic has me in its SpEL
Getting Started with Spring Boot
Getting Started with Spring Boot
-XX:+UseG1GC
-XX:+UseG1GC
JVM Dive for mere mortals
JVM Dive for mere mortals
Spring Boot
Spring Boot
Cloud Native PWAs (progressive web apps with Spring Boot and Angular) - DevNe...
Cloud Native PWAs (progressive web apps with Spring Boot and Angular) - DevNe...
Bootiful Code with Spring Boot
Bootiful Code with Spring Boot
Ähnlich wie Introduction to Spring Boot!
Spring Bootを触ってみた
Spring Bootを触ってみた
onozaty
Modules in Java? Finally! (OpenJDK 9 Jigsaw, JSR376)
Modules in Java? Finally! (OpenJDK 9 Jigsaw, JSR376)
Mihail Stoynov
Beyond Fluffy Bunny. How I leveraged WebObjects in my lean startup.
Beyond Fluffy Bunny. How I leveraged WebObjects in my lean startup.
WO Community
Intro to Spring Boot and Spring Cloud OSS - Twin Cities Cloud Foundry Meetup
Intro to Spring Boot and Spring Cloud OSS - Twin Cities Cloud Foundry Meetup
Josh Ghiloni
Java EE revisits design patterns
Java EE revisits design patterns
Alex Theedom
Java EE revisits design patterns
Java EE revisits design patterns
Alex Theedom
#jjug_ccc #ccc_gh5 What's new in Spring Framework 4.3 / Boot 1.4 + Pivotal's ...
#jjug_ccc #ccc_gh5 What's new in Spring Framework 4.3 / Boot 1.4 + Pivotal's ...
Toshiaki Maki
Creating Modular Test-Driven SPAs with Spring and AngularJS
Creating Modular Test-Driven SPAs with Spring and AngularJS
Gunnar Hillert
Java EE Revisits Design Patterns
Java EE Revisits Design Patterns
Alex Theedom
Spring.new hope.1.3
Spring.new hope.1.3
Alex Tumanoff
Spring.Boot up your development
Spring.Boot up your development
Strannik_2013
Rapid application development with spring roo j-fall 2010 - baris dere
Rapid application development with spring roo j-fall 2010 - baris dere
Baris Dere
Spring essentials 1 (Spring Series 01)
Spring essentials 1 (Spring Series 01)
Heartin Jacob
A Brief History of OWIN
A Brief History of OWIN
Ryan Riley
Whats new in Java 9,10,11,12
Whats new in Java 9,10,11,12
Rory Preddy
YQL and Geo
YQL and Geo
mambo91
Introduction to Flask Micro Framework
Introduction to Flask Micro Framework
Mohammad Reza Kamalifard
SE2016 - Java EE revisits design patterns 2016
SE2016 - Java EE revisits design patterns 2016
Alex Theedom
Counterclockwise past present future
Counterclockwise past present future
lolopetit
Java days Lviv 2015
Java days Lviv 2015
Alex Theedom
Ähnlich wie Introduction to Spring Boot!
(20)
Spring Bootを触ってみた
Spring Bootを触ってみた
Modules in Java? Finally! (OpenJDK 9 Jigsaw, JSR376)
Modules in Java? Finally! (OpenJDK 9 Jigsaw, JSR376)
Beyond Fluffy Bunny. How I leveraged WebObjects in my lean startup.
Beyond Fluffy Bunny. How I leveraged WebObjects in my lean startup.
Intro to Spring Boot and Spring Cloud OSS - Twin Cities Cloud Foundry Meetup
Intro to Spring Boot and Spring Cloud OSS - Twin Cities Cloud Foundry Meetup
Java EE revisits design patterns
Java EE revisits design patterns
Java EE revisits design patterns
Java EE revisits design patterns
#jjug_ccc #ccc_gh5 What's new in Spring Framework 4.3 / Boot 1.4 + Pivotal's ...
#jjug_ccc #ccc_gh5 What's new in Spring Framework 4.3 / Boot 1.4 + Pivotal's ...
Creating Modular Test-Driven SPAs with Spring and AngularJS
Creating Modular Test-Driven SPAs with Spring and AngularJS
Java EE Revisits Design Patterns
Java EE Revisits Design Patterns
Spring.new hope.1.3
Spring.new hope.1.3
Spring.Boot up your development
Spring.Boot up your development
Rapid application development with spring roo j-fall 2010 - baris dere
Rapid application development with spring roo j-fall 2010 - baris dere
Spring essentials 1 (Spring Series 01)
Spring essentials 1 (Spring Series 01)
A Brief History of OWIN
A Brief History of OWIN
Whats new in Java 9,10,11,12
Whats new in Java 9,10,11,12
YQL and Geo
YQL and Geo
Introduction to Flask Micro Framework
Introduction to Flask Micro Framework
SE2016 - Java EE revisits design patterns 2016
SE2016 - Java EE revisits design patterns 2016
Counterclockwise past present future
Counterclockwise past present future
Java days Lviv 2015
Java days Lviv 2015
Mehr von Jakub Kubrynski
Work sample coding tests
Work sample coding tests
Jakub Kubrynski
6 key tips for conducting an effective skill assessment interview
6 key tips for conducting an effective skill assessment interview
Jakub Kubrynski
JPA - Beyond copy-paste
JPA - Beyond copy-paste
Jakub Kubrynski
Consumer Driven Contracts - 4Developers 2015
Consumer Driven Contracts - 4Developers 2015
Jakub Kubrynski
What you won't read in books about RESTful services
What you won't read in books about RESTful services
Jakub Kubrynski
Warsjawa profiling tools
Warsjawa profiling tools
Jakub Kubrynski
Warsjawa profiling
Warsjawa profiling
Jakub Kubrynski
JOOX - Java Object Oriented XML
JOOX - Java Object Oriented XML
Jakub Kubrynski
Arquillian
Arquillian
Jakub Kubrynski
Spring Data
Spring Data
Jakub Kubrynski
Profiling
Profiling
Jakub Kubrynski
Mehr von Jakub Kubrynski
(11)
Work sample coding tests
Work sample coding tests
6 key tips for conducting an effective skill assessment interview
6 key tips for conducting an effective skill assessment interview
JPA - Beyond copy-paste
JPA - Beyond copy-paste
Consumer Driven Contracts - 4Developers 2015
Consumer Driven Contracts - 4Developers 2015
What you won't read in books about RESTful services
What you won't read in books about RESTful services
Warsjawa profiling tools
Warsjawa profiling tools
Warsjawa profiling
Warsjawa profiling
JOOX - Java Object Oriented XML
JOOX - Java Object Oriented XML
Arquillian
Arquillian
Spring Data
Spring Data
Profiling
Profiling
Kürzlich hochgeladen
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
shikhaohhpro
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
kalichargn70th171
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
OnePlan Solutions
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
anilsa9823
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
harshavardhanraghave
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
Willy Marroquin (WillyDevNET)
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
Delhi Call girls
Software Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
Arshad QA
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
kalichargn70th171
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Alberto González Trastoy
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
aagamshah0812
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
MyIntelliSource, Inc.
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
Wave PLM
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
ICS
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
ComplianceQuest1
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
Fatema Valibhai
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
kellynguyen01
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
ThousandEyes
Kürzlich hochgeladen
(20)
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Badshah Nagar Lucknow best Female service
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
Software Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
Introduction to Spring Boot!
1.
SpringBoot! JakubKubryński/kubrynski.com jk@devskiller.com @jkubrynski
2.
whoami kubrynski.com @jkubrynskijk@devskiller.com
3.
History • 1999 J2EE
1.2 • 2001 xDoclet 1.0 • 2004 Spring Framework 1.0 ● Injection ● POJO oriented ● AOP & transactions • 2006 Java EE 5 • 2013 Spring Boot! kubrynski.com @jkubrynskijk@devskiller.com
4.
Focus source: spring.io kubrynski.com @jkubrynskijk@devskiller.com
5.
Revolution @RestController @EnableAutoConfiguration public class HelloWorld
{ @RequestMapping("/") public String helloWorld() { return "Hello World!"; } public static void main(String[] args) { SpringApplication.run(HelloWorld.class, args); } } kubrynski.com @jkubrynskijk@devskiller.com
6.
Key features • Stand-alone
Spring applications • No code generation / no XML config • Automatic configuration • Starter dependencies • Embedded Tomcat or Jetty • Production-ready environment kubrynski.com @jkubrynskijk@devskiller.com
7.
Blocks • SpringApplication • @EnableAutoConfiguration •
@ConditionalOnClass • @ConditionalOnBean • @ConditionalOnExpression kubrynski.com @jkubrynskijk@devskiller.com @...OnMissing...
8.
Sampleauto-configuration @Configuration @ConditionalOnClass({ MBeanExporter.class }) @ConditionalOnMissingBean({
MBeanExporter.class }) @ConditionalOnExpression("${spring.jmx.enabled:true}") public class JmxAutoConfiguration { ... } kubrynski.com @jkubrynskijk@devskiller.com
9.
Availableauto-configurations ● Batch ● Spring Data, JPA,
Hibernate, Mongo, Redis ● JMS, RabbitMQ (AMQP) ● Reactor ● Security ● WebMVC, Thymeleaf, Websocket ● Tomcat and Jetty kubrynski.com @jkubrynskijk@devskiller.com
10.
Starters • spring-boot-starter • spring-boot-starter-web •
spring-boot-starter-test • spring-boot-starter-actuator kubrynski.com @jkubrynskijk@devskiller.com
11.
Starters <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> kubrynski.com @jkubrynskijk@devskiller.com
12.
Properties public class MailProperties
{ @Value(“serverAddress”) private InetAddress serverAddress; } java – jar app.jar –serverAddress=10.0.0.1 kubrynski.com @jkubrynskijk@devskiller.com
13.
Properties @ConfigurationProperties(prefix=”mail”) public class MailProperties
{ private InetAddress serverAddress; private Resource template; } mail.serverAddress : 84.123.456.32 mail.template : classpath:mail.vm kubrynski.com @jkubrynskijk@devskiller.com
14.
Properties @ConfigurationProperties(prefix=”mail”) public class MailProperties
{ private InetAddress serverAddress; private Resource template; } mail: serverAddress : 84.123.456.32 template : classpath:mail.vm kubrynski.com @jkubrynskijk@devskiller.com
15.
Tests @SpringApplicationConfiguration(classes = Application.class) @ContextConfiguration(classes =
Application, loader = SpringApplicationContextLoader) @IntegrationTest kubrynski.com @jkubrynskijk@devskiller.com
16.
Profiles • default file
is application.properties • customize by spring.config.name • spring.profiles.active = production,mysql • configuration per profile: ● application-production.properties ● conference-test.properties kubrynski.com @jkubrynskijk@devskiller.com
17.
Logging • Log4J • Logback •
Java Util Logging kubrynski.com @jkubrynskijk@devskiller.com
18.
Security • spring-boot-starter-security • @SecurityAutoConfiguration •
SecurityProperties ● security.requireSsl = true ● security.enableCsrf = true kubrynski.com @jkubrynskijk@devskiller.com
19.
UserInterface • Thymeleaf • Template
engine for XML/XHTML/HTML5 • Customizable ● spring.thymeleaf.prefix=classpath:/templates/ ● spring.thymeleaf.suffix=.html ● spring.thymeleaf.mode=HTML5 ● spring.thymeleaf.encoding=UTF-8 kubrynski.com @jkubrynskijk@devskiller.com
20.
Productionready • Monitoring endpoints ● /health ● /info ● /metrics ● /trace •
JMX / SSH • Auditing kubrynski.com @jkubrynskijk@devskiller.com
21.
WAR @EnableAutoConfiguration public class WebApp
extends SpringBootServletInitializer{ @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { return application.sources(SampleApplication.class); } } kubrynski.com @jkubrynskijk@devskiller.com
22.
Monitoring application ● ApplicationPidListener ● SpringApplication.addListeners(...) ● META-INF/spring.factories org.springframework.context.ApplicationListener= org.springframework.boot.actuate.system.ApplicationPidListener kubrynski.com @jkubrynskijk@devskiller.com
23.
Rapidprototyping ● Spring Boot CLI ● $
spring run app.groovy ● $ spring test tests.groovy kubrynski.com @jkubrynskijk@devskiller.com
24.
Howdoesithelp? ● Dramatically reduces boilerplate
code ● Enables polyglot ● Simplifies integration testing ● Simplifies environment maintenance kubrynski.com @jkubrynskijk@devskiller.com
25.
It'sSpring kubrynski.com @jkubrynskijk@devskiller.com
26.
Livecoding “Talkischeap –showmethecode” kubrynski.com @jkubrynskijk@devskiller.com
27.
Youhavequestions I(probably)haveanswers kubrynski.com @jkubrynskijk@devskiller.com
28.
END! THANKYOU kubrynski.com @jkubrynskijk@devskiller.com
Jetzt herunterladen