본문 바로가기

전체보기56

[Redis] 윈도우 환경에서 redis 설치/실행하기 윈도우 설치 Redis 공식문서입니다. https://redis.io/docs/install/install-redis/install-redis-on-windows/ Install Redis on Windows Use Redis on Windows for development redis.io 레디스 공식문서에는 위처럼 사용하면 된다라고 써져있습니다. 윈도우는 레디스를 직접 지원해주지 않기 때문에 우분투를 깔아서 진행해야합니다. WSL 설치 cmd를 실행시켜 아래 명령어를 입력해줍니다. wsl --install 설치가 완료되었으면 컴퓨터 재부팅을 해줍니다. Redis 설치 우분투를 실행시킨 뒤 아래 명령어를 입력해줍니다. curl -fsSL https://packages.redis.io/gpg | sudo .. 2024. 1. 30.
[React + SpringSecurity + DB] 로그인 구현하기 (frontend) 리엑트와 스프링을 연결할 때 리엑트 설정을 하셨을 겁니다. axiosInstance.jsx를 만들었다던가, App.jsx를 수정했다던가 저는 둘다 수정했기 때문에 전부 있는 상황에서 구현하겠습니다. App.jsx function App() { useEffect(() => { // 서버에서 렌더링된 HTML 문서에서 CSRF 토큰을 가져오는 로직 const csrfTokenMeta = document.querySelector("meta[name='_csrf']"); // CSRF 토큰이 존재하는지 확인 후 요청 헤더에 추가 if (csrfTokenMeta) { const csrfToken = csrfTokenMeta.content; axios.defaults.headers.common["X-XSRF-TOK.. 2024. 1. 18.
[React + SpringSecurity + DB] 로그인 구현하기 (Backend) 저의 예시는 스프링 2.5.5 버전입니다. 버전에 따라 코드가 다를 수 있으므로 버전에 맞게 코딩해주시면 되겠습니다. 스프링 시큐리티부터 만들어볼까 합니다. build.gradle implementation 'org.springframework.boot:spring-boot-starter-security' 위 문구를 적고 재빌드를 해줍니다. SecurityConfig.java @RequiredArgsConstructor @Configuration @EnableWebSecurity @Component public class SecurityConfig extends WebSecurityConfigurerAdapter { @Bean public PasswordEncoder passwordEncoder() { .. 2024. 1. 18.
[Kendo Vue + SpringBoot + Oracle] 동적인 메뉴 아코디언 만들기(Creating a dynamic menu accordion) kendo Vue의 treelist를 이용하여 만드는 예제입니다. https://www.telerik.com/kendo-vue-ui/components/treelist/get-started/ Vue TreeList Component Getting Started - Kendo UI for Vue Docs & Demos vue 2.6.11 or 3.0.0Contains the functionality necessary to define Vue components.@progress/kendo-licensingContains the internal infrastructure related to licensing.@progress/kendo-svg-iconsContains the SVG icons for the .. 2024. 1. 3.