본문 바로가기

반응형

Backend

(183)
IntelliJ-Github token이용 연동 1. GitHub에서 token발급 - Settings에서 Developer Settings로 이동 - Personal Access Token으로 이동 - Title을 입력하고 필요한 권한들 선택 후 Generate token을 선택 ([repo, gist, read:org]권한은 필수로 들어가야함) - 다음페이지에서 token이 발생, 이 token을 복사한다. 2. IntelliJ에서 token적용하기 - 파일\설정\버전관리\GitHub\+버튼\팝업창에서 UseToken클릭 - 복사한 token을 붙여넣기 하여 로그인하면 끝 cf) 만약 발급받은 token을 붙여넣기 해도 정상적으로 로그인이 이루어 지지 않는다면 GitHub에서 생성된 토큰을 삭제하고 다시 발급받아 적용해본다.
Response로 Json 생성 @SuppressWarnings("unchecked") @RequestMapping(value = "/sample/sample", produces="application/json; charset=utf-8") @ResponseBody public String selectMapData(HttpServletRequest request, HttpServletResponse response, @RequestParam HashMap hMap, Model model, HttpSession session) throws IOException, Exception { JSONObject jsonObject = new JSONObject(); try { List DemoVOList = sampleService.selectS..
JavaMailSender 사용시 에러 Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'emailService' defined in file [C:\~~~~~~~\.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.mail.javamail.JavaMailSender' available:..
application.yml 설정 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'bean_name': Unsatisfied dependency expressed through field 'field'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bean_name': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not res..
Insert문 다중 INSERT INSERT ALL INTO A (col1, col2, ...) VALUES (col1, col2, ...) INTO B (col1, col2, ...) VALUES (col1, col2, ...);
쿼리 단순화 작업 SELECT dc.*, c.t3_ID_FK FROM test.t1 dc JOIN test.t2 c ON dc.t2_ID_FK = c.t2_ID WHERE t3_ID_FK IN (select mm.t3_ID from test.t3 mm where mm.t3_PARENT_ID IN (select m2.t3_ID from test.t3 m1 LEFT OUTER JOIN test.t3 m2 ON m1.t3_ID = m2.t3_PARENT_ID where m1.t3_ID = 116)) SELECT dc.*, c.t3_ID_FK FROM test.t1 dc JOIN test.t2 c ON dc.t2_ID_FK = c.t2_ID JOIN test.t3 mm ON dc.t3_ID_FK = mm.t3_ID JOIN te..
Failed to load resource: the server responded with a status of 404 () Failed to load resource: the server responded with a status of 404 () 프로젝트에 WEB관련 코드나 파일이 존재 하는데도 못읽어 오는 경우에는 톰캣연결 확인 IntelliJ Community의 경우 Context path 경로를 확인 / IntelliJ Ultimate의 경우 Deployment\Application context 경로 확인
i18n i18n이란? - i18n은 Internationalization의 축약형임(가장 첫글자와 마지막글자 사이 18글자라서 i + 18 + n) cf1) SW국제화 : 국제적으로 통용되는 SW를 설계하고 개발 하는 것 cf2) SW현지화 : 현지(Locale)에 맞게 SW를 설계하고 개발 하는 것 i18n 용도 - 쿠키 값을 이용해 언어 정보를 받아와 처리 - 웹페이지의 국제화가 목적 - Spring의 MessageSource를 이용해 언어별 페이지 구현 Uncaught TypeError: $.i18n is not a function at Object.error (common.js:316:41) at c (jquery-3.6.0.min.js:2:28327) at Object.fireWith [as rejec..

반응형