방법 1. appsettings.json 파일에 아래와 같이 Kestrel 설정을 추가 시킨다. "Kestrel": { "Endpoints": { "Http": { "Url": "http://localhost:5000" }, "Https": { "Url": "https://localhost:5001" } } } 방법2. Program.cs 파일에서 직접 주소를 입력한다. await app.RunAsync("http://localhost:5000"); 더 자세한 내용은 아래 마이크로소프트 문서 참고. https://learn.microsoft.com/ko-kr/aspnet/core/fundamentals/servers/kestrel/endpoints?view=aspnetcore-7.0 ASP.NET Cor..
1. IIS Management Console 및 FTP Service 설치 제어판에서 "Apps & Features" 메뉴에 들어가서 "Programs and Features"를 클릭합니다. 좌측에 Turn Windows features on or off 를 클릭 합니다. 아래와같이 FTP service와 IIS Management Console을 선택 후 설치합니다. 2. 새로운 FTP Site 생성하기 IIS Manager 앱을 실행 시킵니다. Sites 에 마우스 우측 버튼을 클릭해서 "Add FTP Site..."를 선택합니다. FTP site 이름을 설정하고 FTP 서버에서 사용할 디렉토리 경로를 설정합니다. No SSL을 선택합니다. 인증방식은 Basic을 체크하고 지정된 사용자 계정(ftp..
ASP.NET 으로 개발 할 때는 WebApplication builder가 해당 파일을 읽어와서 ConfigurationManager 클래스로 접근을 제공해 주기 때문에 보통 따로 json 설정 파일을 구성해서 따로 파일을 읽어온다음 특정 class로 Deserialize해서 사용하지는 않습니다. 하지만, 설정 항목이 몇 개 안되는 경우에는 문제가 없지만 조금 복잡하거나 property수가 많은 경우에는 정의된 class에 맵핑된 instance를 사용하는게 개발할 때 훨씬 편리하죠. 예를들어 설정파일이 아래와같을 때, appsettings.json{ "Logging": { "LogLevel": { "Default": "Information", "Microsoft.AspNetCore": "Warning..
NuGet packge manager에서 NLog.Web.AspNetCore 패키지를 검색해서 설치해줍니다. 검색이 귀찮으면 프로젝트 파일에 직접 써넣습니다. Program.cs 파일에 아래 코드를 추가합니다. using NLog.Web; ... // NLog builder.Logging.ClearProviders(); builder.Logging.SetMinimumLevel(LogLevel.Trace); builder.Host.UseNLog(); ... var app = builder.Build(); 아래와같이 NLog.config 파일을 작성합니다. 이제 ILogger 인터페이스로 쓰여진 모든 log 메세지들도 NLog로 redirect되므로 NLog의 logging 함수들을 사용해도 되고 ILogg..
여러 프로젝트를 진행 하다보면 각 프로젝트별로 서로 다른 DBMS를 사용하게 될 경우가 많은데 해당 프로젝트 DB에 연결하기 위해서 개별 client들을 쓰는게 불편하게 느껴질 때가 있으신 분들에게 꼭 필요한 툴입니다. 아래 사이트에 접속해서 다운로드 받으면 됩니다. https://dbeaver.io/ DBeaver Community | Free Universal Database Tool DBeaver Universal Database Tool Free multi-platform database tool for developers, database administrators, analysts and all people who need to work with databases. Supports all po..
json_array_elements() 함수를 사용하면 json 타입의 컬럼에서 json 내의 배열 property의 값을 행으로 가져올 수 있습니다. with test as (select '{"array": [ "v1", "v2", "v3", "v4", "v5" ]}'::json json) select j.* from test, json_array_elements(json -> 'array') j