Port of Flaskr app from flask tutorial to spring