반응형

분류 전체보기 58

Mariadb DB관리

[1].database 관리 1. database 확인 SHOW DATABASES; 2. dabase 생성 CREATE DATABASE 데이터베이스명; 3.아이디 생성 CREATE USER '아이디'@'%' IDENTIFIED BY '비밀번호'; 4.사용자 권한 주기 GRANT ALL PRIVILEGES ON 데이터베이스명.* TO '아이디'@'%'; 5. 새로고침 FLUSH PRIVILEGES; 6. database character 확인 SELECT default_character_set_name, DEFAULT_COLLATION_NAME FROM information_schema.SCHEMATA WHERE schema_name = "mydb"; 7. table character 확인 SELECT C..

ROCKY Mariadb 설치

ROCKY 리눅스 서버에서 mariadb 설치방법을 정리한다. 1.root 접속 MariaDB xxx.xxx 버전이 없으면 저장소 추가한다. vi /etc/yum.repos.d/MariaDB.repo [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/11.3.2/rhel9-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 2.MariaDB 설치하기 yum install -y mariadb-server mariadb 만약 설치 오류가 나면 yum update 3. 서비스 시작 sudo systemctl start mariadb 4. MariaDB 서비스가 정상적으로 시작되었는지 확인..

Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.

Spring boot에서 com.mysql.jdbc.Driver 드라이브를 사용하지 않는데 아래와 같이 로그에서 오류가 발생 하여 처리하는 방법을 정리 해본다. Loading class `cohttp://m.mysql.jdbc.Driver'. This is deprecated. The new driver class is `cohttp://m.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary. 프로젝트/resources 폴더 안에 log4jdbc.log4j2.properties 파일을 작성 한 후 아래 소스 추가..

Spring 2024.03.14

gradle를 이용한 원격서버 배포하기

build.gradle 파일 열어서 아래 소스를 추가한다. 아래 소스는 plugins 위에 작성해야 한다. 그냥 멘 위에 작성. buildscript { repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:2.1.2.RELEASE") classpath("org.hidetake:gradle-ssh-plugin:2.2.0") } } plugin 다음에 아래 소스 추가 apply plugin: 'org.hidetake.ssh' build.gradle 파일 끝부분에 아래 부분 추가 remotes { dev_server { host = "XXX.XXX.XXX.XXX" po..

Spring 2024.03.07

Feign Client 'Could not write request: no suitable HttpMessageConverter found for request type' 오류

Feign Client 개발을 하다가 아래와 같은 오류가 발생하면 'Could not write request: no suitable HttpMessageConverter found for request type' spring-boot-start-web dependency가 없어서 발생하는 에러다 즉, feign client 쓰기 위해서는 spring-boot-start-web 필요하다는 뜻이다. https://stackoverflow.com/questions/67376764/could-not-write-request-no-suitable-httpmessageconverter-found-for-request-type

Spring 2024.02.29

React Native Android SVG 아이콘 깨짐 처리 방법

아래 react native navigator 를 사용중 네비게이션 아이콘을 넣고 싶어 가이드대로 사용했는데. 아이콘이 아래 화면처럼 깨져서 보이는 문제가 있어 처리 방법을 적어 봅니다. https://reactnavigation.org/docs/material-bottom-tab-navigator Material Bottom Tabs Navigator | React Navigation The material-bottom-tabs navigator is moved to react-native-paper. Refer to react-native-paper's documentation instead for installation instructions, usage guide and API reference...

카테고리 없음 2024.02.04

VScode Spring html 자동 빌드 및 변경된 html 크롬 자동변경 설정

VScode에서 Spring 프레임워크 html 수정시 크롬화면에서 실시간적으로 반영 할 수 있게 설정 방법을 정리해 본다. 1. 스프링 dependencies 추가 compileOnly 'org.springframework.boot:spring-boot-devtools' 2. application.propertis 및 application.yml 설정 spring: devtools: livereload: enabled: true restart: enabled: true 3. 크롬 확장 프로그램 설치 https://chromewebstore.google.com/detail/remotelivereload/jlppknnillhjgiengoigajegdpieppei?hl=en-GB RemoteLiveReloa..

카테고리 없음 2023.12.31

VScode Java 자동 정렬 설정하기

VSCode Extensions 클릭하여 Prettier-Code formatter 설정 File > Preferences > Settings > json 검색 후 > settings.json 파일 열어서 아래와 같이 입력 "[java]": { "editor.defaultFormatter": "redhat.java" } { "java.jdt.ls.java.home": "C:\\Program Files\\Java\\jdk-11.0.0.1", "files.autoSave": "afterDelay", "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true, "files.associations": { "*.java": "j..

카테고리 없음 2023.12.31
반응형