묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화
컬렉션을 많이 가지고 있는 상황일때..
안녕하세요. 취준생때부터 강사님의 인강을 듣고 지금은 한 회사에 취업하여 열심히(?) 개발하고 있습니다. ㅎㅎ 제가 궁금한 것은 엔티티에 참 많은 컬랙션을 참조하고 있을때, BatchSize을 설정을 해도 지연 로딩으로 인한 쿼리가 20개씩 나가는데요. ( 설정 전에는 쿼리가 300개...) 여기서 JPA를 통해 최적화 하는 방법은 더 없을까요? 없다면 캐싱이나 설계를 바꾸는 방법밖에 없는 것이겠죠?
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
Icon으로 shooping-cart가 안보이면
<Icon type="shopping-cart" /> 대신import { Icon } from '@iconify/react'; <Icon icon="ant-design:shopping-cart-outlined" />사용하시면 잘 나옵니다.
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
async/await에 대한 이해가 맞는지 확인 해주 실 수 있으실까요?
안녕하세요 ~ 강의 잘 듣고 있습니다 async / await을 파면서 궁금한점이 생겼는데 혹시 알려 주실 수 있으시면 정말 감사하겠습니다 첫번째 예시 reader.onload = async e =>{ array.push(e.target.result) let copyPreview = [...preview] await copyPreview.push(...array); setPreview(copyPreview) } } } Copy 이렇게 코드가 있다는 가정 (제가 아는한에서 설명하겠습니다) 1. async안의 코드들은 전부 비동기로 작동한다 2. await 붙은 코드는 .then느낌으로 맨 마지막에 작동한다 // 이 정의가 맞을까요? 두번째 예시 (공부하면서 퍼온겁니다) async function showAvatar() { // JSON 읽기 let response = await fetch('/article/promise-chaining/user.json'); let user = await response.json(); // github 사용자 정보 읽기 let githubResponse = await fetch(`https://api.github.com/users/${user.name}`); let githubUser = await githubResponse.json(); } Copy let response = await fetch('/article/promise-chaining/user.json'); 라는 것은 fetch즉 백엔드에서 데이터를 불러오는 것이 비동기 이기 때문에 await을 안붙여주면 let response에 데이터르 다 불러오기전엔 undefined가 뜨고 다 불러온 후에야 response에 데이터가 담기기 때문에 await을 쓴건가요?
-
미해결인터랙티브 웹 개발 제대로 시작하기
캐릭터 초기위치 와 이동을 `style.left` 대신 `translateX` 로 해보려는데 어렵네요..
안녕하세요. 좋은강의 감사드립니다. 캐릭터 생성_로딩이 끝나고, 키보드 좌/우 키를 누르면 다음 코드가 실행됩니다.elem.style.transform = 'translateX( ? )'랜더링 퍼포먼스를 위해 left -> translate 로 바꾸려는데요.이때 캐릭터의 기본 rotateY 값이 취소된 것을 확인할 수 있습니다. CSS 설정값 우선순위 때문에 새 값으로 덮어 씐것으로 보이구요,그래서 미리 CSS 에 정의해둔 translateX Y Z 와 같은 기존의 `style.transfrom` 값 들을 저장해두기 위해 DOM 내장객체 new DOMMatrix( elem.style.transform ) 을 통해 이전 transform 값을 저장해두었는데요. 이전 matrix 를 translate 가 적용된 새 matrix 로 교체하려는데 이렇게 적용하려니, 문제 해결범위가 너무 커지더라구요..Matrix 를 이전값 에다 새 값을 적용해야되는데 4x4 행렬연산이 필요해보이고, 저의 해결가능한 범위를 넘어서버리네요..ㅠㅠ 질문입니다. 초기에 설정된 CSS transform 값. 또는 직전 transform 값이 중첩적용되도록 하려는 문제를 어떻게 접근해야 할까요? 이부분에 대해 조언을 구합니다. ps. 지금 구현중인 방식은 예제와 비슷하게 left 로 초기위치만 지정하고,translateX 로 좌/우 이동을 구현하고있습니다. 위에 설명한 `transform 함수치환, 중접설정 값 미적용` 문제로좌 / 우 이동은 되지만, 캐릭터가 회전을 못하고있어요.. 설정값들이 중복되는건 원치않아서... CSS 값 JS 값 이 합쳐지는 설정을 유지하려 하다보니 문제가 좀 복잡해졌어요.이런 맥락에서의 해결방법이 있을까요? 읽어주셔서 감사합니다.
-
미해결
실습자료 다운로드 어디서 하나요?
안녕하세요. Exsi 와 VMware iso라던지 실습 강의 파일이 있던데 어디서 받아야하는 지 싶어서요. 목차에서 자료 다운로드 받는것을 하니깐 교육 PPT 자료 외에는 다운로드가 되지 않아서 혹시 별도로 어디에 지정되어있는지 알수 있을까요?
-
해결됨배달앱 클론코딩 [with React Native]
import PushNotification from 'react-native-push-notification'했더니 오류가 발생했습니다.
ERROR Invariant Violation: `new NativeEventEmitter()` requires a non-null argument. ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native. ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native. 혹시 몰라서 rm -rf node_module를 하고 다시 npm i를 했는데도 동일한 증상이 반복되서 다시 문의 드리게 됬네요. 가르침 부탁드립니다.
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
깃헙 권한 확인 부탁드립니다.
안녕하세요~ 어제 깃헙 권한 신청해서 오늘 확인은 되었는데, 처음에 접근이 되다가 여러번 시도하니 다시 접근이 되지 않습니다. 확인 부탁드려도 될까요? 인프런 아이디 : whitebear2080 / smart0192!@zx 인프런 이메일 : whitebear2080@naver.com / smart0192!@ 깃헙 아이디 : whitebear2080@naver.com / movie0192!@ 깃헙 Username : whitebear2080
-
미해결[유니티 레벨 업!] 모듈식으로 개발하는 퀘스트&업적 시스템
SaveLoad가 안 됩니다..
세이브 로드가 안 되고 Null 레퍼런스도 뜹니다.. 완강에 있는 전체 스크립트를 갖고 와서 그대로 사용해보는데도 안 되네요.. 혹시 괜찮으시다면 ggg200005@gmail.com으로 프로젝트 파일 보내주실 수 있을까요..?
-
해결됨대세는 쿠버네티스 (초급~중급편)
Dashboard에서 pod 생성시 에러가 발생합니다. 스샷 첨부 드립니다.
실습 진행이 안되는데 더 확인해봐야 할 게 있을까요?
-
미해결PHP 7+ 프로그래밍: 객체지향
모델 User 등에서 속성들을 protected 나 private 으로 설정하지 않는 이유가 있습니까?
강사님 강의 잘 듣고 있습니다~ ^^* 역시 후반부에 오니 핵심들이 꼭꼭 쌓여있습니다.앞에서 잘 설명해 주셨던 것들이 잘 조합되어서,저의 이해도도 많이 높아 졌습니다. 그런데 궁금한게 User 클래스와 같은 Model을 만드실때,속성을 protected 나 private으로 미리 선언하지 않고모델의 메서드 내에서 매직메서드 __set() 을 통한 할당을 함으로써,public 접근이 가능하게 됩니다. 강의에서 말씀하셨듯이 VO나 DTO에 대한 언급을 하지 않는 이유는 이해가 갑니다만,뷰 등에서 모델의 객체(vo)가 수정되지 않을 것을보장(immutable)해 주는 것은 중요하지 않습니까? 혹시 별다른 이유가 있는지 궁금해서 질문드립니다. MVC 아키텍처에서 VO가 중요한 이유는VO가 변하지 않음을 보장하는 것이라고 생각하거든요~^^ 강사님의 다음 라라벨 강의도 기대되네요~ ^^*
-
미해결스프링과 JPA 기반 웹 애플리케이션 개발
ArchUnit test 질문입니다.
안녕하세요. 백기선님. 유익한 강의 만들어주셔서 감사합니다. 저는 현재 패키지 구조 ArchUnit Test 부분을 수강하고 있습니다. 강좌에서 인텔리제이를 활용해 @ArchTest 어노테이션으로 해당 문제점을 빠르게 콘솔로 확인할 수 있는 것을 보고 제가 사용중인 VSCODE에서 진행했더니 테스트 성공/실패 결과는 볼 수 있으나 어디가 문제인지는 알려주지 않았습니다. 해서 여러 문서들을 보고 Junit 테스트 코드 때 사용했던 코드들을 바탕으로 해서 ArchRule을 만들어 마지막 check 메소드를 호출해 테스트 하니 결과를 받아볼 수 있었습니다. VSCODE에서 ArchUnit에 대한 디버깅 방법을 구하고자 하는 것이 아니라, 문법은 틀리나 같은 테스트 코드라고 생각이 되어 돌린 이 테스트 코드에 대해서 말씀드립니다. @ArchTest 에서는 성공하였으나, Junit 쪽에서는 실패로 나타나 해당 이유가 궁금해 질문드립니다. 아래 관련파일 첨부합니다. < 실패한 JUNIT > <오류내용> java.lang.AssertionError: Architecture Violation [Priority: MEDIUM] - Rule 'slices matching 'com.study.inf.modules.(*)..' should be free of cycles' was violated (1 times):Cycle detected: Slice account -] Slice settings -] Slice accountDependencies of Slice accountMethod [com.study.inf.modules.account.AccountService.updateNotifications(com.study.inf.modules.account.Account, com.study.inf.modules.settings.forms.Notifications)] has parameter of type [com.study.inf.modules.settings.forms.Notifications] in (AccountService.java:0)Method [com.study.inf.modules.account.AccountService.updateProfile(com.study.inf.modules.account.Account, com.study.inf.modules.settings.validator.Profile)] has parameter of type [com.study.inf.modules.settings.validator.Profile] in (AccountService.java:0)Dependencies of Slice settingsConstructor [com.study.inf.modules.settings.SettingsController.[init](com.study.inf.modules.account.AccountService, org.modelmapper.ModelMapper, com.study.inf.modules.settings.validator.NicknameValidator, com.study.inf.modules.tag.TagService, com.study.inf.modules.tag.TagRepository, com.study.inf.modules.zone.ZoneRepository, com.fasterxml.jackson.databind.ObjectMapper)] has parameter of type [com.study.inf.modules.account.AccountService] in (SettingsController.java:0)Constructor [com.study.inf.modules.settings.WithAccountSecurityContextFactory.[init](com.study.inf.modules.account.AccountService)] has parameter of type [com.study.inf.modules.account.AccountService] in (WithAccountSecurityContextFactory.java:0)Constructor [com.study.inf.modules.settings.validator.NicknameValidator.[init](com.study.inf.modules.account.AccountRepository)] has parameter of type [com.study.inf.modules.account.AccountRepository] in (NicknameValidator.java:0)Field [com.study.inf.modules.settings.SettingsController.accountService] has type [com.study.inf.modules.account.AccountService] in (SettingsController.java:0)Field [com.study.inf.modules.settings.SettingsControllerTest.accountRepository] has type [com.study.inf.modules.account.AccountRepository] in (SettingsControllerTest.java:0)Field [com.study.inf.modules.settings.SettingsControllerTest.accountService] has type [com.study.inf.modules.account.AccountService] in (SettingsControllerTest.java:0)Field [com.study.inf.modules.settings.WithAccountSecurityContextFactory.accountService] has type [com.study.inf.modules.account.AccountService] in (WithAccountSecurityContextFactory.java:0)Field [com.study.inf.modules.settings.validator.NicknameValidator.accountRepository] has type [com.study.inf.modules.account.AccountRepository] in (NicknameValidator.java:0)Method [com.study.inf.modules.settings.SettingsController.addTag(com.study.inf.modules.account.Account, com.study.inf.modules.tag.TagForm)] has parameter of type [com.study.inf.modules.account.Account] in (SettingsController.java:0)Method [com.study.inf.modules.settings.SettingsController.addZone(com.study.inf.modules.account.Account, com.study.inf.modules.zone.ZoneForm)] has parameter of type [com.study.inf.modules.account.Account] in (SettingsController.java:0)Method [com.study.inf.modules.settings.SettingsController.removeTag(com.study.inf.modules.account.Account, com.study.inf.modules.tag.TagForm)] has parameter of type [com.study.inf.modules.account.Account] in (SettingsController.java:0)Method [com.study.inf.modules.settings.SettingsController.removeZone(com.study.inf.modules.account.Account, com.study.inf.modules.zone.ZoneForm)] has parameter of type [com.study.inf.modules.account.Account] in (SettingsController.java:0)Method [com.study.inf.modules.settings.SettingsController.updateAccount(com.study.inf.modules.account.Account, com.study.inf.modules.settings.forms.NicknameForm, org.springframework.validation.Errors, org.springframework.ui.Model, org.springframework.web.servlet.mvc.support.RedirectAttributes)] has parameter of type [com.study.inf.modules.account.Account] in (SettingsController.java:0)Method [com.study.inf.modules.settings.SettingsController.updateAccountForm(com.study.inf.modules.account.Account, org.springframework.ui.Model)] has parameter of type [com.study.inf.modules.account.Account] in (SettingsController.java:0)Method [com.study.inf.modules.settings.SettingsController.updateNotifications(com.study.inf.modules.account.Account, com.study.inf.modules.settings.forms.Notifications, org.springframework.validation.Errors, org.springframework.ui.Model, org.springframework.web.servlet.mvc.support.RedirectAttributes)] has parameter of type [com.study.inf.modules.account.Account] in (SettingsController.java:0)Method [com.study.inf.modules.settings.SettingsController.updateNotificationsForm(com.study.inf.modules.account.Account, org.springframework.ui.Model)] has parameter of type [com.study.inf.modules.account.Account] in (SettingsController.java:0)Method [com.study.inf.modules.settings.SettingsController.updatePassword(com.study.inf.modules.account.Account, com.study.inf.modules.settings.forms.PasswordForm, org.springframework.validation.Errors, org.springframework.ui.Model, org.springframework.web.servlet.mvc.support.RedirectAttributes)] has parameter of type [com.study.inf.modules.account.Account] in (SettingsController.java:0)Method [com.study.inf.modules.settings.SettingsController.updatePasswordForm(com.study.inf.modules.account.Account, org.springframework.ui.Model)] has parameter of type [com.study.inf.modules.account.Account] in (SettingsController.java:0)Method [com.study.inf.modules.settings.SettingsController.updateProfile(com.study.inf.modules.account.Account, com.study.inf.modules.settings.validator.Profile, org.springframework.validation.Errors, org.springframework.ui.Model, org.springframework.web.servlet.mvc.support.RedirectAttributes)] has parameter of type [com.study.inf.modules.account.Account] in (SettingsController.java:0)Method [com.study.inf.modules.settings.SettingsController.updateProfileForm(com.study.inf.modules.account.Account, org.springframework.ui.Model)] has parameter of type [com.study.inf.modules.account.Account] in (SettingsController.java:0)Method [com.study.inf.modules.settings.SettingsController.updateTags(com.study.inf.modules.account.Account, org.springframework.ui.Model)] has parameter of type [com.study.inf.modules.account.Account] in (SettingsController.java:0)Method [com.study.inf.modules.settings.SettingsController.updateZonesForm(com.study.inf.modules.account.Account, org.springframework.ui.Model)] has parameter of type [com.study.inf.modules.account.Account] in (SettingsController.java:0)Method [com.study.inf.modules.settings.WithAccountSecurityContextFactory.createSecurityContext(com.study.inf.modules.settings.WithAccount)] calls constructor [com.study.inf.modules.account.form.SignUpForm.[init]()] in (WithAccountSecurityContextFactory.java:26)Method [com.study.inf.modules.settings.WithAccountSecurityContextFactory.createSecurityContext(com.study.inf.modules.settings.WithAccount)] calls method [com.study.inf.modules.account.form.SignUpForm.setNickname(java.lang.String)] in (WithAccountSecurityContextFactory.java:27)Method [com.study.inf.modules.settings.WithAccountSecurityContextFactory.createSecurityContext(com.study.inf.modules.settings.WithAccount)] calls method [com.study.inf.modules.account.form.SignUpForm.setEmail(java.lang.String)] in (WithAccountSecurityContextFactory.java:28)Method [com.study.inf.modules.settings.WithAccountSecurityContextFactory.createSecurityContext(com.study.inf.modules.settings.WithAccount)] calls method [com.study.inf.modules.account.form.SignUpForm.setPassword(java.lang.String)] in (WithAccountSecurityContextFactory.java:29)Method [com.study.inf.modules.settings.WithAccountSecurityContextFactory.createSecurityContext(com.study.inf.modules.settings.WithAccount)] calls method [com.study.inf.modules.account.AccountService.processNewAccount(com.study.inf.modules.account.form.SignUpForm)] in (WithAccountSecurityContextFactory.java:30)Method [com.study.inf.modules.settings.validator.NicknameValidator.validate(java.lang.Object, org.springframework.validation.Errors)] calls method [com.study.inf.modules.account.AccountRepository.findByNickname(java.lang.String)] in (NicknameValidator.java:31)Method [com.study.inf.modules.settings.WithAccountSecurityContextFactory.createSecurityContext(com.study.inf.modules.settings.WithAccount)] calls method [com.study.inf.modules.account.AccountService.loadUserByUsername(java.lang.String)] in (WithAccountSecurityContextFactory.java:33)Method [com.study.inf.modules.settings.SettingsControllerTest.afterEach()] calls method [com.study.inf.modules.account.AccountRepository.deleteAll()] in (SettingsControllerTest.java:70)Method [com.study.inf.modules.settings.SettingsController.updateProfile(com.study.inf.modules.account.Account, com.study.inf.modules.settings.validator.Profile, org.springframework.validation.Errors, org.springframework.ui.Model, org.springframework.web.servlet.mvc.support.RedirectAttributes)] calls method [com.study.inf.modules.account.AccountService.updateProfile(com.study.inf.modules.account.Account, com.study.inf.modules.settings.validator.Profile)] in (SettingsController.java:98)Method [com.study.inf.modules.settings.SettingsControllerTest.addZone()] calls method [com.study.inf.modules.account.AccountRepository.findByNickname(java.lang.String)] in (SettingsControllerTest.java:98)Method [com.study.inf.modules.settings.SettingsControllerTest.addZone()] calls method [com.study.inf.modules.account.Account.getZones()] in (SettingsControllerTest.java:100)Method [com.study.inf.modules.settings.SettingsControllerTest.removeZone()] calls method [com.study.inf.modules.account.AccountRepository.findByNickname(java.lang.String)] in (SettingsControllerTest.java:107)Method [com.study.inf.modules.settings.SettingsControllerTest.removeZone()] calls method [com.study.inf.modules.account.AccountService.addZone(com.study.inf.modules.account.Account, com.study.inf.modules.zone.Zone)] in (SettingsControllerTest.java:109)Method [com.study.inf.modules.settings.SettingsController.updatePassword(com.study.inf.modules.account.Account, com.study.inf.modules.settings.forms.PasswordForm, org.springframework.validation.Errors, org.springframework.ui.Model, org.springframework.web.servlet.mvc.support.RedirectAttributes)] calls method [com.study.inf.modules.account.AccountService.updatePassword(com.study.inf.modules.account.Account, java.lang.String)] in (SettingsController.java:118)Method [com.study.inf.modules.settings.SettingsControllerTest.removeZone()] calls method [com.study.inf.modules.account.Account.getZones()] in (SettingsControllerTest.java:120)Method [com.study.inf.modules.settings.SettingsController.updateNotifications(com.study.inf.modules.account.Account, com.study.inf.modules.settings.forms.Notifications, org.springframework.validation.Errors, org.springframework.ui.Model, org.springframework.web.servlet.mvc.support.RedirectAttributes)] calls method [com.study.inf.modules.account.AccountService.updateNotifications(com.study.inf.modules.account.Account, com.study.inf.modules.settings.forms.Notifications)] in (SettingsController.java:138)Method [com.study.inf.modules.settings.SettingsController.updateTags(com.study.inf.modules.account.Account, org.springframework.ui.Model)] calls method [com.study.inf.modules.account.AccountService.getTags(com.study.inf.modules.account.Account)] in (SettingsController.java:147)Method [com.study.inf.modules.settings.SettingsControllerTest.addTag()] calls method [com.study.inf.modules.account.AccountRepository.findByNickname(java.lang.String)] in (SettingsControllerTest.java:149)Method [com.study.inf.modules.settings.SettingsControllerTest.addTag()] calls method [com.study.inf.modules.account.Account.getTags()] in (SettingsControllerTest.java:150)Method [com.study.inf.modules.settings.SettingsControllerTest.removeTag()] calls method [com.study.inf.modules.account.AccountRepository.findByNickname(java.lang.String)] in (SettingsControllerTest.java:157)Method [com.study.inf.modules.settings.SettingsControllerTest.removeTag()] calls method [com.study.inf.modules.account.AccountService.addTag(com.study.inf.modules.account.Account, com.study.inf.modules.tag.Tag)] in (SettingsControllerTest.java:159)Method [com.study.inf.modules.settings.SettingsController.addTag(com.study.inf.modules.account.Account, com.study.inf.modules.tag.TagForm)] calls method [com.study.inf.modules.account.AccountService.addTag(com.study.inf.modules.account.Account, com.study.inf.modules.tag.Tag)] in (SettingsController.java:160)Method [com.study.inf.modules.settings.SettingsControllerTest.removeTag()] calls method [com.study.inf.modules.account.Account.getTags()] in (SettingsControllerTest.java:161)Method [com.study.inf.modules.settings.SettingsControllerTest.removeTag()] calls method [com.study.inf.modules.account.Account.getTags()] in (SettingsControllerTest.java:172)Method [com.study.inf.modules.settings.SettingsController.removeTag(com.study.inf.modules.account.Account, com.study.inf.modules.tag.TagForm)] calls method [com.study.inf.modules.account.AccountService.removeTag(com.study.inf.modules.account.Account, com.study.inf.modules.tag.Tag)] in (SettingsController.java:173)Method [com.study.inf.modules.settings.SettingsController.updateZonesForm(com.study.inf.modules.account.Account, org.springframework.ui.Model)] calls method [com.study.inf.modules.account.AccountService.getZones(com.study.inf.modules.account.Account)] in (SettingsController.java:181)Method [com.study.inf.modules.settings.SettingsControllerTest.updateAccount_success()] calls method [com.study.inf.modules.account.AccountRepository.findByNickname(java.lang.String)] in (SettingsControllerTest.java:197)Method [com.study.inf.modules.settings.SettingsController.addZone(com.study.inf.modules.account.Account, com.study.inf.modules.zone.ZoneForm)] calls method [com.study.inf.modules.account.AccountService.addZone(com.study.inf.modules.account.Account, com.study.inf.modules.zone.Zone)] in (SettingsController.java:198)Method [com.study.inf.modules.settings.SettingsController.removeZone(com.study.inf.modules.account.Account, com.study.inf.modules.zone.ZoneForm)] calls method [com.study.inf.modules.account.AccountService.removeZone(com.study.inf.modules.account.Account, com.study.inf.modules.zone.Zone)] in (SettingsController.java:210)Method [com.study.inf.modules.settings.SettingsController.updateAccount(com.study.inf.modules.account.Account, com.study.inf.modules.settings.forms.NicknameForm, org.springframework.validation.Errors, org.springframework.ui.Model, org.springframework.web.servlet.mvc.support.RedirectAttributes)] calls method [com.study.inf.modules.account.AccountService.updateNickname(com.study.inf.modules.account.Account, java.lang.String)] in (SettingsController.java:229)Method [com.study.inf.modules.settings.SettingsControllerTest.updateProfile()] calls method [com.study.inf.modules.account.AccountRepository.findByNickname(java.lang.String)] in (SettingsControllerTest.java:237)Method [com.study.inf.modules.settings.SettingsControllerTest.updateProfile()] calls method [com.study.inf.modules.account.Account.getBio()] in (SettingsControllerTest.java:238)Method [com.study.inf.modules.settings.SettingsControllerTest.updateProfile_error()] calls method [com.study.inf.modules.account.AccountRepository.findByNickname(java.lang.String)] in (SettingsControllerTest.java:255)Method [com.study.inf.modules.settings.SettingsControllerTest.updateProfile_error()] calls method [com.study.inf.modules.account.Account.getBio()] in (SettingsControllerTest.java:256)Method [com.study.inf.modules.settings.SettingsControllerTest.updatePassword_success()] calls method [com.study.inf.modules.account.AccountRepository.findByNickname(java.lang.String)] in (SettingsControllerTest.java:281)Method [com.study.inf.modules.settings.SettingsControllerTest.updatePassword_success()] calls method [com.study.inf.modules.account.Account.getPassword()] in (SettingsControllerTest.java:282) at com.tngtech.archunit.lang.ArchRule$Assertions.assertNoViolation(ArchRule.java:92) at com.tngtech.archunit.lang.ArchRule$Assertions.check(ArchRule.java:82) at com.tngtech.archunit.lang.ArchRule$Factory$SimpleArchRule.check(ArchRule.java:196) at com.tngtech.archunit.lang.syntax.ObjectsShouldInternal.check(ObjectsShouldInternal.java:81) at com.tngtech.archunit.library.dependencies.SliceRule.check(SliceRule.java:64) at com.study.inf.modules.ArchUnitTestCode.slice(ArchUnitTestCode.java:55) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
jpa 외래키에 대한 질문합니다..
보통의 제약조건을 걸때 아래코드처럼 거는걸로 아는데요.@ManyToOne(fetch = FetchType.LAZY)@JoinColumn(name = "courseSeq")private Course course;반면에, 제약조건을 걸지않고 long 타입의 시퀀스로 만든뒤@Column(columnDefinition = "bigint comment '과정 시퀀스'")private Long courseSeq;이런식으로 유저 시퀀스만으로 queryDsl로 조인걸어서 필요한 데이터만불러오는식이나 생성, 수정, 삭제시 해당엔티티 시퀀스만으로 처리하는식으로 써도되는지...정리하자면 jpa로 @manytoone 어노테이션을 쓰지않고 jpa를 써도 문제될게없는지 궁금해서 질문드립니다.답변 :: 안녕하세요. 최용호님, 공식 서포터즈 David입니다. 필요하다면 연관관계를 맺지 않고도 그렇게 사용하셔도 됩니다. 아래 글에서 그러한 형태로 사용하는 예를 보여줍니다. https://www.popit.kr/id%EB%A1%9C-%EB%8B%A4%EB%A5%B8-%EC%95%A0%EA%B7%B8%EB%A6%AC%EA%B2%8C%EC%9E%87%EC%9D%84-%EC%B0%B8%EC%A1%B0%ED%95%98%EB%9D%BC/ 이런식으로 답변이 달렸는데 영한님의 생각이 궁금하여 다시 질문드립니다..1. 현재 프로젝트를 하는입장에서 도메인 주도 설계방식을 쓰면 시퀀스만으로 매핑해도되는지..2. 실무를 하는 입장에서 어떤방식으로 적용하는게 더 이점이 많은지..
-
해결됨로그프레소 엔터프라이즈 - 데이터 수집과 파싱
parsecsv 쿼리 사용 후 count 쓰는 법 문의
안녕하세요! Json 파서로 key value를 나눈 다음에 value를 parsecsv로 나누는 것 까지는 하였는데 통계 내는 법을 잘 모르겠습니다. splunk의 경우 makemv 쿼리 사용 후 stats count로 통계를 내면 나눠진 Value에 대한 통계를 사용할 수 있는데 logpresso는 parsecsv로 나눠서 해당하는 칼럼에 대한 통계만 낼 수 있어서 따로 방법이 없나 궁금해서 문의 드립니다.
-
미해결[초급편] 안드로이드 커뮤니티 앱 만들기(Android Kotlin)
강의 질문이요
이 앱을 만들고 본인이 그 앱에 게시물을 올리면 자기만 볼 수 있게 할 수 있나요?? 몇 개를 올리고 자기가 올린 게시물만 모아볼 수 있게요..
-
미해결Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)
혹시 다음 강의 일정 좀 알 수 있을가요??
혹시 다음 강의 일정 좀 알 수 있을가요??다음 강의도 수강하고 싶은데, 예정일 좀 부탁드리겠습니다.
-
미해결부트스트랩으로 개인 홈페이지 만들기
jqBootstrapValidation 파일이 없어요
안녕하세요 선생님, 선생님 강의 잘 듣고 있습니다. 그런데 따라하는데 문제가 생겼습니다. startbootstrap-freelancer-gh-pages 다운로드 받은 js폴더에 jqBootstrapValidation 파일이 없어요. 선생님 화면에 보이는 파일들이 js 폴더에 하나도 없어요. 저의 js 폴더에는 script.js만 있습니다. 선생님것과 다른 것 같아요. 선생님 실습에 사용하는 예제 파일을 다운로드 받을 수 없을까요?
-
미해결따라하며 배우는 MySQL on Docker
Cento 릴리이즈 중지 이슈로 우분투로 수업 진행해도 될까요?
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
-
미해결반응형 웹사이트 포트폴리오(App Official Landing Website)
따라했는데 이상합니ㅏㄷ..ㅠ
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Documenfet</title> <script src="/script/jquery-3.4.1.min.js"></script> <!-- slick js --> <link rel="stylesheet" href="/slick/slick.css"> <link rel="stylesheet" href="/slick/slick-theme.css"> <script src="/slick/slick.js"></script> </head> <body> <div class="your-class"> <div>your content</div> <div>your content</div> <div>your content</div> </div> <script> $('.your-class').slick(); </script> </body> </html> 이렇게 했는데요, 그러면 your content가 한줄만나오고 나머지 두줄이 그냥 없어집니다 ... 세이브연속으로누르면 살짝 previous버튼과 next버튼이보이는? 현상이나오는데 뭐가문제일까요?
-
미해결만들면서 배우는 리액트 : 기초
git 로그인 문제
안녕하세요. 제가 개발 초보라서 git 설치는 했는데 비주얼코드에서 연결하는데 문제가 있어서요. git remote add origin여기 까지는 문제 없이 따라왔는데 git push -u origin "main" 이 코드를 넣으면 Username for 'https://github.com': 아이디Password for 'https://아이디@github.com': 계속 이런식으로 나오는데 뭐가 잘못된건가요? ㅠㅠ... remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.fatal: Authentication failed for 'https://github.com/id/cat-jjal-maker.git/'iMac:cat-jjal-maker-main jee$ Password for 'https://id@github.com': bash: Password: command not found이런 메세지가 뜹니다.
-
미해결유니티(Unity)로 시작하는 게임개발: Part 2. C# 프로그래밍 입문
플레이 버튼이 없어요
윈도우 Microsoft Visual Studio Community 2019버전 16.8.3 사용중입니다 플레이 버튼이 없고, 상단 메뉴도 강사님과는 다릅니다. 상단에 실행 메뉴가 없고 디버그 메뉴에 디버깅 시작이 있긴합니다만 비활성화되어 있어요 어떻게하면 될까요 ㅠㅠ?