►
From YouTube: CN4J STUDIO - MICROPROFILE CONFIG
Description
MicroProfile Config specification allows a common procedure to provide configuration information to applications from various sources. It is a convenient and useful API for not only microservices but also traditional Java EE applications. With Open Liberty runtime, you can use it with existing Java EE applications.
A
B
B
Is
an
API
for
externally
acquiring
the
configuration
information
used
by
the
application.
When
trying
to
get
information,
for
example,?
You
can
write
it
in
a
property,
file,
load
it,
and
get
it
with
an
etet
property,
or
you
can
set
it
as
a
system
property
and
get
it
with
a
property,
or
you
can
get
it
by
accepting
an
environment,
variable.
In.
This
way,.
B
B
B
B
There
are
config
sources
that
are
provided
independently
by
the
runtime.
Then,
in
the
application,.
You
can
also
create
and
use
your
own
custom
config
sources.In.
This
case,
implement
the
config
source,
interface.
If.
You
prepare
this
class
and
describe
it
in
the
welfare
file,.
You
can
use
it
from
your
application.
B
B
B
B
B
B
B
B
B
Also
released
by
Red
Hat,
and
javau's
application,
server,
jbos
and
its
open
source
version,
Wildfly,
are
currently
in
the
form
of
technical
previews..
Configuration
API
can
now
be
used.
On.
This
side,
configuration
information
is
not
written
at
all,
and
basically
only
the
information
used
by
the
application
is
stored.
B
B
B
B
Used
not
only
to
store
the
configuration
of
the
user
application,,
but
also
to
store
the
configuration
of
the
runtime
itself,
depending
on
the
randomness.
For.
That
reason,.
If
you
use
a
very
simple
name
or
something
like
the
package
name
of
the
class,
because
of
the
direction
of
the
runtime
and
the
danger
of
using
it,.
B
B
B
B
B
B
B
If
you
want
to
use
this
comma
as
a
value
instead
of
a
delimiter,
use,
a
backslash
or
backslash
to
escape
it.
Also
get
the
value
from
the
environment.
Variable.
In
this
case,
special
conversion
rules
are
defined
for
names..
This
is
because
there
are
cases
where
periods
cannot
be
used
in
environment
variables
depending
on
the
environment,.
So
names
are
converted,
according
to
certain
rules,
to
search
for
values.,
For
example,.
B
B
B
Will
be
a
function
in
which
the
acquisition
is
performed
again
with
the
configuration
API
and
the
result
is
substituted
here.
For
example,,
when
writing
the
mackerel.
Url
=
http
corona
draw
mark
secured
server,
dot
cost
When,
you
get
a
URL
called
this
server
and
the
server
dot
cost
between
this
dollar
mark
is.