본문 바로가기

전체 글33

git remote 연결 끊기(Commit History 삭제, 미삭제) Local 에 있는 repository와 Remote에 있는 repository의 연결고리 (git)를 끊고 싶을때! 모든 명령어는 해당 프로젝트 경로로 가서 (이상한데 가서 하지 말기). Soft version. 간단하게 Remote와 연결만 끊기/연결하기 (History는 냅두고) 끊기 > git remote remove origin 연결 > git remote add origin https://github.com/yeseul23/newProject.git Hard version. Commit History까지 싹 날리고 마치 처음 올리는 것 처럼 다른곳에 올리기 > rm -rf .git // git폴더 삭제 > git init // git초기화 (삭제한 git 폴더 새롭게 다시생성) > git ad.. 2021. 5. 26.
SpringBoot 사용시 schema.sql / data.sql안먹을 때 schema.sql / data.sql 을 통해 DB initialize를 진행하는데, SpringBoot-JPA 사용시 안먹는다! Why? Entity를 기준으로 자동으로 DDL이 생성되기 때문이다. application.properties 에 아래 옵션을 추가해주면 Entity를 통한 자동 DDL생성이 아닌 schema.sql / data.sql을 통해 초기DB값이 셋팅된다. 2021. 5. 23.
MAC에서 JAVA환경변수 변경하기 (Java버전변경) 1. 기존 Java버전 확인 (예시는 16버전이 깔려있다) > java -version 2. 기존 환경변수 확인 (java관련 환경변수 없음 확인을 위함) > echo $PATH 3. 변경할 java 경로 확인 (예시는 8버전으로 변경할 예정) 4. 해당 경로 PATH등록 > export JAVA_HOME={본인경로} > export PATH=${PATH}:$JAVA_HOME/bin 5. PATH 등록된 내용확인 > echo $PATH 6. Java version변경 됐는지 확인 > java -version 2021. 5. 22.
Java 이전 버전 다운 URL https://www.oracle.com/java/technologies/oracle-java-archive-downloads.html 2021. 5. 22.
옛 SpringBoot 프로젝트 버전올리기 5 - Could not find org.springframework.boot:spring-boot-starter-actuator:. Could not find org.springframework.boot:spring-boot-starter-actuator:. dependency management가 없어서 생긴 문제로 해당 plugin을 추가해준다. plugins.gradle.org/plugin/io.spring.dependency-management classpath("io.spring.gradle:dependency-management-plugin:1.0.11.RELEASE") apply plugin: 'io.spring.dependency-management' 초기 셋팅 가이드 Gradle참고 spring.io/guides/gs/spring-boot/ Building an Application with Spring Boot th.. 2021. 5. 9.
옛 SpringBoot 프로젝트 버전올리기 4 - Plugin with id 'spring-boot' not found. A problem occurred evaluating root project 'projectName'. > Plugin with id 'spring-boot' not found. plugin 이름이 spring-boot > org.springframework.boot 으로 변경되었다고한다 stackoverflow.com/questions/26577805/spring-boot-gradle-plugin-cant-be-found spring-boot gradle plugin can't be found I have a separate gradle script that is just adding spring-boot plugin. It looks like this: buildscript { repositories.. 2021. 5. 9.