목록에러 (6)
기록과 정리의 공간

Spring을 공부하며 간단한 예제 작성 중, @RunWith 어노테이션의 인자값으로 준 SpringJUnit4ClassRunner.class에 Class cannot be resolved to a type 에러가 가 발생했다. 마찬가지로 @ContextConfiguration 어노테이션을 사용하니 ContextConfiguration cannot be resolved to a type에러가 발생했다. 해결 방법 pom.xml에서 부분을 주석 처리해주면 된다.

Spring 공부를 하며 간단한 예제 작성 중, @Log4j 어노테이션을 사용하니 org.apache.log4j.Logger cannot be resolved to a type 에러가 발생했다. 해결 방법 아래와 같이 pom.xml에서 부분을 주석 처리해주면 된다.
참고 링크 : https://stackoverflow.com/questions/59862462/creating-foreign-key-in-sql-is-being-deemed-incompatible-dont-know-why 에러 내용 ERROR 3780 (HY000): Referencing column 'topdeptid' and referenced column 'deptid' in foreign key constraint 'dept_test_ibfk_1' are incompatible. unsigned int 타입 컬럼을 참조하는 외래키를 설정하려고 했더니 위와 같은 에러가 발생했다. alter table dept_test add foreign key (topdeptid) references dept_t..

에러 내용 Workbench에서 WHERE절을 사용하지 않고 UPDATE나 DELETE명령을 수행할 경우 아래와 같은 에러 코드가 뜬다. Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect. 0.000 sec 해결 방법 참고 : 링크 Edit -> Preferences -> SQL Editor -> 맨 하단의 Other박스의 Safe Updates 체크 해제 -> Workbench 재시작

에러 내용 pyinstaller를 통해 .py파일을 .exe파일로 변환한 뒤 해당 파일을 실행하니 아래와 같이 pkg_resources.py2_warn라는 모듈이 존재하지 않는다며 ModuleNotFoundError가 발생했다. 해결 방법 참고 링크 : 링크1 / 링크2 내 개발 환경 : Windows10 / Python3.8 / pyinstaller 3.6 / setuptools 47.3.1 링크1에 따르면 해당 에러가 발생하는 이유는 Python3.7이 나온 뒤에 배포되는 최신 setuptools와 pyinstaller가 맞지 않기 때문이라고 한다. 아마 setuptools45버전부터 이와 같은 오류가 발생하는 듯 하다. 따라서, setuptools를 44버전대로 설치해주면 해결된다. (pip ins..
에러 내용 pip install pyinstaller을 이용해 pyinstaller를 설치하려고 했으나 다음과 같은 에러가 발생했다. Collecting pyinstaller Using cached PyInstaller-3.6.tar.gz (3.5 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... error ERROR: Command errored out with exit status 1: command: 'c:\python\python38\python.exe' 'c:\python\python38\lib\site-package..