Java Code Examples for io.github.jhipster.config.JHipsterConstants#SPRING_PROFILE_DEVELOPMENT

The following examples show how to use io.github.jhipster.config.JHipsterConstants#SPRING_PROFILE_DEVELOPMENT . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DatabaseConfiguration.java    From e-commerce-microservice with Apache License 2.0 5 votes vote down vote up
/**
 * Open the TCP port for the H2 database, so it is available remotely.
 *
 * @return the H2 database TCP server
 * @throws SQLException if the server failed to start
 */
@Bean(initMethod = "start", destroyMethod = "stop")
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public Object h2TCPServer() throws SQLException {
    log.debug("Starting H2 database");
    return H2ConfigurationHelper.createServer();
}
 
Example 2
Source File: DatabaseConfiguration.java    From java-microservices-examples with Apache License 2.0 5 votes vote down vote up
/**
 * Open the TCP port for the H2 database, so it is available remotely.
 *
 * @return the H2 database TCP server.
 * @throws SQLException if the server failed to start.
 */
@Bean(initMethod = "start", destroyMethod = "stop")
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public Object h2TCPServer() throws SQLException {
    String port = getValidPortForH2();
    log.debug("H2 database is available on port {}", port);
    return H2ConfigurationHelper.createServer(port);
}
 
Example 3
Source File: DatabaseConfiguration.java    From java-microservices-examples with Apache License 2.0 5 votes vote down vote up
/**
 * Open the TCP port for the H2 database, so it is available remotely.
 *
 * @return the H2 database TCP server.
 * @throws SQLException if the server failed to start.
 */
@Bean(initMethod = "start", destroyMethod = "stop")
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public Object h2TCPServer() throws SQLException {
    String port = getValidPortForH2();
    log.debug("H2 database is available on port {}", port);
    return H2ConfigurationHelper.createServer(port);
}
 
Example 4
Source File: DatabaseConfiguration.java    From okta-jhipster-microservices-oauth-example with Apache License 2.0 5 votes vote down vote up
/**
 * Open the TCP port for the H2 database, so it is available remotely.
 *
 * @return the H2 database TCP server
 * @throws SQLException if the server failed to start
 */
@Bean(initMethod = "start", destroyMethod = "stop")
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public Object h2TCPServer() throws SQLException {
    log.debug("Starting H2 database");
    return H2ConfigurationHelper.createServer();
}
 
Example 5
Source File: LoggingAspectConfiguration.java    From cubeai with Apache License 2.0 4 votes vote down vote up
@Bean
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect(Environment env) {
    return new LoggingAspect(env);
}
 
Example 6
Source File: LoggingAspectConfiguration.java    From okta-jhipster-microservices-oauth-example with Apache License 2.0 4 votes vote down vote up
@Bean
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect(Environment env) {
    return new LoggingAspect(env);
}
 
Example 7
Source File: LoggingAspectConfiguration.java    From TeamDojo with Apache License 2.0 4 votes vote down vote up
@Bean
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect(Environment env) {
    return new LoggingAspect(env);
}
 
Example 8
Source File: LoggingAspectConfiguration.java    From cubeai with Apache License 2.0 4 votes vote down vote up
@Bean
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect(Environment env) {
    return new LoggingAspect(env);
}
 
Example 9
Source File: LoggingAspectConfiguration.java    From cubeai with Apache License 2.0 4 votes vote down vote up
@Bean
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect(Environment env) {
    return new LoggingAspect(env);
}
 
Example 10
Source File: LoggingAspectConfiguration.java    From okta-jhipster-microservices-oauth-example with Apache License 2.0 4 votes vote down vote up
@Bean
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect(Environment env) {
    return new LoggingAspect(env);
}
 
Example 11
Source File: LoggingAspectConfiguration.java    From e-commerce-microservice with Apache License 2.0 4 votes vote down vote up
@Bean
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect(Environment env) {
    return new LoggingAspect(env);
}
 
Example 12
Source File: LoggingAspectConfiguration.java    From cubeai with Apache License 2.0 4 votes vote down vote up
@Bean
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect(Environment env) {
    return new LoggingAspect(env);
}
 
Example 13
Source File: LoggingAspectConfiguration.java    From cubeai with Apache License 2.0 4 votes vote down vote up
@Bean
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect(Environment env) {
    return new LoggingAspect(env);
}
 
Example 14
Source File: LoggingAspectConfiguration.java    From Spring-5.0-Projects with MIT License 4 votes vote down vote up
@Bean
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect(Environment env) {
    return new LoggingAspect(env);
}
 
Example 15
Source File: LoggingAspectConfiguration.java    From cubeai with Apache License 2.0 4 votes vote down vote up
@Bean
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect(Environment env) {
    return new LoggingAspect(env);
}
 
Example 16
Source File: LoggingAspectConfiguration.java    From java-microservices-examples with Apache License 2.0 4 votes vote down vote up
@Bean
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect(Environment env) {
    return new LoggingAspect(env);
}
 
Example 17
Source File: LoggingAspectConfiguration.java    From java-microservices-examples with Apache License 2.0 4 votes vote down vote up
@Bean
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect(Environment env) {
    return new LoggingAspect(env);
}
 
Example 18
Source File: LoggingAspectConfiguration.java    From e-commerce-microservice with Apache License 2.0 4 votes vote down vote up
@Bean
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect(Environment env) {
    return new LoggingAspect(env);
}
 
Example 19
Source File: LoggingAspectConfiguration.java    From alchemy with Apache License 2.0 4 votes vote down vote up
@Bean
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect(Environment env) {
    return new LoggingAspect(env);
}
 
Example 20
Source File: LoggingAspectConfiguration.java    From flair-engine with Apache License 2.0 4 votes vote down vote up
@RefreshScope
@Bean
@Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT)
public LoggingAspect loggingAspect(Environment env) {
    return new LoggingAspect(env);
}