Home>
Use Spring boot to start with 8080 using mav.addObject from Controller to HTML text
I want the date entered by default
Current state: leave blank
Mapping is done.
@GetMapping ("/")
public ModelAndView index (ModelAndView mav) {
mav.setViewName ("init");
Date date = new Date ();
SimpleDateFormat sdf = new SimpleDateFormat ("yyyy/MM/dd");
String today = sdf.format (date);
mav.addObject ("date", today);
return mav;
}
HTML description
I think I should use value, but I don't know how to match it with the description of the time leaf.
-
Answer # 1
Related articles
- html - svg is not displayed when displaying pagenation using vuetify
- html - i want to center the buttons displayed using simplepaginationjs
- java - file upload using spring security
- html - i want to switch images using jquery
- html - implementation with vertical lines using border property in css
- html - how to make hp using gatsbyjs
- html - i want to insert a border using the before element
- how to write information to db using spring data jdbc
- html - i want to create a responsive design using bootstrap
- html - pros and cons of using "display:none" in responsive design
- html - i want to make a slideshow using slick, but it doesn't work
- html - accordion using jquery, want to change the parent element of the pressed button
- html - i want to insert an image in table tag using background-image
- html - i want to make the design using position:relative, position:absolute responsive without breaking it
- html - data cannot be acquired when using firebase (firestore) with wkwebview in monaca
- html - in line, a line break cannot be made in a text message using https://lineme/r/msg/text/?
- html - i want to create a child menu in the navigation menu using css
- html - slide/fade system does not work with jquery
- [beginner] i want to display postgresql data on html using ruby with filtering function
- html - i'm making a web application using django, but i can't resolve the error
Thymeleaf attribute names are basically the same as HTML attribute names.