-
1 minute read
GetMapping๊ณผ RequestMapping์ ํตํด ์ฃผ์ ํ ๋นํ๊ธฐ package com.example.hello.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/api/get") public class GetApiController { @GetMapping(path = "/hello") // http://localhost:9090/api/get/hello public String hello(){ return "HELLO"; } @RequestMapping(path = "/hi", method = RequestMethod.GET) // http://localhost:9090/api/get/hi // @RequestMapping("/hi") // ๊ทธ๋ฅ ์์ฒ๋ผ๋ง ์ ์ผ๋ฉด get / post /...
Continue reading...
-
Less than 1 minute read
๋ธ๋ผ์ฐ์ ๋ฅผ ํตํด ์ฃผ์๋ฅผ ์
๋ ฅํ๋ ๊ฒ์ GET ๋ฐฉ์ (๊ฐ๋ฐ์๋๊ตฌ Network์์ ํ์ธ ๊ฐ๋ฅ) ๊ฐ๋ฐ ํ ๋๋ ์ด๋ป๊ฒ ํ
์คํธํ ๊น? -> ๊ตฌ๊ธ Chrome ์น ์คํ ์ด > Talend API Tester ํ์ฅ ํ๋ก๊ทธ๋จ ์ฌ์ฉ ๊ธฐ๋ณธ Tomcat 8080 ์ฌ์ฉ but ํฐ์บฃ์ด ์ด๋ฏธ ์ค์น ๋์ด ์ด๋ฏธ ์ฌ์ฉ์ค์ด๊ฑฐ๋ ๋ค๋ฅธ ์ดํ์์ 8080 ์ฌ์ฉ์ค์ด๋ผ๋ฉด? -> application properties์์ ์ฝ๋ ์์ฑ ํด ๋ค๋ฅธ...
Continue reading...
-
Less than 1 minute read
IntelliJ Ultimate ๋ฒ์ ์ ํ๋ก์ ํธ ์์ฑ ์ Spring Initializr๋ฅผ ํตํด ์คํ๋ง๋ถํธ ํ๋ก์ ํธ๋ฅผ ๋ฐ๋ก ์์ฑํ ์ ์์ง๋ง, IntelliJ Community ๋ฒ์ ์ Spring Initializr๊ฐ ์๋ค ๐ฅ ์คํ๋ง๋ถํธ(SpringBoot) ์์ํ๊ธฐ start.spring.io -> ์คํ๋ง ๋ถํธ ๊ธฐ๋ฐ์ผ๋ก ์คํ๋ง ๊ด๋ จ ํ๋ก์ ํธ๋ฅผ ๋ง๋ค์ด์ฃผ๋ ์ฌ์ดํธ Maven / Gradle : ์์ฆ์ Gradle ๋ง์ด ์ฐ๋ ์ถ์ธ Spring Boot : ๋ฒ์ ์ ํ / SNAPSHOT,...
Continue reading...
-
1 minute read
์ ์ด์ฟผ๋ฆฌ๋ฅผ ์ด์ฉํด ๋ฉํฐํญ ๊ตฌํํ๊ธฐ 2 See the Pen ๋ฉํฐํญ๊ตฌํ 2 by Jinsol (@losuif) on CodePen. HTML <!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>๋ฉํฐํญ๊ตฌํ</title> <link rel="stylesheet" href="style/style.css"> </head> <body> <h1> ๋ฉํฐํญ ๊ตฌํ </h1> <div id="wrap"> <div id="tabBtn"> <button type="button" class="btnSelected">๊ณต์ง์ฌํญ</button> <button type="button">๊ฐค๋ฌ๋ฆฌ</button> </div>...
Continue reading...
-
Less than 1 minute read
์ ์ด์ฟผ๋ฆฌ๋ฅผ ์ด์ฉํด ๋ฉํฐํญ ๊ตฌํํ๊ธฐ See the Pen ๋ฉํฐํญ ๊ตฌํ by Jinsol (@losuif) on CodePen. HTML <!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>๋ฉํฐํญ</title> <link rel="stylesheet" href="style/style.css"> </head> <body> <h1>๋ฉํฐํญ๊ตฌํ</h1> <div id="wrap"> <div id="btns"> <button type="button" class="selected"> ๊ณต์ง์ฌํญ </button> <button type="button" class=""> ๊ฐค๋ฌ๋ฆฌ </button>...
Continue reading...