일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 플러터
- 스프링부트
- 자료구조
- spring
- backjoon
- 데이터
- Java
- 자바스크립트
- 리눅스
- 시큐리티
- DB
- 자바
- Flutter
- python
- javascript
- baekjoon
- postgresql
- 스프링
- Oracle
- CS지식
- 백준
- 프로그래머스
- 파이썬
- Spring Security
- springboot
- CS
- 네트워크
- 스프링 부트 쇼핑몰 프로젝트 with JPA
- JPA
- 데이터베이스
- Today
- Total
목록Web & Android (121)
Jin's Dev Story
th:text 화면에 데이터 출력 textarea에 넘겨받은 변수값을 표시할 때 사용한다. th:value로 하면 안뜬다. 예제1 Hello World!!! 스프링 부트 수업 중 @Controller public class ThymeleafController { @GetMapping("/thymeleaf/ex1") public String ex1(Model model) { model.addAttribute("data", "SpringBoot Study"); return "thymeleaf/ex1"; } } // 출력 결과 // SpringBoot Study 예제2 Hello World!!! 스프링 부트 수업 중 @Controller public class ThymeleafController { @GetM..
// 의존성 추가 implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:3.2.0' header, footer, menu 등 공통적인 페이지 구성 요소들을 페이지 레이아웃 기능을 통해서 1개로 관리 예제 header.html 헤더 영역입니다. Shop 상품 등록 상품 관리 장바구니 구매이력 로그인 로그아웃 Search footer.html Footer 페이지 2023 Spring Shopping Mall Project layout1.html temp.html LayoutTest 중 입니다.
Thymeleaf 서버 사이드 템플릿 엔진의 한 종류 html 태그에 속성을 추가해 페이지에 동적으로 값을 추가하거나 처리할 수 있다. 서버 사이드 렌더링 하지 않고 브라우저에 띄워도 정상적인 화면을 볼 수 있다. //상단에 적어주면 타임리프 사용 가능 // Gradle - build.gradle implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' Controller @Controller public class ThymeleafController { @GetMapping(value = "/thymeleaf/ex1") public String ex1(Model model) { model.addAttribute("data", "Sp..
showDialog( context: context, builder: (context) { returnAlertDialog( title: Text('내 동네 선택'), content: Text('동네는 최소 1개 이상 최대 2개까지 설정할 수 있어요.', style: TextStyle(fontSize: 15, color: Color(0xff606060)),), actions: [ Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ ElevatedButton( onPressed: () { Navigator.push(context, MaterialPageRoute(//동네 선택 페이지로 이동 builder: (context) => tlAdd..
PopupMenuButton( itemBuilder: (BuildContext context) => [ PopupMenuItem( value:'report', child: Text('신고'), ), PopupMenuItem( value:'edit', child: Text('수정'), ), PopupMenuItem( value:'delete', child: Text('삭제'), ), ], onSelected: (String choice) { //메뉴 항목 선택에 따른 동작을 수행합니다. if(choice =='report') {// "신고"항목을 선택한 경우 //처리 코드 추가 }else if(choice =='edit') { // "수정"항목을 선택한 경우 //처리 코드 추가 }else if(choice..
이 내용은 스프링 부트 쇼핑몰 프로젝트 with JPA 책을 학습한 내용입니다. Repository BoardRepository import com.example.walkingmate_back.board.entity.Board; import org.springframework.data.domain.Pageable; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import java.util.List; public interface BoardRepository extends JpaRepository { // 게시글 전체 조회 - 최신 값부터 @Qu..