"스프링부트 코어 프로퍼티"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-==참고 자료== +==참고==))
 
(다른 사용자 한 명의 중간 판 12개는 보이지 않습니다)
4번째 줄: 4번째 줄:
==목록==
==목록==
{| class='wikitable'
{| class='wikitable'
! 종류 !! 변수 !! 기본값 !! 설명
! 변수 !! 기본값 !! 설명
|-
|-
|rowspan='2'| 배너
!colspan='3'| 배너
| <code>banner.charset</code> || UTF-8 || Banner file encoding.
|-
|-
| <code>banner.location</code> || classpath:banner.txt || Banner file location.
| banner.charset || <code>UTF-8</code> || 배너 파일 인코딩
|-
|-
|rowspan='9'| 로깅 || <code>logging.config</code> || || Location of the logging configuration file. For instance `classpath:logback.xml` for Logback
| banner.location || <code>classpath:banner.txt</code> || 배너 파일 위치
|-
|-
| <code>logging.exception-conversion-word</code> ||  %wEx || Conversion word used when logging exceptions.
!colspan='3'| 로깅
|-
|-
| <code>logging.file</code> ||  || Log file name. For instance `myapp.log`
| logging.config ||  || 로깅설정파일 위치. 예: 로그백 `classpath:logback.xml`
|-
|-
| <code>logging.level.*</code> || || Log levels severity mapping. For instance `logging.level.org.springframework=DEBUG`
| logging.exception-conversion-word || <code>%wEx</code> || 로깅 예외발생시 사용할 대체어
|-
|-
| <code>logging.path</code> ||  || Location of the log file. For instance `/var/log`
| logging.file ||  || 로그파일명. 예: `myapp.log`
|-
|-
| <code>logging.pattern.console</code> ||  || Appender pattern for output to the console. Only supported with the default logback setup.
| logging.level.* ||  || 로그 레벨 심각도 매핑. 예: `logging.level.org.springframework=DEBUG`
|-
|-
| <code>logging.pattern.file</code> ||  || Appender pattern for output to the file. Only supported with the default logback setup.
| logging.path ||  || 로그 파일 위치. 예: `/var/log`
|-
|-
| <code>logging.pattern.level</code> ||  || Appender pattern for log level (default %5p). Only supported with the default logback setup.
| logging.pattern.console ||  || Appender pattern for output to the console. Only supported with the default logback setup.
|-
|-
| <code>logging.register-shutdown-hook</code> || FALSE || Register a shutdown hook for the logging system when it is initialized.
| logging.pattern.file || || Appender pattern for output to the file. Only supported with the default logback setup.
|-
|-
|rowspan='2'| AOP || <code>spring.aop.auto</code> || TRUE || Add @EnableAspectJAutoProxy.
| logging.pattern.level || || Appender pattern for log level (default %5p). Only supported with the default logback setup.
|-
|-
| <code>spring.aop.proxy-target-class</code> || FALSE || Whether subclass-based (CGLIB) proxies are to be created (true) as opposed to standard Java interface-based proxies (false).
| logging.register-shutdown-hook || <code>false</code> || Register a shutdown hook for the logging system when it is initialized.
|-
|-
| IDENTITY<ref>ContextIdApplicationContextInitializer</ref> || <code>spring.application.admin.enabled</code> || FALSE || Enable admin features for the application.
!colspan='3'| AOP
|-
|-
| IDENTITY || <code>spring.application.admin.jmx-name</code> || org.springframework.boot:type=Admin,name=SpringApplication || JMX name of the application admin MBean.
| spring.aop.auto ||<code>true</code> || [[@EnableAspectJAutoProxy]] 추가
|-
|-
| ADMIN<ref>SpringApplicationAdminJmxAutoConfiguration</ref> || <code>spring.application.index</code> || || Application index.
| spring.aop.proxy-target-class || <code>false</code> || Whether subclass-based (CGLIB) proxies are to be created (true) as opposed to standard Java interface-based proxies (false).
|-
|-
| ADMIN || <code>spring.application.name</code> ||  || Application name.
!colspan='3'| IDENTITY<ref>ContextIdApplicationContextInitializer</ref>
|-
|-
| 자동설정 || <code>spring.autoconfigure.exclude</code> || || Auto-configuration classes to exclude.
| spring.application.admin.enabled || <code>false</code> || 애플리케이션에 대한 admin 기능 활성화
|-
|-
| 스프링 코어 || <code>spring.beaninfo.ignore</code> || TRUE || Skip search of BeanInfo classes.
| spring.application.admin.jmx-name || <code>org.springframework.boot:type=Admin,name=SpringApplication</code> || JMX name of the application admin MBean.
|-
|-
|rowspan='8'| 스프링 캐시<ref>CacheProperties</ref> || <code>spring.cache.cache-names</code> ||  || Comma-separated list of cache names to create if supported by the underlying cache manager.
!colspan='3'| ADMIN<ref>SpringApplicationAdminJmxAutoConfiguration</ref>
|-
|-
| <code>spring.cache.ehcache.config</code> ||  || The location of the configuration file to use to initialize EhCache.
| spring.application.index ||  || 애플리케이션 인덱스
|-
|-
| <code>spring.cache.guava.spec</code> ||  || The spec to use to create caches. Check CacheBuilderSpec for more details on the spec format.
| spring.application.name ||  || 애플리케이션 이름
|-
|-
| <code>spring.cache.hazelcast.config</code> ||  || The location of the configuration file to use to initialize Hazelcast.
!colspan='3'| 자동설정
|-
|-
| <code>spring.cache.infinispan.config</code> ||  || The location of the configuration file to use to initialize Infinispan.
| spring.autoconfigure.exclude ||  || 제외할 자동설정 클래스들
|-
|-
| <code>spring.cache.jcache.config</code> ||  || The location of the configuration file to use to initialize the cache manager.
!colspan='3'| 스프링 코어
|-
|-
| <code>spring.cache.jcache.provider</code> || || Fully qualified name of the CachingProvider implementation to use to retrieve the JSR-107 compliant cache manager. Only needed if more than one JSR-107 implementation is available on the classpath.
| spring.beaninfo.ignore || <code>true</code> || BeanInfo 클래스 탐색 생략(skip)
|-
|-
| <code>spring.cache.type</code> ||  || Cache type, auto-detected according to the environment by default.
!colspan='3'| 스프링 캐시<ref>CacheProperties</ref>
|-
|-
|rowspan='2'| 스프링 설정<ref>ConfigFileApplicationListener</ref> || <code>spring.config.location</code> ||  || Config file locations.
| spring.cache.cache-names ||  || (캐시 매니저 지원시) 콤마로 구분된 캐시명 목록
|-
|-
| <code>spring.config.name</code> || application || Config file name.
| spring.cache.ehcache.config || || EhCache 초기화 설정파일 위치
|-
|-
| HAZELCAST<ref>HazelcastProperties</ref> || <code>spring.hazelcast.config</code> ||  || The location of the configuration file to use to initialize Hazelcast.
| spring.cache.guava.spec ||  || The spec to use to create caches. Check CacheBuilderSpec for more details on the spec format.
|-
|-
| JMX || <code>spring.jmx.default-domain</code> ||  || JMX domain name.
| spring.cache.hazelcast.config ||  || Hazelcast 초기화 설정파일 위치
|-
|-
| JMX || <code>spring.jmx.enabled</code> || TRUE || Expose management beans to the JMX domain.
| spring.cache.infinispan.config || || Infinispan 초기화 설정파일 위치
|-
|-
| JMX || <code>spring.jmx.server</code> || mbeanServer || MBeanServer bean name.
| spring.cache.jcache.config || || 캐시 매니저 초기화 설정파일 위치
|-
|-
|rowspan='9'| 이메일<ref>MailProperties</ref> || <code>spring.mail.default-encoding</code> || UTF-8 || Default MimeMessage encoding.
| spring.cache.jcache.provider || || Fully qualified name of the CachingProvider implementation to use to retrieve the JSR-107 compliant cache manager. Only needed if more than one JSR-107 implementation is available on the classpath.
|-
|-
| <code>spring.mail.host</code> ||  || SMTP server host. For instance `smtp.example.com`
| spring.cache.type ||  || 캐시 유형, 기본적으로 환경에 따라 자동탐지됨
|-
|-
| <code>spring.mail.jndi-name</code> ||  || Session JNDI name. When set, takes precedence to others mail settings.
!colspan='3'| 스프링 설정<ref>ConfigFileApplicationListener</ref>
|-
|-
| <code>spring.mail.password</code> ||  || Login password of the SMTP server.
| spring.config.location ||  || 설정파일 위치
|-
|-
| <code>spring.mail.port</code> || || SMTP server port.
| spring.config.name || <code>application</code> || 설정파일 이름
|-
|-
| <code>spring.mail.properties.*</code> ||  || Additional JavaMail session properties.
!colspan='3'| HAZELCAST<ref>HazelcastProperties</ref>
|-
|-
| <code>spring.mail.protocol</code> || smtp || Protocol used by the SMTP server.
| spring.hazelcast.config || || Hazelcast 초기화에 사용할 설정파일 위치
|-
|-
| <code>spring.mail.test-connection</code> || FALSE || Test that the mail server is available on startup.
!colspan='3'| JMX
|-
|-
| <code>spring.mail.username</code> ||  || Login user of the SMTP server.
| spring.jmx.default-domain ||  || JMX 도메인명
|-
|-
|rowspan='3'| 앱설정<ref>SpringApplication</ref> || <code>spring.main.banner-mode</code> || console || Mode used to display the banner when the application runs.
| spring.jmx.enabled || <code>true</code> || Expose management beans to the JMX domain.
|-
|-
| <code>spring.main.sources</code> || || Sources (class name, package name or XML resource location) to include in the ApplicationContext.
| spring.jmx.server || <code>mbeanServer</code> || MBeanServer bean 이름
|-
|-
| <code>spring.main.web-environment</code> ||  || Run the application in a web environment (auto-detected by default).
!colspan='3'| 이메일<ref>MailProperties</ref>
|-
|-
| 파일인코딩<ref>FileEncodingApplicationListener</ref> || <code>spring.mandatory-file-encoding</code> || || Expected character encoding the application must use.
| spring.mail.default-encoding || <code>UTF-8</code> || 기본 MimeMessage 인코딩
|-
|-
|rowspan='4'| 국제화<ref>MessageSourceAutoConfiguration</ref> || <code>spring.messages.basename</code> || messages || Comma-separated list of basenames, each following the ResourceBundle convention.
| spring.mail.host || || SMTP 서버 호스트. 예: `smtp.example.com`
|-
|-
| <code>spring.messages.cache-seconds</code> || -1 || Loaded resource bundle files cache expiration, in seconds. When set to -1, bundles are cached forever.
| spring.mail.jndi-name || || 세션 JNDI 이름. 설정되면 다른 메일 설정보다 우선함
|-
|-
| <code>spring.messages.encoding</code> || UTF-8 || Message bundles encoding.
| spring.mail.password || || SMTP 서버 로그인 패스워드
|-
|-
| <code>spring.messages.fallback-to-system-locale</code> || TRUE || Set whether to fall back to the system Locale if no files for a specific Locale have been found.
| spring.mail.port || || SMTP 서버 포트
|-
|-
| 출력 || <code>spring.output.ansi.enabled</code> || detect || Configure the ANSI output (can be "detect", "always", "never").
| spring.mail.properties.* || || 추가적인 JavaMail 세션 프로퍼티
|-
|-
|rowspan='2'| PID파일<ref>ApplicationPidFileWriter</ref> || <code>spring.pid.fail-on-write-error</code> || || Fail if ApplicationPidFileWriter is used but it cannot write the PID file.
| spring.mail.protocol || <code>smtp</code> || STMP 서버가 사용하는 프로토콜
|-
|-
| <code>spring.pid.file</code> || || Location of the PID file to write (if ApplicationPidFileWriter is used).
| spring.mail.test-connection || <code>false</code> || 시작시 메일 서버 가용한지 테스트 여부
|-
|-
|rowspan='2'| 프로파일 || <code>spring.profiles.active</code> ||  || Comma-separated list of active profiles.
| spring.mail.username ||  || SMTP 서버 로그인 사용자명
|-
|-
| <code>spring.profiles.include</code> ||  || Unconditionally activate the specified comma separated profiles.
!colspan='3'| 앱설정<ref>SpringApplication</ref>
|-
|-
|rowspan='4'| SENDGRID<ref>SendGridAutoConfiguration</ref> || <code>spring.sendgrid.password</code> || || SendGrid account password
| [[spring.main.banner-mode]] || <code>console</code> || 앱구동시 배너 출력 모드
|-
|-
| <code>spring.sendgrid.proxy.host</code> ||  || SendGrid proxy host
| spring.main.sources ||  || Sources (class name, package name or XML resource location) to include in the ApplicationContext.
|-
|-
| <code>spring.sendgrid.proxy.port</code> ||  || SendGrid proxy port
| spring.main.web-environment ||  || 웹 환경에서 애플리케이션 실행 (기본적으로 자동탐지됨)
|-
|-
| <code>spring.sendgrid.username</code> ||  || SendGrid account username
!colspan='3'| 파일인코딩<ref>FileEncodingApplicationListener</ref>
|-
| spring.mandatory-file-encoding ||  || Expected character encoding the application must use.
|-
!colspan='3'| 국제화<ref>MessageSourceAutoConfiguration</ref>
|-
| spring.messages.basename || <code>messages</code> || Comma-separated list of basenames, each following the ResourceBundle convention.
|-
| spring.messages.cache-seconds || <code>-1</code> || Loaded resource bundle files cache expiration, in seconds. When set to -1, bundles are cached forever.
|-
| spring.messages.encoding || <code>UTF-8</code> || 메시지 번들 인코딩
|-
| spring.messages.fallback-to-system-locale || <code>true</code> || Set whether to fall back to the system Locale if no files for a specific Locale have been found.
|-
!colspan='3'| 출력
|-
| spring.output.ansi.enabled || <code>detect</code> || Configure the ANSI output (can be "detect", "always", "never").
|-
!colspan='3'| PID파일<ref>ApplicationPidFileWriter</ref>
|-
| spring.pid.fail-on-write-error ||  || Fail if ApplicationPidFileWriter is used but it cannot write the PID file.
|-
| spring.pid.file ||  || PID파일을 작성할 위치 (ApplicationPidFileWriter 사용시)
|-
!colspan='3'| 프로파일
|-
| spring.profiles.active ||  || Comma-separated list of active profiles.
|-
| spring.profiles.include ||  || Unconditionally activate the specified comma separated profiles.
|-
!colspan='3'| SENDGRID<ref>SendGridAutoConfiguration</ref>
|-
| spring.sendgrid.password ||  || SendGrid 계정 패스워드
|-
| spring.sendgrid.proxy.host ||  || SendGrid 프록시 호스트
|-
| spring.sendgrid.proxy.port ||  || SendGrid 프록시 포트
|-
| spring.sendgrid.username ||  || SendGrid 계정 사용자명
|}
|}


133번째 줄: 170번째 줄:
*[[스프링부트 액츄에이터 프로퍼티]]
*[[스프링부트 액츄에이터 프로퍼티]]
*[[스프링부트 데브툴스 프로퍼티]]
*[[스프링부트 데브툴스 프로퍼티]]
*[[스프링부트 일반 애플리케이션 프로퍼티]]
*[[스프링부트 프로퍼티]]
*[[application.properties]]
*[[application.properties]]


==참고 자료==
==참고==
* https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
* https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
[[분류: Spring]]
[[분류: Spring]]

2017년 7월 18일 (화) 04:16 기준 최신판

스프링부트 CORE PROPERTIES
스프링부트 코어 프로퍼티

1 목록[ | ]

변수 기본값 설명
배너
banner.charset UTF-8 배너 파일 인코딩
banner.location classpath:banner.txt 배너 파일 위치
로깅
logging.config 로깅설정파일 위치. 예: 로그백 `classpath:logback.xml`
logging.exception-conversion-word %wEx 로깅 예외발생시 사용할 대체어
logging.file 로그파일명. 예: `myapp.log`
logging.level.* 로그 레벨 심각도 매핑. 예: `logging.level.org.springframework=DEBUG`
logging.path 로그 파일 위치. 예: `/var/log`
logging.pattern.console Appender pattern for output to the console. Only supported with the default logback setup.
logging.pattern.file Appender pattern for output to the file. Only supported with the default logback setup.
logging.pattern.level Appender pattern for log level (default %5p). Only supported with the default logback setup.
logging.register-shutdown-hook false Register a shutdown hook for the logging system when it is initialized.
AOP
spring.aop.auto true @EnableAspectJAutoProxy 추가
spring.aop.proxy-target-class false Whether subclass-based (CGLIB) proxies are to be created (true) as opposed to standard Java interface-based proxies (false).
IDENTITY[1]
spring.application.admin.enabled false 애플리케이션에 대한 admin 기능 활성화
spring.application.admin.jmx-name org.springframework.boot:type=Admin,name=SpringApplication JMX name of the application admin MBean.
ADMIN[2]
spring.application.index 애플리케이션 인덱스
spring.application.name 애플리케이션 이름
자동설정
spring.autoconfigure.exclude 제외할 자동설정 클래스들
스프링 코어
spring.beaninfo.ignore true BeanInfo 클래스 탐색 생략(skip)
스프링 캐시[3]
spring.cache.cache-names (캐시 매니저 지원시) 콤마로 구분된 캐시명 목록
spring.cache.ehcache.config EhCache 초기화 설정파일 위치
spring.cache.guava.spec The spec to use to create caches. Check CacheBuilderSpec for more details on the spec format.
spring.cache.hazelcast.config Hazelcast 초기화 설정파일 위치
spring.cache.infinispan.config Infinispan 초기화 설정파일 위치
spring.cache.jcache.config 캐시 매니저 초기화 설정파일 위치
spring.cache.jcache.provider Fully qualified name of the CachingProvider implementation to use to retrieve the JSR-107 compliant cache manager. Only needed if more than one JSR-107 implementation is available on the classpath.
spring.cache.type 캐시 유형, 기본적으로 환경에 따라 자동탐지됨
스프링 설정[4]
spring.config.location 설정파일 위치
spring.config.name application 설정파일 이름
HAZELCAST[5]
spring.hazelcast.config Hazelcast 초기화에 사용할 설정파일 위치
JMX
spring.jmx.default-domain JMX 도메인명
spring.jmx.enabled true Expose management beans to the JMX domain.
spring.jmx.server mbeanServer MBeanServer bean 이름
이메일[6]
spring.mail.default-encoding UTF-8 기본 MimeMessage 인코딩
spring.mail.host SMTP 서버 호스트. 예: `smtp.example.com`
spring.mail.jndi-name 세션 JNDI 이름. 설정되면 다른 메일 설정보다 우선함
spring.mail.password SMTP 서버 로그인 패스워드
spring.mail.port SMTP 서버 포트
spring.mail.properties.* 추가적인 JavaMail 세션 프로퍼티
spring.mail.protocol smtp STMP 서버가 사용하는 프로토콜
spring.mail.test-connection false 시작시 메일 서버 가용한지 테스트 여부
spring.mail.username SMTP 서버 로그인 사용자명
앱설정[7]
spring.main.banner-mode console 앱구동시 배너 출력 모드
spring.main.sources Sources (class name, package name or XML resource location) to include in the ApplicationContext.
spring.main.web-environment 웹 환경에서 애플리케이션 실행 (기본적으로 자동탐지됨)
파일인코딩[8]
spring.mandatory-file-encoding Expected character encoding the application must use.
국제화[9]
spring.messages.basename messages Comma-separated list of basenames, each following the ResourceBundle convention.
spring.messages.cache-seconds -1 Loaded resource bundle files cache expiration, in seconds. When set to -1, bundles are cached forever.
spring.messages.encoding UTF-8 메시지 번들 인코딩
spring.messages.fallback-to-system-locale true Set whether to fall back to the system Locale if no files for a specific Locale have been found.
출력
spring.output.ansi.enabled detect Configure the ANSI output (can be "detect", "always", "never").
PID파일[10]
spring.pid.fail-on-write-error Fail if ApplicationPidFileWriter is used but it cannot write the PID file.
spring.pid.file PID파일을 작성할 위치 (ApplicationPidFileWriter 사용시)
프로파일
spring.profiles.active Comma-separated list of active profiles.
spring.profiles.include Unconditionally activate the specified comma separated profiles.
SENDGRID[11]
spring.sendgrid.password SendGrid 계정 패스워드
spring.sendgrid.proxy.host SendGrid 프록시 호스트
spring.sendgrid.proxy.port SendGrid 프록시 포트
spring.sendgrid.username SendGrid 계정 사용자명

2 같이 보기[ | ]

3 참고[ | ]

  1. ContextIdApplicationContextInitializer
  2. SpringApplicationAdminJmxAutoConfiguration
  3. CacheProperties
  4. ConfigFileApplicationListener
  5. HazelcastProperties
  6. MailProperties
  7. SpringApplication
  8. FileEncodingApplicationListener
  9. MessageSourceAutoConfiguration
  10. ApplicationPidFileWriter
  11. SendGridAutoConfiguration
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}