Etc 12

[회고] 원티드 프리온보딩 백엔드 코스 3,4,5주차를 마치고~

3주차 기업과제 게임회사의 기업과제였어서 게임관련 API를 만들었다. 보스몹을 잡기위해서 한명의 유저만 방에 입장할 수 있고 제한시간이 정해져있다. 그리고 게임을 마칠때마다 진행한 난이도만큼의 포인트를 획득하고 누적 포인트대로 랭킹이 매겨진다. 나는 이번 과제에서 랭킹구현 파트를 맡았고 Redis를 사용해서 구현해보게 되었다. 레디스가 데이터베이스 위에서 캐싱을 해주는 역할로 랭킹조회시 계속 db에 접근하지 않고 빠르게 조회가 가능한걸로 알아서 사용해봤다. Soted Set 자료구조를 사용해서 보스레이드 게임이 종료될때마다 유저아이디와 누적점수를 저장('zadd')하고 랭킹 조회시 누적점수가 높은순으로 1위부터 10위까지 조회('zrevrange')할 수 있도록 했다. 저장부터 조회까지 엄청 간편하게 구..

Etc/회고 2022.07.27

[회고] 원티드 프리온보딩 백엔드 코스 1,2주차를 마치고~

지원과정 국비를 마치고 백엔드로 취업하고자 결심했지만 막상 채용공고 사이트를 보면 ORM이라던지 TDD라던지 CI/CD 등 아직 안해본것들이 너무 많았다. 이대로 원서를 넣는다고 해도 뽑힐 가능성이 매우 낮다고 생각했고 프로젝트를 더 해보고 싶었어서 이것저것 방법을 찾다가 마침 원티드에서 프리온보딩이라고 기업과제를 받아서 프로젝트를 진행할 수 있는 과정을 연다고 해서 참가하게 되었다. 백엔드는 자바&스프링으로 해왔었는데 이 코스에서는 장고나 노드로만 참가가 가능했어서 스프링이랑 비슷한 노드에 NestJS프레임워크가 있다고 해서 이번기회에 노드를 공부해보기로 했다. 사전과제 사전과제는 간단한 CRUD가 가능한 REST API를 구현하는 것이였다. 스프링이랑 비슷한 구조였어서 모듈마다 컨트롤러랑 서비스를 만..

Etc/회고 2022.07.11

[Error_DataBinding] error: cannot access DataBindingComponent... 데이터바인딩 에러 해결

error: cannot access DataBindingComponent super(_bindingComponent, _root, _localFieldCount); gradle.properties에 아래 코드를 추가 android.enableJetifier=true 아래 링크를 참고해서 해결했습니다 https://www.codegrepper.com/code-examples/whatever/error%3A+cannot+access+DataBindingComponent error: cannot access DataBindingComponent Code Example //add this line in gradle.properties android.enableJetifier=true www.codegreppe..

Etc/Error 2022.06.05

[Error_Android] Glide 사용시 사진 안나오는 에러 해결방법 (W/Glide: Failed to find GeneratedAppGlideModule.)

혹시나 이렇게 뜨면서 Glide에 사진이 안나오는 경우!! W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored build.gradle (:app) -kapt 관련 코드를 추가해줍니다. plugins { ... id 'kotlin-kapt' } dependencies { ...

Etc/Error 2022.05.05

[Error_Maven] 모듈에 대한 Maven 프로젝트 구성을 사용할 수 없습니다.

모듈 'demo'에 필요한 Maven 프로젝트 구성을 사용할 수 없습니다. Maven 프로젝트 컴파일은 IDE에서 외부 빌드가 시작된 경우에만 지원됩니다. pom.xml을 오른쪽 클릭하고 "Add as Maven Project"를 클릭하면 된다. https://code-examples.net/ko/q/1e87c19 java - 인터넷 - Maven 오류:모듈에 대한 Maven 프로젝트 구성을 사용할 수 없습니다. 내 코드를 컴파일하려고하면이 오류가 계속 발생합니다. 내 디렉토리에 pom.xml 파일이 있지만 거기에 뭔가 잘못된 것이 있는지 확실하지 않습니다. 이 문제에 관해 인터넷에서 단 하나의 링크 만 code-examples.net

Etc/Error 2022.04.20

[Error_SpringBoot] 스프링부트(Restful)-안드로이드(Retrofit) 데이터 주고받기시 <'text/plain;charset=UTF-8' not supporte> 백엔드에서 데이터받기 오류

앱에서 seq값을 서버로 보내줬을때 UTF-8 인코딩 에러가 계속 발생했다. Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'text/plain;charset=UTF-8' not supported] @RequestMapping(value = "/plustReadcntApp", method=RequestMethod.POST) public String plustReadcntApp(@RequestBody int seq) { String res = service.readcountApp(seq); System.out.println(res); return res; } //@Headers("Content-Type: ..

Etc/Error 2022.04.03

[Error_Server] 웹 서버 포트 충돌 시 포트 중단하기 (Mac 터미널 사용)

아래처럼 이미 사용하고 있는 포트라고 충돌나서 서버가 안돌아갈때 *************************** APPLICATION FAILED TO START *************************** Description: Web server failed to start. Port 3000 was already in use. Action: Identify and stop the process that's listening on port 3000 or configure this application to listen on another port. 1. sudo lsof -i:[PORT NUMBER] -> sudo lsof -i:3000 2. kill -9 [PID] -> kill -9 471..

Etc/Error 2022.04.01

[Error_IntelliJ] 인텔리제이 안드로이드 그래들 플러그인 자바 버전 변경*(Java 11 to run. You are currently using Java 1.8.)

A problem occurred evaluating project ':app'. > Failed to apply plugin 'com.android.internal.application'. > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You can try some of the following options: - changing the IDE settings. - changing the JAVA_HOME environment variable. - changing `org.gradle.java.home` in `gradle.properties`. 환경설정(preferences) -환경설정 -> 빌드,실..

Etc/Error 2022.03.22

[Error_SpringBoot] xml파일 sql구문 오류 해결java.lang.IllegalStateException: Optional int parameter 'seq' is present but cannot be translated into a null value due to being declared as a primitive type...

This application has no explicit mapping for /error, so you are seeing this as a fallback. java.lang.IllegalStateException: Optional int parameter 'seq' is present but cannot be translated into a null value due to being declared as a primitive type. Consider declaring it as object wrapper for the corresponding primitive type. sql.xml파일에서 mapper사용해서 아래 sql문을 실행하려고 했다가 오류가 뜬 상황이였습니다. SELECT * FROM..

Etc/Error 2022.03.16

[Error_Android] Lateinit property mMap has not been initialized 에러 발생 (GoogleMap사용)

class MapsFragment(val activity: Activity) : Fragment(), OnMapReadyCallback { private lateinit var mMap: GoogleMap mMap을 선언해줬음에도 계속 'Lateinit property mMap has not been initialized' 에러가 발생해서 두시간을 고생했는데... private var mMap: GoogleMap? = null 스택오버플로우를 참고해서 lateinit을 포기하고 바꿨더니 에러가 해결됐다 https://stackoverflow.com/questions/65378392/lateinit-property-map-has-not-been-initialized/65389845 lateinit prop..

Etc/Error 2022.02.18