https://www.acmicpc.net/problem/10718 10718번: We love kriii ACM-ICPC 인터넷 예선, Regional, 그리고 World Finals까지 이미 2회씩 진출해버린 kriii는 미련을 버리지 못하고 왠지 모르게 올해에도 파주 World Finals 준비 캠프에 참여했다. 대회를 뜰 줄 모르는 지박 www.acmicpc.net package InputAndOutput; // 10718 public class BaekJoon10718 { public static void main(String args[]) { System.out.println("강한친구 대한육군"); System.out.println("강한친구 대한육군"); } }
분류 전체보기
https://www.acmicpc.net/problem/2557 2557번: Hello World Hello World!를 출력하시오. www.acmicpc.net package InputAndOutput; // 2557번 public class BaekJoon2557 { public static void main(String[] args) { System.out.println("Hello World!"); } }

BoardJpaController /** 조회수 중복 방지 **/ @GetMapping(value = "/views/{id}") private void viewCountUp(@PathVariable int id, HttpServletRequest request, HttpServletResponse response) { Cookie oldCookie = null; Cookie[] cookies = request.getCookies(); if (cookies != null) { for (Cookie cookie : cookies) { if (cookie.getName().equals("viewCount")) { oldCookie = cookie; } } } if (oldCookie != null) { if ..
글 수정/삭제 BoardJpaController @PutMapping(value = "/{id}") public ApiResponse putBoard(@PathVariable int id, @RequestBody BoardDTO boardDTO){ return boardJpaService.putBoard(id,boardDTO); } // DB에 데이터를 DELETE 시키지 말고, board 컬럼 중 isDel 을 "Y"로 업데이트. @DeleteMapping(value = "/{id}") public ApiResponse updateIsDelBoardById(@PathVariable int id, @RequestBody BoardDTO boardDTO){ return boardJpaService.upda..

글생성하기 BoardJpaController @PostMapping(value = "/") public ApiResponse postBoard(@RequestBody BoardDTO boardDTO){ Board data = boardJpaService.postBoard(boardDTO); return new ApiResponse(true, data); } BoardJpaService public Board postBoard(BoardDTO boardDTO) { int newBoardIdValue = this.getNewBoardIdValue(boardRepository); log.debug("newBoardIdValue="+newBoardIdValue); Board postData = Board.bui..

회원가입 구현 - 유효성 검사를 위해 기본적으로 제공해주는 :rules를 통해 구현 - 아이디 중복검사, 닉네임 중복 검사 추가 1. 백엔드 MemberController @RestController @RequiredArgsConstructor public class MemberController { final MemberService memberService; final PasswordEncoder passwordEncoder; @PostMapping("/api/member") public String saveMember(@RequestBody @Valid MemberDto memberDto) throws Exception{ memberService.saveMember(memberDto); return..

Jwt token을 이용한 로그인 구현 userStore.js import router from '@/router' const userStore = { state: { email: '', nickname: '', token: '', isLogin: false }, mutations: { login: function (state, payload) { state.email = payload.email state.nickname = payload.nickname state.token = payload.token state.isLogin = true }, loginCheck: function (state, payload) { console.log("payload =" + payload) if(payload ==..

키워드를 통해 관광지를 검색할수 있도록 App.vue (tempalte) App.vue (script) search(){ let keyword = this.searchKeyword console.log(keyword) this.$router.push({path:"./KeywordTourlist",query:{keyword}}); } search() - 사용자가 검색한 keyword 값을 통해 관광지를 보여주도록

지역으로 관광지 검색하도록 Seachbar.vue (template) 검색 v-select - 셀렉트 박스를 통해 지역을 검색할 수 있도록 한다 Seachbar.vue (script) export default { props:["childurl","childcontentid"], data: () => ({ preurl: "", pageIndex: 0, areaCode: {code: "0", name: "0", rnum: "0"}, area:[], subarea:[], subAreaCode:{code: "0", name: "0", rnum: "0"}, categories : [ {type : "관광지" , contentid: "12"}, {type : "문화시설" , contentid: "14"}, {ty..

관광지 상세 정보를 보여주는 페이지 추가 DetailCulture.vue (template) {{ tours.contentid }} {{ tours.title }} 주소 : {{ tours.addr1 }} 문의 및 안내 : {{ detailIntro.infocenterculture }} 규모 : {{ detailIntro.scale }} 이용시간 : {{ detailIntro.usetimeculture }} 쉬는날 : {{ detailIntro.restdateculture }} 이용요금 : {{ detailIntro.usefee }} 할인정보 : {{ detailIntro.discountinfo }} 주차시설 : {{ detailIntro.parkingculture }} 주차요금 : {{ detailIn..