Daniel-Dos commented on a change in pull request #431: Add mp-confi-example 
translate to portuguese
URL: https://github.com/apache/tomee/pull/431#discussion_r261871379
 
 

 ##########
 File path: examples/mp-config-example/README_pt.adoc
 ##########
 @@ -0,0 +1,71 @@
+= MicroProfile Config
+:index-group: MicroProfile
+:jbake-type: page
+:jbake-status: published
+
+Este é um examplo de como usar o microprofile config no TomEE.
+
+== Rodando a aplicação:
+
+[source,bash]
+----
+mvn clean install tomee:run 
+----
+
+== API
+
+Na aplicação, tem 3 formas de injetar valores usando config 
+
+1 . Para o ConfigProperty com valor padrão chamar:
+
+----
+GET http://localhost:8080/mp-config-example/sample/defaultProperty
+----
+
+2 . Para pegar propriedade injetada com ConfigProperty chamar:
+
+----
+GET http://localhost:8080/mp-config-example/sample/injectedJavaVersion
+----
+
+3 . Para pegar a propriedade do Config com getValue chamar:
+
+----
+GET http://localhost:8080/mp-config-example/sample/javaVersion
+----
+
+== Características de Config
+
+
+MicroProfile Confi é uma solução para externalizar configurações de 
microsserviços.
 
 Review comment:
   small fix - "Confi" to "Config"

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to