SampleController.java ( void ) > SPRING1

본문 바로가기
사이트 내 전체검색

SPRING1

SampleController.java ( void )

페이지 정보

profile_image
작성자 관리자
댓글 0건 조회 245회 작성일 24-07-16 16:17

본문

package com.pkt.controller;


import org.springframework.stereotype.Controller;

import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.RequestMapping;


import lombok.extern.log4j.Log4j;


@Controller 

@RequestMapping("/sample/")

@Log4j

public class SampleController {


// void가 리턴 타입일 경우

@GetMapping("")

public void basic() {

log.info("sample.jsp ...");

// sample.jsp 찾는다.

}


@GetMapping("aa")

public void basic01() {

log.info("/sample/aa.jsp ...");

// /sample/aa.jsp 찾는다.

}

}


댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

사이트 정보

공지사항
자유게시판
질문답변
1:1문의

 

별명 : 터푸가위
주소 : 부산시 동래구 명장로20번길 90
대표 : 박규태
메일 : dancepkt@******.com

접속자집계

오늘
226
어제
285
최대
10,760
전체
277,832
Copyright © dancePKT . All rights reserved.