전체 글 80

React + Spring Boot 배포하기(1) - Github에 올리기

대충 만들은 야구장별 날씨정보 어플.이제 어디 올려두고 친구들한테 써보게 하려 함. 내겐 두가지의 선택지가 있었는데(챗지선생님의 추천 방법 두 가지), 1. Spring Boot 서버에 정적 리액트 파일을 같이 넣는 방법 (한 번에 배포)React에서 npm run build 후 나온 build 폴더를 Spring Boot 프로젝트 안에 넣고Spring이 정적 파일로 서빙하게 함👉 이 경우 하나의 서버에서 API + UI 둘 다 제공2. 프론트/백엔드를 분리하고 프록시로 연결 (사용한 방법)React는 Vercel (프론트)Spring은 Render (백엔드)React에서 API 호출 주소만 proxy 설정 또는 .env에서 지정1번 방법은 쉽지만 재배포가 귀찮고 실제로 막 사용할법한 방법은 아니라 2..

Java/KBO Weather 2025.05.30

Principal null 이슈 해결 (feat. WebSecurityConfig.java)

java.lang.NullPointerException: Cannot invoke "java.security.Principal.getName()" because "principal" is null at com.side_fpt.team_service.controller.VoteController.submitVote(VoteController.java:58) 요즘 팀원들과 사이드 프로젝트를 하고 있는데, 분명 로그인 되어있는데 Principal 정보를 못받아오는 것.로그 확인해보니 principal이 null이라 getName()이 불가해서 나는 오류로 확인됨. package com.side_fpt.team_service.security;import com.side_fpt.team_service.util.c..

Java 2025.05.14

[SQL50] 1251. Average Selling Price

난이도: EASY 문제 링크: https://leetcode.com/problems/average-selling-price/description/?envType=study-plan-v2&envId=top-sql-50문제더보기Table: Prices+---------------+---------+ | Column Name   | Type    | +---------------+---------+ | product_id    | int     | | start_date    | date    | | end_date      | date    | | price         | int     | +---------------+---------+ (product_id, start_date, end_date) i..

[SQL50] 620. Not Boring Movies

난이도: EASY 문제 링크: https://leetcode.com/problems/not-boring-movies/description/?envType=study-plan-v2&envId=top-sql-50문제더보기Table: Cinema+----------------+----------+ | Column Name    | Type     | +----------------+----------+ | id             | int      | | movie          | varchar  | | description    | varchar  | | rating         | float    | +----------------+----------+ id is the primary key (c..

[SQL50] 1729. Find Followers Count

난이도: EASY 문제 링크: https://leetcode.com/problems/find-followers-count/?envType=study-plan-v2&envId=top-sql-50문제더보기Table: Followers+-------------+------+ | Column Name | Type | +-------------+------+ | user_id     | int  | | follower_id | int  | +-------------+------+(user_id, follower_id) is the primary key (combination of columns with unique values) for this table. This table contains the IDs of ..

[SQL50] 596. Classes More Than 5 Students

난이도: EASY 문제 링크: https://leetcode.com/problems/classes-more-than-5-students/description/?envType=study-plan-v2&envId=top-sql-50문제더보기Table: Courses+-------------+---------+ | Column Name | Type    | +-------------+---------+ | student     | varchar | | class       | varchar | +-------------+---------+ (student, class) is the primary key (combination of columns with unique values) for this table. ..

[SQL50] 1141. User Activity for the Past 30 Days I

난이도: EASY 문제 링크: https://leetcode.com/problems/user-activity-for-the-past-30-days-i/description/?envType=study-plan-v2&envId=top-sql-50문제더보기Table: Activity +---------------+---------+ | Column Name   | Type    | +---------------+---------+ | user_id       | int     | | session_id    | int     | | activity_date | date    | | activity_type | enum    | +---------------+---------+ This table may hav..

[SQL50] 2356. Number of Unique Subjects Taught by Each Teacher

난이도: EASY 문제 링크: https://leetcode.com/problems/number-of-unique-subjects-taught-by-each-teacher/description/?envType=study-plan-v2&envId=top-sql-50문제더보기Table: Teacher+-------------+------+ | Column Name | Type | +-------------+------+ | teacher_id  | int  | | subject_id  | int  | | dept_id     | int  | +-------------+------+ (subject_id, dept_id) is the primary key (combinations of columns with ..

[Screen Widget] if 위젯 사용하기

https://learn.outsystems.com/ko-kr/training/journeys/web-developer-662/demo-how-to-use-a-if-widget/o11/573 if 를 두 번 클릭시 조건설정 가능.  Number가 0인지 확인.True일 경우 문구 출력하도록 수정. 기본값이 0이므로 문구출력.Increment 클릭시 해당 문구 제거됨을 확인.Decrement를 클릭하여 다시 0이되면 문구 재출력.  False 분기 안에 양수인지를 구분하는 if위젯 추가. publish하여 브라우저에서 확인. Increment, Decrement를 통해 Number조정시 0인지 양수인지 음수인지 알려주는 문자가 정상적으로 출력됨. 현재 Number를 보여주고 싶으면 Expression 위젯..

Outsystems 2025.02.24

[Screen Widget] Link와 Button 사용하기

https://learn.outsystems.com/ko-kr/training/journeys/web-developer-662/demo-how-to-use-a-link-and-button-widgets/o11/571 링크와 버튼은 비슷하게 사용할 수 있음. 가끔 차이점이나 같은점 물어보는 문제가 있어서 비교차 적어봄.Link는 폼 내부에 넣어도 별다른 영향 없으나, Button은 기본적으로 폼 제출(Submit) 기능.Link 사용페이지 이동이 목적일 때 (예: 홈, 마이페이지, 로그인 페이지 이동)외부 URL로 이동해야 할 때 (www.google.com 같은 외부 링크)네비게이션 메뉴에 사용할 때Button 사용데이터를 저장하거나 폼을 제출할 때 (제출, 등록, 저장 버튼)특정 이벤트를 실행할 때 (..

Outsystems 2025.02.24