Post

Interview_Spring/Springboot/MVC/AOP

βœ… What is Spring?

  • open source application framework for JAVA
  • Java platform that provides comprehensive infrastructure support for developing Java applications
  • can build applcations from POJOs
  • uses AOP, DI

Spring πŸ†š Springboot

  • Springboot: sub project to set up project in spring
  • built on top of the conventional spring framework
  • provides all features of spring + easier to use than spring
  • everything is auto configured!
  • very useful to develop REST API
  • used to develop microservies, fast
  • run in independent container
  • embedded tomcat run automatically

πŸ’‘ https://www.geeksforgeeks.org/difference-between-spring-and-spring-boot/

βœ… MVC Design Pattern?

  • useful pattern for code reuseability
  • Model, View, Controller
    • Model: buisness logic, database
    • View: show users
    • Controller: connect Model and View to exchange data

πŸ’‘ https://soheeparklee.github.io/posts/spring-mvc/

MVC 1 πŸ†š MVC 2

  • MVC1: JSP manages both controller & view
    • JSPμ•ˆμ—μ„œ 둜직 처리λ₯Ό μœ„ν•΄ μžλ°” μ½”λ“œ μ‚¬μš©
  • MVC2: controller and view seperate
    • create Servelt to divide work
    • JSP manage View, Servlet manage Controller

Filter πŸ†š Interceptor

  • Filter: filter HTTP request, response in servlet container
  • Interceptor: after filter, filter pre-processing duties

βœ… Dispatcher Servelt?

  • front controller that handles all HTTP requests

βœ… AOP?

  • define cross cutting concerns into seperate unit called aspect
  • can modularize
  • for logging, transaction, security

  • advice: when
  • join point: where
  • point cut: where
  • weaving: apply aspect to target code

πŸ’‘ https://soheeparklee.github.io/posts/Spring_3DI_IOC/

This post is licensed under CC BY 4.0 by the author.