redux에서 state의 값이 계속 바뀌는 값일때 어떻게 바뀐값만 계속 가져올수 있을까요 const {testValue} = useSelector(state => state.test) useEffect( () => { // state.test 에 testValue dispatch },[testValue]) 이렇게 하면 되려나 했는데, 안되더라구요 ㅠㅠ setInterval 같은거 안쓰고 바뀐값만 수정되면 좋겠는데 모르겠어요...
전역으로 사용되는 Util 클래스를 어떤 방식으로 가져다 쓰는 것이 나은지 고민해보다가 질문드립니다. 예를 들면 원하는 날짜 형식으로 변화해주는 Util이 필요합니다. 전역에서 해당 Util 클래스의 특정 메소드를 호출하여 사용할 텐데요. 여기서 특정 메소드를 static으로 선언할 수도 있고, Util 클래스를 Bean으로 등록하여 의존성 주입을 받아 사용할 수도 있다고 생각해요. 스프링에서 두 방법의 차이점과 장단점을 정확히 모르겠어서 질문드립니다 !
Intel HAXM is required to run this AVD. HAXM device is not found. Enable VT-x in your BIOS security settings, ensure that HAXM is installed properly. Try disabling 3rd party security software if the problem still occurs. 오류 경고창 원문. VT-x를 활성화 하는 방법, HAXM를 설치하는 방법을 알고싶습니다.
안녕하세요. 강의를 보다가 궁금한 점이있어서 질문 남기게되었습니다. v-bind:class="errorTextColor" 로 warning 이라는 클래스를 주었는데 그럼 클래스가 두개일때는 어떻게 해야하나요? <p class="text warning"> 이렇게 이미 text라는 class가 있고 warning만 넣었다가 뺐다가 하는 동작을 하고 싶은데 v-bind:class 안에 어떻게 넣어야할까요? errorTextColor : function() { return this.isError? 'text warning' : 'text'? 이런식으로 class를 넣는것은 확인했는데 이렇게 말고 html태그안에서 할수있는 방법이 없는지 질문드려요 답변 부탁드립니다.
def number_of_cases(list_data): list_permutation=[] for i in list_data: for j in list_data: num1=str(i) num2=str(j) list_permutation.append(num1+num2) result = list_permutation return result 테스트 해 봤을때 결과도 맞게 나오는데 숙제 제출하면 failed라고 나오네요... 뭐가 문제인지 잘 모르겠습니다 ㅠㅠ
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.tutorial.sprinboottutorial.Application]; nested exception is java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$EmbeddedDatabaseConfiguration due to org/springframework/dao/DataAccessException not found. Make sure your own configuration does not rely on that class. This can also happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake) Maven project로 생성하여서 springboot를 실행하면 위와 같은 에러가 발생합니다. 에러 이유를 좀 알려주시면 감사하겠습니다.