코딩/개발 끄적끄적 4

[Vue.js] 세션이 끊겼을 때 화면 전환 방법

1. router 에 expired 이름으로 셋팅{ path: '/expired', name: 'expired', component: () => import('@/views/loginExpired'), hidden: true, }, 2.interceptors 처리service.interceptors.response.use( (error) => { if (error.response && (error.response.status === 401 || error.response.status === 403)) { // 로그아웃 처리 및 로그인 페이지로 이동 router.push({ name: 'expired' }); return Promise.rej..

[JavaScript, Vue3, Tabulator] 날짜 관련 스크립트

YYYY년 M월 => YYYY-MM 형태로 변환function convertKoreanDate(str) { // "2025 년 4월"에서 숫자만 추출 const match = str.match(/(\d{4})\s*년\s*(\d{1,2})월/); if (!match) return null; const year = match[1]; // 월은 항상 2자리로 맞춤 const month = match[2].padStart(2, '0'); return `${year}-${month}`;}dayjs()를 활용하여 날짜 범위 기본값 셋팅const dateRange = ref([ dayjs().subtract(28, 'day').format('YYYY-MM-DD'), dayjs().format('YYY..

[JAVA] STS 최적화

1. STS.ini 최적화 설정변경-Xms4096m-Xmx8192m 2. 이클립스 Show Heap Status - Window > preferences > General - Show heap status 체크 3. 스펠링체크 설정 해제 - Window > preferences > General > Text Editors > Spelling - Enable spell checking 체크해제 4. Automatic Updates - Window > preferences > Install/Update > Automatic Updates - Automatically find new updates and notify me 체크해제 5. 이클립스 인코딩 UTF-8 설정- Window > preferences >..