Web
-
[ Vue ] NavigationDuplicated 에러Web/VueJS 2019. 12. 24. 20:58
this.$router.replace(`/api`).catch(err =>{}); { if(error.name != "NavigationDuplicated" ){ throw error; } }); vue-router 버젼을 3.15로 업데이트 하면 된다는 답변도 있었는데 소용없었다. 참고사이트1 참고사이트2 참고사이트3 ----------- NavigationDuplicated 에러는 같은 주소를 여러번 호출할때 나는 에러이다. 조건문을 걸어줘도 해결된다. if ( 기존 주소 != 새로 호출할 주소) { 새로운 주소로 호출 } 에러 해결에만 급급하고, 원인을 찾으려 하지 않은건 정말 잘못된 것이다. 항상 이 에러가 왜 났는지 메세지를 잘 읽자 ~~~!!
-
[ spring boot ] pom.xml의 parent요소, yamlWeb/Spring boot 2019. 12. 15. 21:34
springboot의 pom.xml에는 태그 안에 version이 명시되어 있다. 만약 내가 스프링의 2.2.2버젼을 사용한다면 해당 버젼에 맞는 lib들을 자동으로 불러온다. 2.2.2버젼에 맞는 버젼들은 공식홈 에 있다. spring starter 프로젝트를 생성하면 Application.java라는 파일이 자동 생성된 것을 본 적이 있을 것이다. 이 파일은 애플리케이션의 실제 구동을 담당한다. main메소드가 하나만 존재하는데 이는 자바 애플리케이션이 시작될 때 호출된다. @SpringbootApplication 어노테이션은 세가지의 다른 어노테이션을 캡슐화 하고 있는 최상위 .어노테이션이다. @Configuration , @EnableAutoConfiguration , @ComponentScan ..
-
[springboot] Either processor or processors need to be given errorWeb/Spring boot 2019. 11. 25. 14:19
springboot 에서 maven을 compile할 때 나는 에러이다. 해당 에러는 pom.xml을 수정함으로 해결하였다. 맨 아래 plugin을 잘 확인해 보도록.... 4.0.0 org.springframework.boot spring-boot-starter-parent 2.2.1.RELEASE com.example springboot_jpa 0.0.1-SNAPSHOT springboot_jpa Demo project for Spring Boot 1.8 2.8.0 org.springframework.boot spring-boot-devtools true org.springframework.boot spring-boot-starter-data-jpa io.springfox springfox-swagg..