You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
@
EnableAutoConfiguration
(
exclude
= {
MetricFilterAutoConfiguration
.
class
,
MetricRepositoryAutoConfiguration
.
class
})
@
EnableConfigurationProperties
({
JHipsterProperties
.
class
,
LiquibaseProperties
.
class
})
public
class
Application
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
Application
.
class
);
@
Inject
private
Environment
env
;
/**
* Initializes sampleJava7.
* <p/>
* Spring profiles can be configured with a program arguments --spring.profiles.active=your-active-profile
* <p/>
* <p>
* You can find more information on how profiles work with JHipster on <a href="http://jhipster.github.io/profiles.html">http://jhipster.github.io/profiles.html</a>.
* </p>
*/
@
PostConstruct
public
void
initApplication
()
throws
IOException
{
if
(
env
.
getActiveProfiles
().
length
==
0
) {
log
.
warn
(
"No Spring profile configured, running with default configuration"
);
}
else
{
log
.
info
(
"Running with Spring profile(s) : {}"
,
Arrays
.
toString
(
env
.
getActiveProfiles
()));