전체 글

나는 내가 생각한 것보다 훨씬 강하다
Spring

Springboot 에서 Bcrypt를 이용한 문자열 암호화

https://bbubbush.tistory.com/36 @Slf4j @RestController public class test { public String encodeBcrypt(String plainText, int strength){ String changed = new BCryptPasswordEncoder(strength).encode(plainText); System.out.println("changed = " + changed); return changed; } public boolean matchesBcrypt(String planeText, String hashValue, int strength){ BCryptPasswordEncoder passwordEncoder = new BCryp..

etc

공부해야할거

그냥 RestController로 JSON으로 데이터만 보내는 것과 ResponseEntity 를 써서 보내는 것 차이점

Vue.js

[에러]Component name should always be multi-word vue/multi-word-component-names

원인 : eslint 에러, html파일이랑 컴포넌트 태그 구분되게 하기 위해 에러를 냄 해결법 : package.json 안에 rules 에 "rules": { "vue/multi-word-component-names": "off" } 혹은 vue.config.js에서 lintOnSave:false 를 해준다 끝

Vue.js

vuex 공부

Vuex 공부 $store.commit() : mutations 실행 요청 $store.dispatch() : actions 실행 요청 ajax로 받은 데이터 바로 저장이 아니라 mutations를 통해 저장해야 한다. computed vs methods 차이점 -computed 함수는 처음 실행시만 작동 하고 값을 간직함, 자원 절약 가능. 계산결과저장용 함수 -methods 함수는 사용할 때마다 실행 됨 * 팁 computed를 통해 mapState를 사용하면 긴 변수명을 축약 할 수 있다. 1. mapState를 import 한다 import {mapState} from 'vuex' 2. computed에 state(데이터)를 등록한다 computed : { ...mapState(['state이름1..

synclair
메모장