Spring에서 민감한 정보 숨기는 방법
Framework/Spring 2024. 12. 9. 20:43 Spring에서 민감한 정보 숨기는 방법

GitHub에 코드를 올릴 때 민감한 정보는 올리지 않아야한다.보통 application.properties에 DB 정보나 API KEY를 넣고 gitignore를 이용해 GitHub에 올리지 않는다. 그래서 application.properties에 DB 정보를 넣고 root-context.xml에 변수로 넣었는데 404 에러가 발생했다.application.properties의 값들이 왜 바로 root-context.xml에 바로 적용되지 않을까? Spring에서는 application.properties 파일의 값을 직접적으로 XML에서 사용할 수 없다. Spring XML에서 프로퍼티 값을 로드하려면 해당 값을 property placeholder로 참조할 수 있도록 설정해야 한다.Property..

React 개발 환경 세팅
Library/React 2024. 8. 18. 22:23 React 개발 환경 세팅

1. Node.js 설치 LTS 버전을 설치합니다. Node.js — Run JavaScript EverywhereNode.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.nodejs.org   2. Visual Studio Code 설치 VS Code를 설치합니다. Download Visual Studio Code - Mac, Linux, WindowsVisual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. Download Visual Studio Code to experience a redefined code edit..

Node.js / Express에서 DB 연동하기
Framework/Express 2024. 7. 28. 18:43 Node.js / Express에서 DB 연동하기

🚀 개발 환경 💾 Visual Studio Code Visual Studio Code - Code Editing. RedefinedVisual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications.  Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.code.visualstudio.com 💾 MySQL Workbench MySQL :: Download MySQL WorkbenchSelect Operating System: Select..

image