public LoggingConfiguration(@Value("${spring.application.name}") String appName, @Value("${server.port}") String serverPort,
@Value("${eureka.instance.instanceId}") String instanceId, JHipsterProperties jHipsterProperties) {
this.appName = appName;
this.serverPort = serverPort;
this.instanceId = instanceId;
this.jHipsterProperties = jHipsterProperties;
if (jHipsterProperties.getLogging().getLogstash().isEnabled()) {
addLogstashAppender(context);
// Add context listener
LogbackLoggerContextListener loggerContextListener = new LogbackLoggerContextListener();
loggerContextListener.setContext(context);
context.addListener(loggerContextListener);
}
}
java类org.springframework.beans.factory.annotation.Value的实例源码
LoggingConfiguration.java 文件源码
项目:spring-io
阅读 28
收藏 0
点赞 0
评论 0
HostNameBasedUniqueTicketIdGenerator.java 文件源码
项目:springboot-shiro-cas-mybatis
阅读 22
收藏 0
点赞 0
评论 0
/**
* Instantiates a new Service ticket id generator.
*
* @param maxLength the max length
* @param suffix the suffix
*/
@Autowired
public ServiceTicketIdGenerator(@Value("${st.ticket.maxlength:20}")
final int maxLength,
@Value("${host.name:cas01.example.org}")
final String suffix) {
super(maxLength, suffix);
}
PropertyConstants.java 文件源码
项目:hub-fortify-ssc-integration-service
阅读 25
收藏 0
点赞 0
评论 0
@Value("${hub.fortify.batch.job.status.file.path}")
public void setBatchJobStatusFilePath(String batchJobStatusFilePath) {
this.batchJobStatusFilePath = batchJobStatusFilePath;
}
TrainModuleSpecification.java 文件源码
项目:lemon
阅读 22
收藏 0
点赞 0
评论 0
@Value("${application.database.type}")
public void setType(String type) {
this.type = type;
}
KerberosConfiguration.java 文件源码
项目:ARCLib
阅读 25
收藏 0
点赞 0
评论 0
@Inject
public void setDebug(@Value("${security.kerberos.debug}") Boolean debug) {
this.debug = debug;
}
AuditModuleSpecification.java 文件源码
项目:lemon
阅读 20
收藏 0
点赞 0
评论 0
@Value("${" + MODULE_NAME + ".dbmigrate.enabled}")
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
CasReloadableMessageBundle.java 文件源码
项目:cas-server-4.2.1
阅读 25
收藏 0
点赞 0
评论 0
@Override
@Autowired
public void setDefaultEncoding(@Value("${message.bundle.encoding:UTF-8}")
final String defaultEncoding) {
super.setDefaultEncoding(defaultEncoding);
}
QueryAndEncodeDatabaseAuthenticationHandler.java 文件源码
项目:cas-server-4.2.1
阅读 22
收藏 0
点赞 0
评论 0
/**
* Sets salt field name. Default is {@link #DEFAULT_SALT_FIELD}.
*
* @param saltFieldName the password field name
*/
@Autowired
public final void setSaltFieldName(@Value("${cas.jdbc.authn.query.encode.salt:" + DEFAULT_SALT_FIELD + '}')
final String saltFieldName) {
this.saltFieldName = saltFieldName;
}
PerformanceModuleSpecification.java 文件源码
项目:lemon
阅读 24
收藏 0
点赞 0
评论 0
@Value("${" + MODULE_NAME + ".dbmigrate.enabled}")
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
MailCenter.java 文件源码
项目:ARCLib
阅读 22
收藏 0
点赞 0
评论 0
@Inject
public void setPathTasks(@Value("${mail.app.path.tasks}") String pathTasks) {
this.pathTasks = pathTasks;
}