Computer Science
-
Mac 터미널 java version 임시 변경Computer Science/Java 2022. 11. 10. 00:43
java -version으로 현재 version을 확인해보면 17이다. java -version openjdk version "17.0.3" 2022-04-19 LTS OpenJDK Runtime Environment Corretto-17.0.3.6.1 (build 17.0.3+6-LTS) OpenJDK 64-Bit Server VM Corretto-17.0.3.6.1 (build 17.0.3+6-LTS, mixed mode, sharing) 변경을 하기전 /usr/libexec/java_home -V 명령어로 우선 내가 가지고 있는 jdk 목록을 확인해보자. /usr/libexec/java_home -V Matching Java Virtual Machines (2): 17.0.3 (x86_64) "Am..
-
Ngrinder를 이용하여 서버 스트레스 테스트Computer Science 2022. 11. 10. 00:35
https://github.com/naver/ngrinder GitHub - naver/ngrinder: enterprise level performance testing solution enterprise level performance testing solution. Contribute to naver/ngrinder development by creating an account on GitHub. github.com ngrinder는 네이버에서 오픈소스로 제공하는 스트레스 테스트이다. ngrinder는 크게 2가지로 구성이 되어있는데, controller와 agent이다. agent로 테스트를 진행하며 agent여러개를 관리하여 결과 등을 확인 할 수 있는것이 controller이다. 우선 cont..
-
React props로 내려가지 않는 요소들Computer Science/React 2022. 11. 9. 14:01
https://reactjs.org/warnings/special-props.html Special Props Warning – React A JavaScript library for building user interfaces reactjs.org https://stackoverflow.com/questions/42261505/getting-error-message-li-key-is-not-a-prop Getting error message "li: 'key' is not a prop" I'm working with React (version 15.4.2), and I'm populating a dynamically with query results from my database. I thought t..
-
서버와 로컬간 파일 업 다운로드 ( scp )Computer Science/Linux 2022. 11. 9. 13:55
모든 명령어는 Local에서 실행한다고 생각한다. 서버 -> 로컬로 파일을 다운 받을 때 (file) scp user@000.0.0.0:/server/file c:\local\file (folder) scp -r user@000.0.0.0:/server/file c:\local\file 로컬 -> 서버로 파일을 다운 받을 때 위 경로만 반대로 진행하면 된다. ex) scp -i ***-***-***.pem ec2-user@*.**.**.***:/home/app/***.log ./
-
Storybook 기본 background 변경하기.Computer Science/React 2022. 10. 22. 20:36
https://storybook.js.org/docs/react/essentials/backgrounds Backgrounds Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and documentation. It’s open source and free. storybook.js.org .storybook/preview.js에 parameters에서 backgrounds 값을 추가해준다. 해당 값에서 default 값과 background로 사용할 기본 색들을 추가할 수 있다. export const par..
-
Storybook github, Netlify 로 배포하기.Computer Science/React 2022. 10. 22. 20:22
https://app.netlify.com/ Netlify App app.netlify.com netfliy는 정적 웹사이트를 무료로 배포해주는 곳이다. github에 storybook이 적용된 react 프로젝트가 있다고 가정하고 진행한다. github repository에서 프로젝트를 Import한다. repsitory를 선택하였다면 site setting 과 basic build setting 란이 뜬다. site setting은 변화를 감지할 branch를 선택해주면되고 basic build setting 에서 build command 를 npm run build-storybook publish directory 를 storybook-static 으로 입력해준다. build-storybook을 ..
-
Spring boot Entity test codeComputer Science/Spring boot 2022. 10. 7. 01:19
@NoArgsConstructor @Entity @Getter @Table(name = "lof_user") @TypeDef(name = "json", typeClass = JsonStringType.class) public class UserEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "id") private Long userId; @NotNull @Column(name = "token") private String fcmToken; @NotNull @Column(name = "email") private String email; @NotNull @Column(name = "nickname") privat..
-
Spring boot DB 한글 깨짐 현상Computer Science/Spring boot 2022. 10. 6. 23:45
spring: config: activate: on-profile: localDB jpa: hibernate: ddl-auto: create-drop datasource: url: jdbc:mariadb://localhost:3306/lof?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC username: root password: 1234 ?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC 위처럼 utf8을 사용한다는 것을 추가해주면 된다. 뒤의 serverTimezone은 안전을 위해 넣어주면 좋다.(UTC로 통일)