장뽕뽕의 개발일기
close
프로필 배경
프로필 로고

장뽕뽕의 개발일기

  • 분류 전체보기 (153)
    • Java (61)
      • Springboot (28)
      • Architecture (0)
      • Algorithm (17)
      • Trouble-Shooting (3)
      • Basic (13)
    • Security (20)
      • Practice (4)
      • System (7)
      • Network (4)
      • Application (5)
    • Mobile (0)
      • Android (0)
      • Flutter (0)
    • JavaScript (16)
      • Node.js (16)
    • Linux (8)
    • Network (6)
    • Docker (4)
    • Project (5)
      • SecuriSuite (5)
    • Certificate (2)
      • 정보처리기사 (1)
      • 정보보안기사 (1)
    • Legacy (27)
      • JS+PHP+SQL (27)
    • 루트권한 없는 나의 하루 (4)
  • 홈
Java - 업다운 게임

Java - 업다운 게임

자바로 만든 간단한 업다운 게임입니다.프로그램을 시작하면 1~100사이 난수를 가져와서 사용자가 맞추는 게임입니다.package Test;import java.util.Random;import java.util.Scanner;public class UpDownTest { public static void main(String[] args) { Random random = new Random(); Scanner sc = new Scanner(System.in); int num = random.nextInt(100); int cnt = 0; while (true) { System.out.print("숫자를 입력해주세요 : "); int temp = sc.nextInt(); cnt++; ..

  • format_list_bulleted Java/Basic
  • · 2025. 2. 22.
  • textsms
Java - 좌석 예약 프로그램

Java - 좌석 예약 프로그램

자바로 만든 간단한 좌석 예약 프로그램입니다. 좌석표는 총 10개번호를 입력받아서 예약가능은 0, 이미 예약된 좌석은 1로 표현했습니다. package Test;import java.util.Scanner;public class ReservationTest { public static void main(String[] args) { int[] seats = new int[10]; Scanner sc = new Scanner(System.in); while (true) { int cnt = 0; System.out.println("===================================좌석표==================================="); for (int i = ..

  • format_list_bulleted Java/Basic
  • · 2025. 2. 22.
  • textsms
Spring Boot - 빌드하고 실행하기

Spring Boot - 빌드하고 실행하기

mac os 기준입니다.우선 터미널을 통해 프로젝트가 있는 폴더로 이동합니다. 명령어를 통해 빌드 해줍니다../gradlew build빌드 중..빌드 완료! build라는 폴더가 생겼어요.build - libs 폴더로 이동해 줍니다.  jar 파일이 생성된 것을 확인할 수 있습니다.java -jar 빌드된파일.jar 실행을 확인해 줍니다.저는 java -jar hello-spring-0.0.1-SNAPSHOT.jar 이 되겠네요.  8080포트가 이미 사용하고 있다네요..다른 개발 환경에서 실행되고 있으면 다음과 같이 에러가 뜹니다.저는 인텔리 제이에서 실행되고 있었어요.. 꺼주고 다시 실행을 확인해 주면.. 실행 성공!!

  • format_list_bulleted Java/Springboot
  • · 2025. 2. 21.
  • textsms
Spring Boot - API

Spring Boot - API

package hello.hellospring.controller;import org.springframework.stereotype.Controller;import org.springframework.ui.Model;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.RequestParam;import org.springframework.web.bind.annotation.ResponseBody;@Controllerpublic class HelloController { @GetMapping("hello-api") @ResponseBody public H..

  • format_list_bulleted Java/Springboot
  • · 2025. 2. 21.
  • textsms
Spring Boot - MVC 2

Spring Boot - MVC 2

이번엔 GET 방식으로 파라미터를 받아서 페이지에 띄워보도록 할게요.hello-template타임리프 템플릿hello! empty Controllerpackage hello.hellospring.controller;import org.springframework.stereotype.Controller;import org.springframework.ui.Model;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.RequestParam;import org.springframework.web.bind.annotation.ResponseBody;@Controllerpubl..

  • format_list_bulleted Java/Springboot
  • · 2025. 2. 21.
  • textsms
Spring Boot - MVC 1

Spring Boot - MVC 1

MVC : Model View Controller이라는 하나의 디자인 패턴Spring MVC : 스프링이 제공하는 웹 전용 MVC Framework Model : 비즈니스 로직 처리View : 사용자가 보는 UIController : Model과 View 사이에서 데이터를 처리 indexHello SpringHello Page Controllerpackage hello.hellospring.controller;import org.springframework.stereotype.Controller;import org.springframework.ui.Model;import org.springframework.web.bind.annotation.GetMapping;import org.springframewo..

  • format_list_bulleted Java/Springboot
  • · 2025. 2. 21.
  • textsms
  • navigate_before
  • 1
  • ···
  • 7
  • 8
  • 9
  • 10
  • 11
  • navigate_next
공지사항
  • 장뽕뽕 사이트를 오픈합니다.
  • 개발 일기 사이트 이전 안내
전체 카테고리
  • 분류 전체보기 (153)
    • Java (61)
      • Springboot (28)
      • Architecture (0)
      • Algorithm (17)
      • Trouble-Shooting (3)
      • Basic (13)
    • Security (20)
      • Practice (4)
      • System (7)
      • Network (4)
      • Application (5)
    • Mobile (0)
      • Android (0)
      • Flutter (0)
    • JavaScript (16)
      • Node.js (16)
    • Linux (8)
    • Network (6)
    • Docker (4)
    • Project (5)
      • SecuriSuite (5)
    • Certificate (2)
      • 정보처리기사 (1)
      • 정보보안기사 (1)
    • Legacy (27)
      • JS+PHP+SQL (27)
    • 루트권한 없는 나의 하루 (4)
최근 글
인기 글
최근 댓글
태그
  • #SQL
  • #javascript
  • #php
  • #algorithm
  • #Spring
  • #phpMyAdmin
  • #springboot
  • #java
  • #html
  • #dothome
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바