본문 바로가기

오류노트37

spring boot 스프링부트 lombok @Log : cannot find symbol 오류 발생시 intellij에서 @Log 적용시 cannot find symbol오류시에 dependencies에 다음 추가 annotationProcessor 'org.projectlombok:lombok:1.18.16' 2021. 3. 3.
Springboot oauth2 인증시 Error: redirect_uri_mismatch에러 발생 github로 인증시에 위와 같은 오류 발생 github에 Authorization callback URL이 잘못 저장 되어 있어서 발생하는 오류 이니 제대로된 url을 설정했는지 확인해야함 나의 경우는 정상적인 주소가 http://localhost:8080/login/oauth2/code/github 이고 잘못된 주소가 http://localhost:8080/login/oauth2/callback/github 으로 되어 있었음 2021. 3. 1.
spring boot에서 PUT 메소드 호출시 cors 오류 allowedMethods("*")를 추가한다. registry.addMapping("/**") .allowedMethods("*") .allowedOrigins("http://localhost:3000"); 참조 : stackoverflow.com/questions/35315090/spring-boot-enable-global-cors-support-issue-only-get-is-working-post-put-and Spring boot enable Global CORS support issue: only GET is working, POST, PUT and Delete are not working Update: Now looking back more than a year later, I am giv.. 2021. 2. 26.
intellij gradle 에서 java: cannot access org.springframework.context.ConfigurableApplicationContext 오류 intellij에서 스프링부트 애플리케이션 실행시 다음과 같은 오류가 날때가 있는데 이때는 clean, build 한번하고 intellij를 종료했다가 다시시작하면 없어진다. java: cannot access org.springframework.context.ConfigurableApplicationContext class file for org.springframework.context.ConfigurableApplicationContext not found 2021. 2. 23.
intellij 에서 react/cjs/react.production.min로 import 되는 현상 수정 intellij 에서 import를 할때 react/cjs/react.production.min경로로 import를 해서 소스를 수정해줘야 하는 귀찮은 경우가 생긴다. 이럴때는 다름과 같이 한번해보자 npm install --save @types/react 참조 : stackoverflow.com/questions/46871567/webstorm-auto-completion-does-not-work-for-react-js/46871647 WebStorm auto completion does not work for React js I've created a project using create-react-app. I have switched my JavaScript language version to Re.. 2021. 2. 19.
ESLint: Please specify path to 'eslint' package intellij에서 react사용할때 위와 같은 메세지가 나와서 설정화면에서 설정을 해도 위의 메세지가 안없어질때 다음과 같이 해보자 npm install --g eslint 이렇게 설치하고 intellij를 재시작하니 메세지가 사라졌다. 참조 : intellij-support.jetbrains.com/hc/en-us/community/posts/360009665219-ESLint-Please-specify-path-to-eslint-package ESLint: Please specify path to 'eslint' package intellij-support.jetbrains.com 2021. 2. 19.
java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 리액트 네이티브 설정하고 실행하다가 발생한 오류 아래 내용을 참조 gradle 버젼이 낮아서 생기는 문제라고함 velog.io/@dskim-code/NoClassFound java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 에러 리액트 네이티브 안드로이드 빌드 오류 velog.io 2021. 2. 18.
AndroidViewModel has no zero argument constructor 안드로이드 버젼 문제로 보임 AndroidViewModel has no zero argument constructor stackoverflow.com/questions/61370134/androidviewmodel-has-no-zero-argument-constructor AndroidViewModel has no zero argument constructor I am trying to create an instance of my AndroidViewModel in MainActivity. When I do this I get the following error has no zero argument constructor Here is my RecipeViewModel package com.example... 2021. 2. 9.
[react-redux] Error: You must pass a component to the function returned by connect. Instead received {} react-redux 에서 connect 함수 사용시 제대로 코딩하지 않아서 나는 오류 connect(mapStateToProps, mapDispatchToProps, OptionComponent) 이렇게 코딩을 하니 다음과 같은 오류발생 Error: You must pass a component to the function returned by connect. Instead received {} Component를 같이 넘겨줘서 그렇다. 다음과 같이 분리해서 넘겨줘야 한다. 결국은 오타실수!! 제대로 쓰는 방식은 다음과 같다. connect(mapStateToProps, mapDispatchToProps)(OptionComponent) 2020. 11. 10.
Parameter 0 of method openEntityManagerInViewInterceptor Configuring org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration$JpaWebConfiguration required a single bean, but 2 were found: Mark one of the beans as primary @Primary @Bean public EntityManagerFactory entityManagerFactory() { } https://stackoverflow.com/questions/41881759/spring-boot-jpa-multiple-datasource-error 불러오는 중입니다... 2020. 5. 6.