본문 바로가기

전체보기

(43)
mac homebrew로 nvm 설치 NVM이란? (Node Version Manager) :한 마디로 Node.js 의 버전을 관리하는 도구 1. NVM, 왜 사용해야 하나요? 협업을 할 때, 또는 다양한 프로젝트를 동시에 진행해야 할 때 다양한 라이브러리 / 프레임워크 / 개발툴의 버전 호환 문제를 겪는데 Node 버전을 간단하게 스위칭할수 있게 해줌 컴퓨터에 다양한 버전의 Node.js 를 설치할 수 있게 해줌 버전관리를 할 수 있음(설치, 삭제, 확인.. 등) 2. homebrew로 NVM 설치하기 $ brew install nvm 3. 환경변수 설정하기 $ mkdir ~/.nvm $ vi ~/.bash_profile vi 편집기로 파일을 열고 수정한다 export NVM_DIR="$HOME/.nvm" [ -s "/usr/local/..
springboot + gradle + front-end npm build spec : vue-cli3 spring boot + npm 으로 front 관련 라이브러리 관리 plugins { id 'com.github.node-gradle.node' version '3.2.1' } repositories { mavenCentral() maven { url "https://plugins.gradle.org/m2"} } /* 관련 node 정보 */ node { download = false version = "16.14.0" npmVersion = "" yarnVersion = "" npmInstallCommand = "install" npmWorkDir = file("${project.projectDir}/.gradle/npm") yarnWorkDir = file("${proj..
File Upload 방법1 public File upload(MultipartFile file) { File saveFile = new File(file.getOriginalFilename()); saveFile.createNewFile(); FileOutputStream fos = new FileOutputStream(saveFile); fos.write(file.getBytes()); fos.close(); return saveFile; } 방법2 public File upload(MultipartFile file) throws IllegalStateException, IOException { File saveFile = new File(file.getOriginalFilename()); file.transferTo(s..
npm version 의존성 관리 ~: 틸드 ^: 캐럿 그외 >=, ,
[JPA] Entity Map 을 Json 으로 Converter Jpa Entity Column Map을 Json 타입으로 컨버팅하여 넣기 @TypeDef(name = "json", typeClass = JsonType::class) // Entity class 상단에 설정 @Type(type = "json") // column 설정 참고사이트 https://blog.leocat.kr/notes/2020/09/01/hibernate-mapping-json-type-to-java-map [Hibernate] Java Map 으로 json 타입 매핑하기 간혹 entity에 json 필드를 넣어야 할 때가 있다. child가 없는 1차원의 데이터라면 Java Map으로 사용하면 편하기 때문에 Map으로 변환하고 싶을 때는 이렇게 하면 된다. blog.leocat.kr
npm private repository 배포 자주사용하는 관련 명령어 npm whoami npm logout npm config set _auth @@@ npm config set always-auth true npm publish install npm -registry http://nexusrepo.넥서스url/repository/npm-repository-private/login npm -registry http://nexusrepo.넥서스url/repository/npm-repository-group/ install 1. 로그인 npm login -registry=http://nexusrepo.넥서스url/repository/npm-repository-private/ 2. 1번 혹은 .npmrc 에 repository와 token설정 _aut..
Node 명령어 참고 사이트 : https://heropy.blog/2018/02/18/node-js-npm/ 처음 시작하는 Node.js 개발 - 2 - npm npm(Node Package Manager)은 JavaScript 및 세계 최대의 소프트웨어 레지스트리 패키지 관리자로 Node.js를 설치하면 같이 설치되어 사용할 수 ... heropy.blog 유의적 버전(Semver) 의존성 모듈의 버전을 너무 엄격하거나 느슨하지 않게 관리하기 위해서 npm에서는 Semver(Semantic Versioning)를 지원합니다. 우선 버전을 1.0.0과 같이 X.Y.Z(Major.Minor.Patch) 형식으로 정합니다. API에 호환되지 않는 변경이라면 Major 버전을 올리고, API가 호환되면서 바꾸거나 추가하는 ..
window nexus download download site : https://help.sonatype.com/repomanager2/download Download Nexus Repository OSS is distributed with Sencha Ext JS pursuant to a FLOSS Exception agreed upon between Sonatype, Inc. and Sencha Inc. Sencha Ext JS is licensed under GPL v3 and cannot be redistributed as part of a closed source work. help.sonatype.com 경로 : @/conf 폴더의 nexus.properties 파일 수정 D:\nexus-2.14.20-02-bundle\nexus..