연향동큰손

  • 홈
  • 태그
  • 방명록

spring 2

변수 - SpringEL

타임리프에서 변수를 사용하는법에 대해서 알아보자. @GetMapping("/variable")public String variable(Model model){ User userA = new User("userA",10); User userB = new User("userB",10); List list = new ArrayList(); list.add(userA); list.add(userB); Map map = new HashMap(); map.put("userA",userA); map.put("userB",userB); model.addAttribute("user",userA); model.addAttribute("users",list); mo..

BackEnd/Thymeleaf 2024.07.15

텍스트 - text, utext

HTML의 콘텐츠에 데이터를 출력할때는 아래 코드와 같이 사용하면 된다.  HTML 테그의 속성이 아니라 HTML 콘텐츠 영역안에서 직접 데이터를 출력하고 싶으면 다음과 같이 [[ ... ]]를 사용하면 된다.[[${data}]] 콘텐츠에 데이터를 출력하는 간단한 예제 코드를 통해 알아보자  package hello.thymeleaf.basic;import org.springframework.stereotype.Controller;import org.springframework.ui.Model;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.RequestMapping..

BackEnd/Thymeleaf 2024.07.15
이전
1
다음
더보기
프로필사진

연향동큰손

https://github.com/yangwoohyeon

  • 분류 전체보기 (213) N
    • BackEnd (87)
      • spring (19)
      • 스프링 MVC (25)
      • Thymeleaf (17)
      • HTTP (12)
      • Database (14)
    • 알고리즘 (91)
      • 백준 (53)
      • 해시 (4)
      • 스택 큐 (8)
      • DP (4)
      • 힙 (2)
      • 정렬 (3)
      • 완전탐색 (6)
      • DFS,BFS (6)
      • 탐욕법(Greedy) (5)
    • Deployment (7)
      • Docker (4)
      • AWS (3)
      • github Actions (0)
    • 자바 (7)
    • 컴퓨터 (3)
    • git (5)
    • 프로젝트 (2)
    • 에러 일기 (2)
    • 9oormthonUNIV 스터디 프로젝트 (5) N

Tag

그래프, 정렬, @Transactional, 완전탐색, 검증, 백준, dfs, 그리디 알고리즘, 브루트포스, 다이나믹프로그래밍, 부분수열의 합, 스프링, BFS, Docker, 타임리프, 배포, 프로그래머스, AWS, 자바, EC2,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • 깃허브

티스토리툴바