Ruby 클래스와 객체지향 프로그래밍
기본 클래스 ruby class Test puts :Test.object_id.to_s def test puts :test.object_id.to_s @test = 10 puts :test.object_id.to_s end end t = Test.new t.test 생성자와 인스턴스...
기본 클래스 ruby class Test puts :Test.object_id.to_s def test puts :test.object_id.to_s @test = 10 puts :test.object_id.to_s end end t = Test.new t.test 생성자와 인스턴스...
조건문 ruby s1 = 'Jonathan' s2 = 'Jonathan' s3 = s1 if s1 == s2 puts 'Both Strings have identical content' else puts 'Both Strings do not have identical content'...
파일 열기와 읽기 ruby File.open'p014constructs.rb', 'r' do |f1| while line = f1.gets puts line end end 파일 쓰기 ruby File.open'test.rb', 'w' do |f2| f2.puts 'Created by...
문자열 ruby 'a' 'a' 'a' + 'b' 'a'b' 'a' 3 => 'aaa' '2'.to_i => 2 문자열을 정수로 '2'.to_f => 2.0 문자열을 실수로 2.to_s => '2' 숫자를 문자열로 'a'.length => 1 .inspect 객체의 구조를 문자열로 변환...
markdown !dss99911https://media2.dev.to/dynamic/image/width=50,height=50,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuplo...
기본 설정 의존성 추가 Spring Security를 사용하려면 의존성만 추가하면 됩니다. 추가하는 것만으로 기본 보안이 활성화됩니다. Maven xml org.springframework.boot spring-boot-starter-security Gradle gradle imple...
!dss99911https://media2.dev.to/dynamic/image/width=50,height=50,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuse...
markdown !dss99911https://media2.dev.to/dynamic/image/width=50,height=50,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuplo...
markdown !dss99911https://media2.dev.to/dynamic/image/width=50,height=50,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuplo...
The problem When working or reading on macOS, I often need to translate: - A piece of text inside an app - Text inside screenshots, images, or PDFs The usual w...
Introduction Spring Boot는 기본적으로 Thymeleaf를 권장하지만, 레거시 프로젝트나 특정 요구사항에 따라 JSP를 사용해야 할 때도 있습니다. 이 글에서는 Spring Boot에서 JSP를 설정하고 활용하는 방법을 알아봅니다. Dependencies Gradle...
Spring Boot Actuator는 운영 중인 애플리케이션의 상태를 모니터링하고 관리하기 위한 기능을 제공합니다. 설정, 메모리, CPU, 환경 변수, Bean 정보 등 다양한 정보를 확인할 수 있습니다. 설정 Gradle gradle implementation 'org.spring...