/PostComment

To illustrate controller, service, dao layer pattern

Primary LanguageJava

Design Ideas

  • project follows controller, handler, service pattern
  • service is skipped since data in DataCenter here can be directly retrieved
  • DataCenter.java models the exact behavior of a Database, all objects are deep copied during communication

Run the Application

  • PostCommentApplication is the entry point, simply right click and run

Security Config

  • csrf is disabled to allow requests from front-end

Run Test

  • simply run mvn test