An application similar to Reddit, which allow user to:
- Add a new posting.
- List existing posting from database.
- Search postings by keywords
Experience this app live on Heroku: https://reddit-clone-java.herokuapp.com
Login with pre-created account-- Username:user/Password:password
Reference and notes:
-
Thymeleaf format localdatetime/date/localdate http://www.baeldung.com/dates-in-thymeleaf
For "LocalDateTime" data type, th:text="${#temporals.format(localDateTime, 'dd-MM-yyyy HH:mm')}"
doesn't no work for instant class(current time?).
However, For "Date" data type, th:text="${#dates.format(standardDate, 'dd-MM-yyyy HH:mm')}" would always work. -
Examples: Spring MVC - Binding URL query parameters with @RequestParam http://www.logicbig.com/tutorials/spring-framework/spring-web-mvc/spring-mvc-request-param/
-
clickable url and open url in new window/tab
target="_blank" is for opening url in a new tab/window th:href="@{|${link.url}| for underlining the link and make it clickable https://stackoverflow.com/questions/4964130/target-blank-vs-target-new -
@Requestparam To pass down a string variable input from HTML to @PostMapping