묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
todoApp.js const 순서 중요한가요?
강의 해 주신 코드 그대로 작성 했는데 cannot read properties of undefined (reading 'fetch') 라는 에러가 나서 강의 그대로 순서를 옮겼더니 에러가 없어지고 잘 작동 하더라구요. 정상적으로 작동되었던 순서는 (storage->state->getters->mutattions->export default) 였습니다. 암묵적으로 지키는 순서가 있는건가요? 예를 들면 storage는 맨 앞에 ? export 는 맨 뒤에 ? export를 맨 아래 쓰는게 낯설어서 이해가 잘 안됩니다. 중요한건가요 ?
-
미해결[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)
혹시 강의 해상도 높이는 방법 없을까요 ??
제가 예민한건지 ..눈이 먼가 좀 불편해서요 .안구건조가 심해서 ..ㅎㅎ 1000대도 나쁜건 아닌데 . 혹시 더 높은 해상도가 있는지가 궁금해서요 .ㅎㅎ 강의는 어제부터 잘 듣고 있습니당 !
-
미해결[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)
이상한 에러가 발생했습니다. 봐주세요.
이 화면에서 북마크를 클릳하면 에러가 발생합니다. 11/29 00:09:17: Launching 'app' on Pixel 2 API 29. Install successfully finished in 832 ms. $ adb shell am start -n "kr.co.soncampus.mymango/kr.co.soncampus.mymango.SplashActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Connected to process 10156 on device 'emulator-5554'. Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. I/FirebaseApp: Device unlocked: initializing all Firebase APIs for app [DEFAULT] D/FirebaseAuth: Notifying id token listeners about user ( cb3Our6w2RfgpDYXJfzNoipE0tB2 ). I/FirebaseInitProvider: FirebaseApp initialization successful W/RenderThread: type=1400 audit(0.0:41): avc: denied { write } for name="property_service" dev="tmpfs" ino=6860 scontext=u:r:untrusted_app:s0:c158,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 D/libEGL: Emulator has host GPU support, qemu.gles is set to 1. W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied) I/DynamiteModule: Considering local module com.google.android.gms.measurement.dynamite:55 and remote module com.google.android.gms.measurement.dynamite:54 Selected local version of com.google.android.gms.measurement.dynamite I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to fallback implementation D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so V/FA: onActivityCreated V/FA: App measurement collection enabled App measurement enabled for app package, google app id: kr.co.soncampus.mymango, 1:667758425658:android:76621f75212078a2352703 I/FA: App measurement initialized, version: 46000 To enable debug logging run: adb shell setprop log.tag.FA VERBOSE To enable faster debug mode event logging run: adb shell setprop debug.firebase.analytics.app kr.co.soncampus.mymango D/FA: Debug-level message logging enabled W/ncampus.mymang: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed) Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed) V/FA: Connecting to remote service V/FA: Connection attempt already in progress V/FA: Connection attempt already in progress V/FA: Activity resumed, time: 4720949 I/FA: Tag Manager is not found and thus will not be used V/FA: Connection attempt already in progress V/FA: Connection attempt already in progress D/HostConnection: HostConnection::get() New Host Connection established 0xdb94f550, tid 10197 D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0 D/EGL_emulation: eglCreateContext: 0xdb91a480: maj 2 min 0 rcv 2 D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) W/Gralloc3: mapper 3.x is not supported D/HostConnection: createUnique: call D/HostConnection: HostConnection::get() New Host Connection established 0xdb94f690, tid 10197 D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 D/eglCodecCommon: allocate: Ask for block of size 0x1000 allocate: ioctl allocate returned offset 0x3ffff6000 size 0x2000 D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 0 D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/FA: Connected to remote service V/FA: Processing queued up service tasks: 5 D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) V/FA: Recording user engagement, ms: 3007 D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@e8b73bd V/FA: onActivityCreated V/FA: Activity paused, time: 4723957 E/sss: main..... V/FA: Activity resumed, time: 4724008 D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/sss: Main onCreateOptionsMenu..... D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) V/FA: Inactivity, disconnecting from the service W/ncampus.mymang: Accessing hidden field Landroid/widget/AbsListView;->mIsChildViewEnabled:Z (greylist, reflection, allowed) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) I/chatty: uid=10158(kr.co.soncampus.mymango) RenderThread identical 15 lines D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) I/chatty: uid=10158(kr.co.soncampus.mymango) RenderThread identical 13 lines D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/sss: item1 V/FA: Recording user engagement, ms: 11407 W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@c9f27a5 V/FA: onActivityCreated V/FA: Connecting to remote service V/FA: Connection attempt already in progress Activity paused, time: 4735416 V/FA: Activity resumed, time: 4735501 V/FA: Connection attempt already in progress Connection attempt already in progress 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 D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/sss: Sub2 onCreateOptionsMenu..... D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) I/chatty: uid=10158(kr.co.soncampus.mymango) RenderThread identical 2 lines D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/FA: Connected to remote service V/FA: Processing queued up service tasks: 4 D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) V/FA: Inactivity, disconnecting from the service W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@81fc038 V/FA: Recording user engagement, ms: 6581 V/FA: onActivityCreated E/BookmarkActivity sss: entry ....................0 E/BookmarkActivity sss: entry ....................99 V/FA: Connecting to remote service V/FA: Connection attempt already in progress Activity paused, time: 4742083 V/FA: Activity resumed, time: 4742120 V/FA: Connection attempt already in progress Connection attempt already in progress D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/FA: Connected to remote service V/FA: Processing queued up service tasks: 4 D/EGL_emulation: eglMakeCurrent: 0xdb91a480: ver 2 0 (tinfo 0xdb90faa0) D/NetworkSecurityConfig: No Network Security Config specified, using platform default E/BookmarkActivity sss: entry ....................1 D/Datamodel: DataSnapshot { key = -MparmEFOESJUm_PjL5q, value = {imageUrl=https://s3-ap-northeast-1.amazonaws.com/dcreviewsresized/20211004092323023_photo_b2b78b1ad87d.jpg, titleText=설문커피, id=2, url=https://www.diningcode.com/profile.php?rid=9Vyv53tNcc8h} } D/AndroidRuntime: Shutting down VM E/AndroidRuntime: FATAL EXCEPTION: main Process: kr.co.soncampus.mymango, PID: 10156 com.google.firebase.database.DatabaseException: Class kr.co.soncampus.mymango.ContentsModel does not define a no-argument constructor. If you are using ProGuard, make sure these constructors are not stripped. at com.google.firebase.database.core.utilities.encoding.CustomClassMapper$BeanMapper.deserialize(CustomClassMapper.java:570) at com.google.firebase.database.core.utilities.encoding.CustomClassMapper$BeanMapper.deserialize(CustomClassMapper.java:563) at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.convertBean(CustomClassMapper.java:433) at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.deserializeToClass(CustomClassMapper.java:232) at com.google.firebase.database.core.utilities.encoding.CustomClassMapper.convertToCustomClass(CustomClassMapper.java:80) at com.google.firebase.database.DataSnapshot.getValue(DataSnapshot.java:203) at kr.co.soncampus.mymango.BookmarkActivity$onCreate$1.onDataChange(BookmarkActivity.kt:49) at com.google.firebase.database.core.ValueEventRegistration.fireEvent(ValueEventRegistration.java:75) at com.google.firebase.database.core.view.DataEvent.fire(DataEvent.java:63) at com.google.firebase.database.core.view.EventRaiser$1.run(EventRaiser.java:55) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7356) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) I/Process: Sending signal. PID: 10156 SIG: 9 Connected to process 10236 on device 'emulator-5554'. Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. I/FirebaseApp: Device unlocked: initializing all Firebase APIs for app [DEFAULT] D/FirebaseAuth: Notifying id token listeners about user ( cb3Our6w2RfgpDYXJfzNoipE0tB2 ). I/FirebaseInitProvider: FirebaseApp initialization successful W/RenderThread: type=1400 audit(0.0:42): avc: denied { write } for name="property_service" dev="tmpfs" ino=6860 scontext=u:r:untrusted_app:s0:c158,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to fallback implementation D/libEGL: Emulator has host GPU support, qemu.gles is set to 1. W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied) D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so I/DynamiteModule: Considering local module com.google.android.gms.measurement.dynamite:55 and remote module com.google.android.gms.measurement.dynamite:54 Selected local version of com.google.android.gms.measurement.dynamite D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so V/FA: onActivityCreated V/FA: App measurement collection enabled V/FA: App measurement enabled for app package, google app id: kr.co.soncampus.mymango, 1:667758425658:android:76621f75212078a2352703 I/FA: App measurement initialized, version: 46000 To enable debug logging run: adb shell setprop log.tag.FA VERBOSE To enable faster debug mode event logging run: adb shell setprop debug.firebase.analytics.app kr.co.soncampus.mymango D/FA: Debug-level message logging enabled W/ncampus.mymang: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed) Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed) V/FA: Connecting to remote service V/FA: Connection attempt already in progress V/FA: Connection attempt already in progress V/FA: Activity resumed, time: 4743636 I/FA: Tag Manager is not found and thus will not be used V/FA: Connection attempt already in progress Connection attempt already in progress D/HostConnection: HostConnection::get() New Host Connection established 0xdb94c410, tid 10275 D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0 D/EGL_emulation: eglCreateContext: 0xdb91a600: maj 2 min 0 rcv 2 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 D/EGL_emulation: eglMakeCurrent: 0xdb91a600: ver 2 0 (tinfo 0xdb90fa50) W/Gralloc3: mapper 3.x is not supported D/HostConnection: createUnique: call HostConnection::get() New Host Connection established 0xdb94c690, tid 10275 D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 D/eglCodecCommon: allocate: Ask for block of size 0x1000 allocate: ioctl allocate returned offset 0x3ffff6000 size 0x2000 D/EGL_emulation: eglMakeCurrent: 0xdb91a600: ver 2 0 (tinfo 0xdb90fa50) D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 0 D/sss: Sub2 onCreateOptionsMenu..... D/FA: Connected to remote service V/FA: Processing queued up service tasks: 5 V/FA: Inactivity, disconnecting from the service ------------------------------------------ 데이터는 두 건이 있습니다. 프로그램 소스입니다. package kr.co.soncampus.mymangoimport androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport android.text.method.TextKeyListener.clearimport android.util.Logimport android.widget.ArrayAdapterimport androidx.recyclerview.widget.GridLayoutManagerimport androidx.recyclerview.widget.RecyclerViewimport com.google.firebase.auth.FirebaseAuthimport com.google.firebase.auth.ktx.authimport com.google.firebase.database.DataSnapshotimport com.google.firebase.database.DatabaseErrorimport com.google.firebase.database.ValueEventListenerimport com.google.firebase.database.core.RepoManager.clearimport com.google.firebase.database.ktx.databaseimport com.google.firebase.ktx.Firebaseclass BookmarkActivity : AppCompatActivity() { private lateinit var auth: FirebaseAuth private val contentsModels = mutableListOf<ContentsModel>() override fun onCreate(savedInstanceState: Bundle?) { auth = Firebase.auth super.onCreate(savedInstanceState) setContentView(R.layout.activity_bookmark) val rv = findViewById<RecyclerView>(R.id.rv1) val rvAdapter = RVAdapter(baseContext, contentsModels) rv.adapter = rvAdapter rv.layoutManager = GridLayoutManager(this, 2) val database = Firebase.database val myBookmarkRef = database.getReference("bookmark_ref") Log.e("BookmarkActivity sss", " entry ....................0") myBookmarkRef .child(auth.currentUser?.uid.toString()) .addValueEventListener(object : ValueEventListener{ override fun onDataChange(snapshot: DataSnapshot) { Log.e("BookmarkActivity sss", " entry ....................1") for (dataModel in snapshot.children) { Log.d("Datamodel", dataModel.toString()) contentsModels.add(dataModel.getValue(ContentsModel::class.java)!!) } Log.e("BookmarkActivity sss", " entry ....................2") rvAdapter.notifyDataSetChanged() } override fun onCancelled(error: DatabaseError) { Log.e("Bookmark", "dbError") } }) Log.e("BookmarkActivity sss", " entry ....................99") }} ---------------------------------------package kr.co.soncampus.mymangodata class ContentsModel ( val id : Int, val url : String = "", val imageUrl : String, val titleText : String = "")------------------------------------------
-
미해결실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화
DTO 의 Entity 변경에 대한 위치에 대해서 문의드려요
안녕하세요 . 김영한 강사님 , 강좌 초반을 학습하다가 궁굼한 부분이 생겨서 문의드립니다. 강의에서 생성 메소드를 만들때 전달받은 DTO 를 Entity 로 변환하는 로직을 Controller에서 수행하였는데 , DTO -> Entity , Entity -> DTO 에 대한 책임을 Controller에 위임 하시는 편인가요 ? (저의 경우는 그 책임을 Service layer 에 두고 modelmapper 를 사용하고 있습니다.) @PostMapping("/api/v2/members")public CreateMemberResponse saveMemberV2(@RequestBody @Valid CreateMemberRequest request) { Member member = new Member(); member.setName(request.getName()); Long id = memberService.join(member); return new CreateMemberResponse(id);}
-
미해결실전! 스프링 데이터 JPA
update 실무
안녕하세요 ㅎㅎ 실무적으로 궁금한게 하나 있어서 질문드립니다 update 쿼리는 실무에서도 100% 더티체캉으로 해결하나요 ??
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
eslint 질문
vscode 익스텐션으로 eslint와 prettier를 적용해서 하게되면 npm으로 설치하지 않아도 적용이 되던데 npm으로 eslint, prettier를 설치하고 eslintrc, prettierrc 설정파일 만들어서 옵션설정하는것과 단순히 익스텐션으로만 적용하는것에 차이가 무엇일까요?? 질문 > 팀프로젝트를 한다고하면 eslint와 prettier를 npm으로 설치해서 설정하는 방법과 익스텐션으로만 설정해주는것에 차이가 어떤지 궁금합니다!
-
미해결프론트엔드 개발환경의 이해와 실습 (webpack, babel, eslint..)
정적 파일의 캐쉬는 브라우저가 알아서 해주는건가요? 개발자는 따로 해줄것이 없는건가요?
안녕하세요, 강의 유익하게 보고있는 수강생입니다. 이미지 파일명이 해시값으로 변경되는 부분에서 브라우저에서 정적파일 CSS, JS, Font, Image파일들은 성능을 위해서 캐시해준다고 하였는데 그 캐시?라는것은 브라우저가 알아서 하는건지 아니면 개발자가 캐시라는것을 해줘야하는건지 궁금합니다. 저는 프론트엔드 주니어라,, 캐시가 정확히 어떤것인지 잘 모르는것 같아요...예전에 성능 최적화에 관해 공부했던 내용중에 캐시전략을 잘 짜는것이 성능을 향상시키는데 도움이 된다고 했는데 잘 이애하지 못하고 있다가 이번 웹팩 개발환경셋팅을 공부하면서 다시한번 캐시에 대해 나와 궁금해서 여쭤봅니다.
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
배포
next 적용하지않은 react 프로젝트를 배포하려는데 해당 깃허브 레파지토리에 build한 폴더를 업로드해도 보안에 문제없을까요??
-
미해결더 개발자, 인터뷰 가이드
실수와, 실패의 차이점
선생님 안녕하세요. 소프트스킬 강의 보고 있습니다. 세 가지 질문이 있어서 글을 남기게 되었습니다. 1. 실패와 실수 이 두가지 키워드로 스토리를 만들다 보니, 한 두가지 경험을 통해 실패를 통해 무엇을 배웠다. 실수를 통해 무엇을 배웠다. 이런 결론이 도출 됩니다. (비슷함) 이렇게 소프트 스킬을 정리하는것인지가 질문드리고 싶습니다. 실패의 경우 : 검증 프로젝트가 실패해서 다음 사업까지 이어가지 못했다. 그래도 얻은게 있었다. 실수의 경우: DB 설정파일을 잘못건들여서 재기동시, 구동이 되지 않았다. 서버를 날렸다.위의 실수의 경우 너무 크리티컬 해서 다른 경험에 의한 다른 저의 이야기를 기억속에서 찾고 있습니다. 2. 면접시 질문에 대답에 대해서 고민입니다. "~~~있나요?" 처럼 짧은 한 문장으로 질문을 받았을 경우에 대답을 짧게 해서 후속질문으로 (핑퐁처럼) 이어 갈지.. 답) 예 있었습니다. 질문) 뭐였나요? 답) 어쩌구 저쩌구 아니면 STAR 프레임워크를 통해서 한번에 쭈욱 이야기 하는게 좋을까요? 답) 프로젝트에서 이런 이런 경우가 있었는데 , 이러이러 해서 저렇고 문제점은 이렇게 해결했습니다. 3. 동료와의 마찰 직장괴롭힘 피해자로 갈등이 있었고 모든 직원들이 같은 문제로 힘들어 했던 경험이 있습니다.이 스토리를 포함시키지 않는 것으로 결정 했습니다..(사례로 준비려다 아닌것같아서 언급 자체를 하지 않으려 합니다.) 많이 배우고 있습니다 감사합니다.
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
could not execute statement 오류가 납니다
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오) 예2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오) 예3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오) 예[질문 내용]could not execute statement 오류가 납니다 빼먹은게 있는지 강의 영상보고 다시 입력도 해보고 강의자료 복붙도 해보고 h2도 다시 설치하고 테이블 지웠다가 다시 만들어도 보고 구글링도 해보고 했는데 같은 오류만 납니다.. 도저히 모르겠어요... Member 클래스에 @Entity 했는데 저는 옆에 아이콘이 안뜨던데 연관된 오류일까요..? 구글 드라이브 주소입니다 https://drive.google.com/file/d/1Nr4D8QErjyIRuNrg6WSm9sLTMdfzRLMS/view?usp=sharing 아래는 에러 메세지 입니다 javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: could not execute statement at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:154) at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181) at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188) at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:724) at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:704) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:314) at com.sun.proxy.$Proxy62.persist(Unknown Source) at hello.hellospring.repository.JpaMemberRepository.save(JpaMemberRepository.java:12) at hello.hellospring.service.MemberService.join(MemberService.java:24) at hello.hellospring.service.MemberService$$FastClassBySpringCGLIB$$530c61b7.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:367) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:118) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691) at hello.hellospring.service.MemberService$$EnhancerBySpringCGLIB$$210ddaf2.join(<generated>) at hello.hellospring.service.MemberServiceIntegrationTest.회원가입(MemberServiceIntegrationTest.java:24) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:686) at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131) at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84) at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115) at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:212) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:208) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:137) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:71) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:248) at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:211) at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:71) at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33) at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235) at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54) Caused by: org.hibernate.exception.ConstraintViolationException: could not execute statement at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:59) at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:113) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:99) at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:200) at org.hibernate.dialect.identity.GetGeneratedKeysDelegate.executeAndExtract(GetGeneratedKeysDelegate.java:57) at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:43) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3152) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3756) at org.hibernate.action.internal.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:84) at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:645) at org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:282) at org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:263) at org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:317) at org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:330) at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:287) at org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:193) at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:123) at org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:185) at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:128) at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:55) at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:102) at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:718) ... 84 more Caused by: org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException: NULL not allowed for column "ID"; SQL statement: insert into member (id, name) values (null, ?) [23502-202] at org.h2.message.DbException.getJdbcSQLException(DbException.java:508) at org.h2.message.DbException.getJdbcSQLException(DbException.java:477) at org.h2.message.DbException.get(DbException.java:223) at org.h2.message.DbException.get(DbException.java:199) at org.h2.table.Column.validateConvertUpdateSequence(Column.java:365) at org.h2.table.Table.convertInsertRow(Table.java:931) at org.h2.command.dml.Insert.insertRows(Insert.java:167) at org.h2.command.dml.Insert.update(Insert.java:135) at org.h2.command.CommandContainer.executeUpdateWithGeneratedKeys(CommandContainer.java:246) at org.h2.command.CommandContainer.update(CommandContainer.java:167) at org.h2.command.Command.executeUpdate(Command.java:247) at org.h2.server.TcpServerThread.process(TcpServerThread.java:413) at org.h2.server.TcpServerThread.run(TcpServerThread.java:190) at java.base/java.lang.Thread.run(Thread.java:834) at org.h2.message.DbException.getJdbcSQLException(DbException.java:459) at org.h2.engine.SessionRemote.done(SessionRemote.java:611) at org.h2.command.CommandRemote.executeUpdate(CommandRemote.java:237) at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:191) at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:152) at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate(ProxyPreparedStatement.java:61) at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeUpdate(HikariProxyPreparedStatement.java) at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:197) ... 102 more
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
댓글 삭제기능을 만드는 중에 생긴 버그
안녕하세요 제로초님 댓글 삭제 기능을 만들다가 내 댓글만 삭제가 나왔으면 좋겠어서 밑에 같은 방식으로 구현했습니다. 하지만 내 댓글이 아닌 부분에도 삭제창이 나와 문의드립니다. 아마도 댓글 전체중 하나만 내가 단 댓글이어도 전체 다 삭제창이 나오는 것 같은데 어떤 부분을 수정해야 할 지 잘 모르겠어 문의드립니다. 감사합니다.
-
미해결UIKit - iOS14 실무 가이드 <iOS앱 진짜 개발자 되기>
화면 전환 질문
안녕하세요 강사님 강의 잘 듣고 있습니다.!! 다름이 아니라 화면 전환할때 코드를 @IBAction func doSomething2(_ sender: Any) { guard let detailVC2 = self.storyboard?.instantiateViewController(identifier: "DetailVC2")else {return} self.present(detailVC2, animated: true, completion: nil) } 화면 전환할때 코드를 이렇게 적용해도 넘어가는데 굳이 강의 처럼 스토리보드를 인스턴스화 시켜서 하는 이유는 먼지 궁금합니다
-
미해결실전! Querydsl
fetchResults deprecated에 대해서
[질문 내용] intellij 에서 fetchResult가 deprecated 되었다고 해서 찾아보았는데 아래와 같이 fetch()로 받고, size()는 java에서 연산해주는 방식으로 처리해주고 있는데 강의에서 알려주신 fetchResult()가 fetch()에 대해서 가지는 이점이 무엇인지 알 수 있을까요? 또 이렇게 자바에서 count를 해준다면 db로 count query를 추가적으로 작성하는 것보다 db부담이 덜해 효율적이라고 생각되는데 .. 혹시 따로count query가 쓰이는 이유가 있을까요? 감사합니다.
-
해결됨스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
마지막 테스트에서 제약조건 관련 오류 발생합니다.
학습하는 분들께 도움이 되고, 더 좋은 답변을 드릴 수 있도록 질문전에 다음을 꼭 확인해주세요.1. 강의 내용과 관련된 질문을 남겨주세요.2. 인프런의 질문 게시판과 자주 하는 질문(링크)을 먼저 확인해주세요.(자주 하는 질문 링크: https://bit.ly/3fX6ygx)3. 질문 잘하기 메뉴얼(링크)을 먼저 읽어주세요.(질문 잘하기 메뉴얼 링크: https://bit.ly/2UfeqCG)질문 시에는 위 내용은 삭제하고 다음 내용을 남겨주세요.=========================================[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오) 예2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오) 예3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]여기에 질문 내용을 남겨주세요. GeneratedValue(strategy = GenerationType.IDENTITY) 설정을 했음에도 불구하고 JPA persist save시 pk null 제약조건이 뜹니다ㅜ org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement at org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:276) at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:233) at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:551) at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61) at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:152) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:698) at hello.hellospring.repository.JpaMemberRepository$$EnhancerBySpringCGLIB$$35498c7b.save(<generated>) at hello.hellospring.service.MemberService.join(MemberService.java:28) at hello.hellospring.service.MemberService$$FastClassBySpringCGLIB$$530c61b7.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:698) at hello.hellospring.service.MemberService$$EnhancerBySpringCGLIB$$41d94fa7.join(<generated>) at hello.hellospring.service.MemberServiceIntegrationTest.join(MemberServiceIntegrationTest.java:27) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:725) at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131) at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84) at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115) at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:214) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:210) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:135) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:66) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86) at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86) at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:71) at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33) at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235) at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54) Caused by: org.hibernate.exception.ConstraintViolationException: could not execute statement at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:59) at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:37) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:113) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:99) at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:200) at org.hibernate.dialect.identity.GetGeneratedKeysDelegate.executeAndExtract(GetGeneratedKeysDelegate.java:57) at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:43) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3279) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3885) at org.hibernate.action.internal.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:84) at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:645) at org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:282) at org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:263) at org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:317) at org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:330) at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:287) at org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:193) at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:123) at org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:185) at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:128) at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:55) at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:107) at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:774) at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:760) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:311) at com.sun.proxy.$Proxy91.persist(Unknown Source) at hello.hellospring.repository.JpaMemberRepository.save(JpaMemberRepository.java:18) at hello.hellospring.repository.JpaMemberRepository$$FastClassBySpringCGLIB$$2cd24bc6.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:137) ... 85 more Caused by: org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException: NULL not allowed for column "ID"; SQL statement: insert into member (id, name) values (null, ?) [23502-202]
-
미해결Vue.js + TypeScript 완벽 가이드
리포지토리 권한 추가 부탁드립니다.
github : adsl1664@gmail.com inflearn : manage@machbase.com
-
미해결[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part4: 게임 서버
메모리풀 강의에서 궁금한 점이 있습니다
Memory.cpp파일 memory 생성자의 for (size = 32; size <= 1024; size += 32) { MemoryPool* pool = new MemoryPool(size); _pools.push_back(pool); while (tableIndex <= size) { _poolTable[tableIndex] = pool; tableIndex++; } } 부분이 이해가 안되는데요 for문에서 size가 32씩 증가하면 pool이 두번째는 64바이트로 세번째는 96바이트로 만들어지는건데 이게 맞는건가요? 1024까지를 32바이트 크기로 쪼개 32개 2048까지를 128바이트 크기로 쪼개 8개 4096까지를 256바이트 크기로 쪼개 8개 총 48개가 된다고 이해했는데 그러면 세개의 for문 속 new MemoryPool(size)의 size를 각 32 128 256으로 해야 하는 것이 아닌지.. 하는 의문이 듭니다 어느 부분에서 잘못 이해했는지 모르겠습니다 ㅜㅜ
-
미해결[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part3: 자료구조와 알고리즘
맵 만드는법도 숙지해야하나요?
아니면 알고리즘 부분만 중점적으로 봐도되는건가요?
-
미해결파이썬 알고리즘 문제풀이 입문(코딩테스트 대비)
k번째 약수 문제 관련 질문드립니다.
# k번째 약수 import sys def return_numbers(x): number_list = [] for i in range(1, x+1) : if x%i == 0: number_list.append(i) return number_list sys.stdin = open('input.txt', 'rt') num, k = map(int, input('숫자, n번째 지정 : ').split()) number_list = return_numbers(num) if len(number_list) < k : print(-1) else : print(number_list[k-1]) ------------------------------------------- 위와 같이 코드를 작성해서 채점했는데 틀린 답변이 되어서 질문드립니다. 설명해주신 코드는 모두 이해했지만, 어느부분에서 제가 놓친 부분이 있는지 여쭈어 보고 싶습니다. 감사합니다!
-
미해결프론트엔드 개발자를 위한, 실전 웹 성능 최적화(feat. React) - Part. 1
Auditing 시간
- 특정 웹사이트의 auditing 이 끝나지 않고 계속해서 로딩바 상태인데, - 이런 경우는 어떤 원인이 있을까요 ?
-
미해결[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part1: C++ 프로그래밍 입문
이중포인터 질문있습니다.
안녕하세요 강사님. 질문있습니다. 1번 질문) char* a = "abc"; cout << a; // 출력 값 : abc a는 문자열 "abc"의 주소값을 받는 ptr로 이해하고 있습니다만, 위와 같이 코딩 후 출력하면 주소값이 아닌 문자열이 출력되는 것을 확인할 수 있었습니다. 이 부분은 다른 분의 질문을 통해 cout이 문자열의 경우 주소가 아닌 문자를 NULL 부분까지 쭉 출력한다고 이해했습니다. 제가 제대로 이해한 것이 맞는 것인지 궁금합니다. 분명 주소가 나와야하는데, 값이 나오니 기존에 공부했던 개념까지 흔들려서 다시 찾아보는 어려움이 있었습니다... 2번 질문) 추가) 2번 질문은 함수의 매개변수로 넘겨줄 때 사용하는 것으로 강의 다시 보면서 이해했습니다. 감사합니다. const char* b = "aaa"; b = "bbb"; 위와 같은 상황에서는 b에 문자열 aaa의 주소값을 저장하고, char을 상수화시켰기 때문에 직접적으로 값을 변경하지는 못하고, bbb의 주소값을 b에 넣어줌으로써 메모리 주소값을 변경한 것으로 이해했습니다. const char* b = "aaa"; const char** c = &b; *c = "bbb"; 문제는 위와 같은 상황인데, 이것 또한 결국엔 b에 저장되어있는 aaa의 주소값을 bbb의 주소값으로 변경해주것이지, b의 char을 직접적으로 변경해준 것도 아닌데 굳이 이중포인터를 쓰는 이유가 궁금합니다.