https://pgtune.leopard.in.ua/#/

 

PGTune - calculate configuration for PostgreSQL based on the maximum performance for a given hardware configuration

 

pgtune.leopard.in.ua

 

위 사이트 들어가서 DB Server의 HW 스펙을 기입하면...

요런식으로 나온다...

우측 설정값들을 postgresql.conf 파일에서 찾아 변경해주자..

conf파일은 설치폴더의 data폴더에 있다...

보통 C:\Program Files\PostgreSQL\12\data

변경 후 재시작 하면 적용 완료...

 

이렇게 하면 간단하게 메모리 튜닝을 할수있다.

'PostgreSQL' 카테고리의 다른 글

postgreSQL 튜닝 기초  (0) 2021.10.23
pgAdmin (PostgreSQL Management Tool)  (0) 2021.02.14
PostgreSQL Downloads (DB 다운로드)  (0) 2021.02.14

https://stackoverflow.com/questions/67732330/import-org-webrtc-addiceobserver-cant-find-the-location-error

 

import org.webrtc.AddIceObserver; can't find the location error

Android app to use webrtc and try to import org.webrtc.AddIceObserver; only "import org.webrtc.AddIceObserver;" has the error that can't find the location. is it omitted from API package?...

stackoverflow.com

 

 

====================================내용=====================================

찾아서 지워주자...

//820 라인..

public void addRemoteIceCandidate(final IceCandidate candidate) {
    executor.execute(() -> {
      if (peerConnection != null && !isError) {
        if (queuedRemoteCandidates != null) {
          queuedRemoteCandidates.add(candidate);
        } else {
          peerConnection.addIceCandidate(candidate);
        }
      }
    });
  }
  
  
  //1146 라인..
  
  private void drainCandidates() {
    if (queuedRemoteCandidates != null) {
      Log.d(TAG, "Add " + queuedRemoteCandidates.size() + " remote candidates");
      for (IceCandidate candidate : queuedRemoteCandidates) {
        peerConnection.addIceCandidate(candidate);
      }
      queuedRemoteCandidates = null;
    }
  }

에러 내용

더보기

A problem occurred configuring root project 'KaKaoLogin'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Cannot resolve external dependency com.android.tools.build:gradle:7.0.2 because no repositories are defined.
     Required by:
         project :
   > Cannot resolve external dependency org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30 because no repositories are defined.
     Required by:
         project :

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

에러 내용 번역

더보기

루트 프로젝트 'KaKaoLogin'을 구성하는 중에 문제가 발생했습니다.

> ':classpath' 구성에 대한 모든 아티팩트를 해결할 수 없습니다.

    > 저장소가 정의되지 않았기 때문에 외부 종속성 com.android.tools.build:gradle:7.0.2를 해결할 수 없습니다.

        요구:

            프로젝트 :

        > 정의된 저장소가 없기 때문에 외부 종속성 org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30을 해결할 수 없습니다.

        요구:

            프로젝트 :

 

가능한 해결책:

- 아티팩트를 제공하는 저장소 선언, https://docs.gradle.org/current/userguide/declaring_repositories.html 문서 참조

 

build.gradle (Project) 

...

allprojects {
    repositories {
        maven { url 'https://devrepo.kakao.com/nexus/content/groups/public/' }
    }
}

...

는 이제

 

settings.gradle (Project Settings) 로 옮겼음..

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        jcenter() // Warning: this repository is going to shut down soon
        maven { url 'https://devrepo.kakao.com/nexus/content/groups/public/' }
    }
}
rootProject.name = "KaKaoLogin"
include ':app'

이런식으로 쓰면 된다..

 

 

 

Spring Boot 프로젝트도 생성하고 JDK도 설치하고 DB도 설치했다...

근데 에러가뜬다...

이유는 

 

Description:

기술:


Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
데이터 소스를 구성하지 못했습니다. 'url'속성이 지정되지 않았으며 포함 된 데이터 소스를 구성 할 수 없습니다.


Reason: Failed to determine a suitable driver class

이유 : 적합한 드라이버 클래스를 결정하지 못했습니다.

 

Action:
동작:


Consider the following:

다음을 고려하세요:


If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.

임베디드 데이터베이스 (H2, HSQL 또는 Derby)를 원하면 클래스 경로에 넣으십시오.


If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

특정 프로필에서로드 할 데이터베이스 설정이있는 경우 활성화해야 할 수 있습니다 (현재 활성화 된 프로필 없음).

 

라고한다...(구글 번역)

 

뭐 하여튼... 빨간색이 중요하다.

Spring Boot 추가 설정을 해줘야 하는것..

 

여기 보이는 application.properties에 

DB연결 설정을 해주자.

spring.datasource.hikari.maximum-pool-size=10
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
spring.datasource.username=postgres
spring.datasource.password=1234

오라클이던 mysql이던 구글링하면 나오니 알아서 찾아 써넣자.

 

저장하고 다시 하면 잘된다.

 

인터넷 주소창에 localhost:8080 에 접속 후 요런페이지가 뜨면 완료

 

 

github.com/brettwooldridge/HikariCP

 

brettwooldridge/HikariCP

光 HikariCP・A solid, high-performance, JDBC connection pool at last. - brettwooldridge/HikariCP

github.com

자세한 설정을 원하는 경우 HikariCP를 확인해보자

(커넥션풀에 대해서도 찾아보자...)

 

 

 

DB 관리 툴이다...

아주 가볍고 쓰기 쉽다.

오라클의 SQL Developer라고 보면 된다.

 

설치는 

www.pgadmin.org/

 

pgAdmin - PostgreSQL Tools

News 2021-01-28 - pgAdmin 4 v4.30 Released The pgAdmin Development Team are pleased to announce pgAdmin 4 version 4.30. This release of pgAdmin 4 includes 38 bug fixes and new features. For more details please see the release notes. Notable changes in this

www.pgadmin.org

여기서 다운로드하고 

.exe 파일을 실행하면 된다.

next만 눌러도 쉽게 설치 가능하다.

웹브라우저로 실행한다.

 

password 넣고 OK 누르고...

DB세팅 끝!

'PostgreSQL' 카테고리의 다른 글

postgreSQL 튜닝 기초  (0) 2021.10.23
PostgreSQL 메모리 설정을 쉽게  (0) 2021.10.23
PostgreSQL Downloads (DB 다운로드)  (0) 2021.02.14

 

 

 

관리툴이 아주 가벼운 Postgresql... 공부할때 좋다..

 

다운로드는

www.enterprisedb.com/downloads/postgres-postgresql-downloads

 

Download PostgreSQL Database for Windows, Linux and MacOS & 32-bit or 64-bit Versions | EDB

Download PostgreSQL packages or installers free from EDB. Get PostgreSQL for Windows, Linux and MacOS platforms. Download 32-bit or 64-bit versions. Download open-source PostgreSQL now.

www.enterprisedb.com

여기서 하면된다.

 

다운받은 .exe 파일을 선택후... 잘 보고 설치하면 된다.

 

중간에 password 설정하고...

next 길만 걷는다...

 

제일 마지막에 

 

이것만 체크해제하자...

Finish를 누르면 설치가 완료된다.

 

설치가 잘 되었는지 불안하다면 

SQL Shell에서 확인해보면 된다.

 

'PostgreSQL' 카테고리의 다른 글

postgreSQL 튜닝 기초  (0) 2021.10.23
PostgreSQL 메모리 설정을 쉽게  (0) 2021.10.23
pgAdmin (PostgreSQL Management Tool)  (0) 2021.02.14

 

 

 

첫 실행시

SpringApplication.run(RestfulTesterApplication.class, args);

부분에 에러가 난다면..

 

import를 누르고 실행을 하려는데..

 

JDK가 없는것이다..

쉽게말해 JAVA를 설치 안해놓은것

 

www.oracle.com/java/technologies/javase-downloads.html

오라클 홈페이지에서 다운 받은 후 설치하고 적용시키면 된다.

 

 

적용 방법은...

프로젝트 클릭 후 F12를 누르거나

제일 밑에 보이는 Open Moduel Settings를 누르고

 

SDKs 탭에서 Add JDK 하면 된다.

 

Add JDK를 해도 계속 빨간색으로 에러가 뜨는데..

노란 전구를 클릭해서 Setup JDK 누른 후 1.8 선택하면 된다...

 

실행 성공...

 

 

 

Intellij community 2020.3.2 버전 설치 시

기본 plug in에 Spring Boot를 찾아볼 수 없다.

Spring Boot 없음...

plug in이 없어도 Spring Boot 프로젝트를 생성하는 간단한 방법이 있는데...

start.spring.io/

에서

 

스프링 부트 기본설정

자잘한 설정 후 GENERATE 클릭을 하면 .zip 파일이 다운로드된다.

[Artifact].zip file을 압축 해제 후

 

File -> Open 에서 압축 해제된 프로젝트를 열기만 하면 된다.

우측 하단 import를 누르면 완료.

 

spring boot 세팅 완료

 

 

실행은 이곳에서...

+ Recent posts