Spring Boot/Spring vs Spring Boot

Spring vs Spring Boot

Tree_Park 2020. 11. 30. 23:10
728x90

 

Introduction

First, my english skills suck. but I'm gonna write my development logs in english for my english skills.

Although you think my post is awkward, please understand it or fix it by comments.

 

Second, before this post started, I inform you of this post is the summary of the below youtube video.

https://youtu.be/6h9qmKWK6Io

Spring vs SpringBoot

 

What is the Spring Boot?
  • What are the differences between them?
  • Why is the Spring framework called Spring?
    • Winter is no more for developers. 🙏
    • so developers focus on their code using Spring Boot. 🤟
  • Spring vs little bit more Spring (Spring Boot)
  • Spring Boot
    • Spring Boot makes it easy
    • to create stand-alone
    • production-grade
    • Spring based Applications
    • that you can "just run!"

 

Differences
  •  Dependency
    • Spring
      • Pom code based Spring is too long. 😒
      • and then you have to sure of all dependency versions. each one by one. 🤦‍♂️
    • Spring Boot
      • Pom code based Spring Boot is shorter than Sprind code. 👌
        • If you use the Gradle, code is even more shorter than maven.
      • and then, you don't nee to care about dependency versions. 👏
        • Just Spring Boot adjust versions for recommended.  😎
    • Configuration
      • Spring
        • umm, too many code to config.
      • Spring Boot
        • you just care "application.properties" or "application.yml"
          • What is the difference between them?
            • ".yml" is more humanable for developers.
            • because ".yml" file represent config code depthly.
          • and YAML is YAML Ain't Markup Language. 🤣
    • embedded server(tomcat)
      • Spring
        • X
      • Spring Boot
        • exist! but, if you want others you can use jetty simply
    • Best powerness of Spring Boot is deploying it to the 'jar' file.
      • java -jar $REPOSITORY/$JAR_NAME &
      • why is it can? Spring Boot has a sever!

config code for jetty

 

 

Spring config file.

  • Basically we write them above code.
    • But in Spring Boot, their functions codes are built-in. 😎

 

Spring Boot config file
thymeleafj config file.  just a low code for thymeleaf config.

 

Summary
  1. Simple config
  2. Conveient mamagement of dependencies & automatic recommended version.
  3. Simple build a deployment server by embedded server.
  4. Use Spring framework elements easily. Spring Security, Data JPA, etc...