플러터랑 스프링 서버 연결하기

김인범's avatar
Jan 13, 2025
플러터랑 스프링 서버 연결하기

스프링 서버 프로그램 빌드하기

notion image
서버 변경점 발생 시
git add .
git commit -m “ “
./gradlew clean build
순으로 진행 혹시 모르니까 빌드된 jar 파일 [플러터 프로젝트에 복사 붙여넣기]

빌드한 jar 파일 플러터 프로젝트로 옮기기

notion image

플러터 프로젝트에서 jar 파일 실행 (터미널로..)

notion image

ipconfig로 ip확인해서 연결 아이피 바꾸기

notion image

_core→utils → my_http.dart (baseUrl)

notion image
 

터미널에서 서버 실행

$ git -jar (Tab 입력)
서버 끄는 단축키 : 컨트롤 + c
 
Share article

taker