in spring boot web mvc application, have page overview of articles, , 1 article details.
the article's content should limited length inside overview, should normal length in article details page.
where best place "cut off" rest of article? somehow in sql query? in @service class retrieves overview? inside view? i'd in view, because feel should contain view logic.
i use @repository spring jpa data retrieval. use thymeleaf frontend pages.
Comments
Post a Comment