게시글
- 질문&답변 - cors 에러 - "json-server": "1.0.0-beta.0" 에서 "json-server": "^0.17.3" 로 다운그레이드 했더니 정상적으로 나옵니다. - 0
- 1
- 193
 
- 질문&답변 - 믹스인 강의 json-server 질문드립니다. - json-server 가 나오는 영상 수업 노트에 올려주시면 좋겠습니다. - 2
- 2
- 378
 
- 질문&답변 - addTodo Helper 함수 적용 - methods: { ...mapMutations(['addOneItem']), addTodo() { if(this.newTodoItem !== ''){ // this.$emit('addTodoItem', this.newTodoItem) // this.$store.commit('addOneItem', this.newTodoItem); this.addOneItem(this.newTodoItem) this.clearInput(); } else { this.showModal = !this.showModal; } }, clearInput() { this.newTodoItem = ""; }},이렇게 수정해서 적용해보긴 했습니다만...왠지 'mapMutations에 addTodo() 로직이 넘어가야 할 것만 같은 느낌이 드는데요. 그렇게 하려면 newTodoItem, showModal 모두 state에서 관리해야 하는 건지요?그리고 mutation에 있어야 하는 로직과 각 component에 있어야 하는 로직을 구분해야 하는지, 아니면 되도록 mutation에 로직을 구현하도록 하는 것이 vuex를 적용해 개발할 때 더 적절한 개발 패턴인지 아직 감이 안 옵니다.best practice나 가이드가 있다면 부탁드립니다. 감사합니다. - 1
- 1
- 210
 
- 질문&답변 - Resource Owner Password 권한 부여 방식 문의 - 안녕하세요. 당연히 사용자 이름과 패스워드는 메모리가 아닌 DB에 저장할텐데요.아래코드를 보면 request에 있는 사용자 이름과 패스워드를 map에 저장해서 재사용합니다. 그렇다면 was 메모리에 사용자 이름과 패스워드가 저장될 것이고, 한 쪽 was에는 아래 코드가 실행되어 map에 담길 텐데요. 그럼다면 다른 was에 접근했을 때마다 map 없으니까 다시 권한 부여 과정이 시작되는 건지가 궁금합니다.Map contextAttributes = new HashMap(); HttpServletRequest request = oAuth2AuthorizeRequest.getAttribute(HttpServletRequest.class.getName()); String username = request.getParameter(OAuth2ParameterNames.USERNAME); String password = request.getParameter(OAuth2ParameterNames.PASSWORD); if (StringUtils.hasText(username) && StringUtils.hasText(password)) { contextAttributes.put(OAuth2AuthorizationContext.USERNAME_ATTRIBUTE_NAME, username); contextAttributes.put(OAuth2AuthorizationContext.PASSWORD_ATTRIBUTE_NAME, password); } return contextAttributes;};이 부분 코드에서 - 0
- 2
- 282
 




