스프링부트 코어 프로퍼티

Jmnote (토론 | 기여)님의 2016년 7월 11일 (월) 13:54 판 (→‎목록)
스프링부트 CORE PROPERTIES
스프링부트 코어 프로퍼티

1 목록

종류 변수 기본값 설명
배너
banner.charset UTF-8 배너 파일 인코딩
banner.location classpath:banner.txt 배너 파일 위치
로깅
logging.config Location of the logging configuration file. For instance `classpath:logback.xml` for Logback
logging.exception-conversion-word  %wEx Conversion word used when logging exceptions.
logging.file Log file name. For instance `myapp.log`
logging.level.* Log levels severity mapping. For instance `logging.level.org.springframework=DEBUG`
logging.path Location of the log file. For instance `/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 Add @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 Enable admin features for the application.
spring.application.admin.jmx-name org.springframework.boot:type=Admin,name=SpringApplication JMX name of the application admin MBean.
ADMIN[2]
spring.application.index Application index.
spring.application.name Application name.
자동설정
spring.autoconfigure.exclude Auto-configuration classes to exclude.
스프링 코어
spring.beaninfo.ignore TRUE Skip search of BeanInfo classes.
스프링 캐시[3]
spring.cache.cache-names Comma-separated list of cache names to create if supported by the underlying cache manager.
spring.cache.ehcache.config The location of the configuration file to use to initialize 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 The location of the configuration file to use to initialize Hazelcast.
spring.cache.infinispan.config The location of the configuration file to use to initialize Infinispan.
spring.cache.jcache.config The location of the configuration file to use to initialize the cache manager.
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 Cache type, auto-detected according to the environment by default.
스프링 설정[4]
spring.config.location Config file locations.
spring.config.name application Config file name.
HAZELCAST[5]
spring.hazelcast.config The location of the configuration file to use to initialize Hazelcast.
JMX
spring.jmx.default-domain JMX 도메인명
spring.jmx.enabled TRUE Expose management beans to the JMX domain.
spring.jmx.server mbeanServer MBeanServer bean name.
이메일[6]
spring.mail.default-encoding UTF-8 Default MimeMessage encoding.
spring.mail.host SMTP server host. For instance `smtp.example.com`
spring.mail.jndi-name Session JNDI name. When set, takes precedence to others mail settings.
spring.mail.password Login password of the SMTP server.
spring.mail.port SMTP server port.
spring.mail.properties.* Additional JavaMail session properties.
spring.mail.protocol smtp Protocol used by the SMTP server.
spring.mail.test-connection FALSE Test that the mail server is available on startup.
spring.mail.username Login user of the SMTP server.
앱설정[7]
spring.main.banner-mode console Mode used to display the banner when the application runs.
spring.main.sources Sources (class name, package name or XML resource location) to include in the ApplicationContext.
spring.main.web-environment Run the application in a web environment (auto-detected by default).
파일인코딩[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 Message bundles encoding.
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 Location of the PID file to write (if ApplicationPidFileWriter is used).
프로파일
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 account password
spring.sendgrid.proxy.host SendGrid proxy host
spring.sendgrid.proxy.port SendGrid proxy port
spring.sendgrid.username SendGrid account username

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 }}