Spring MVC is used to develop MVC based web application.
Recall Spring MVC framework by the following picture.


Read the rest of this entry »

tags,

1. What is Spring?
The Spring is light weight, non-invasive IoC Container and AOP framework. It provides support for JPA, Hibernate, Web services, Schedulers, Ajax, Struts, JSF and many other frameworks.
Spring MVC is used for developing MVC based web application.
2. What does Spring do?
Spring’s main aim is to make J2EE easier to use and promote good programming practice. It does this by enabling a POJO-based programming model that is applicable in a wide range of environments.
3. How does Spring do?
Mapping bean data with property classes (also called dependency injection).
Use by XmlBeanFactory.
***NOTE: EL4J, AOP, IOC

tags,
  • package: group similar classes together. Classes in the same package share “public” method & attribute.
  • interface: just use to define prototype for common classes, not concern about implementation. Classes can inherit (using keyword “implements”) from many interface.
  • abstract class: (faster than interface since interface need to look up which implement to use) classes can inherit (using keyword “extends”) from only 1 abstract class. Abstract class cannot be instantiated.
  • abstract method: a method is declared without definition/implementation.
  • static final: attribute defined by using both keywords “static” and “final” are not absolutely constant, but it’s an instance stored at the same memory address. Its value can be changed by using reference assignment.
  • final class:
  • final method:
  • static:
  • inheritance: if inherited class call “super” method, then if it override a method of parent class, then “super” use this override method instead of the method of parent class.
tags,
  • Auto generate Java Getters & Setters: Right-Click -> Source -> Generate Getters & Setters

…and more

  • Ctrl+Shift+F: format code outline
  • Ctrl+O: search function
  • Crtl+Shift+C: comment/uncomment by //
  • Ctrl+Shift+/: comment/uncomment by /* */
tags, ,