GithubHelp home page GithubHelp logo

microsoft / azure-spring-cloud-training Goto Github PK

View Code? Open in Web Editor NEW
418.0 34.0 280.0 9.46 MB

Guides and tutorials to make the most out of Azure Spring Apps

License: MIT License

Java 86.74% JavaScript 1.63% HTML 3.54% Vue 7.58% Smalltalk 0.51%
java spring-boot-microservice spring-cloud azure microservices

azure-spring-cloud-training's Introduction

page_type languages
sample
java

Azure Spring Apps training

You will find here a full workshop on Azure Spring Apps, including guides and demos. You can run this workshop with the monthly free grant from Azure Spring Apps. Learn More

This lab is open-source, and under the MIT license. All Contributions are more then welcome! Learn more at contribution guidelines.

What you should expect

This is not the official documentation but an opinionated training.

It is a hands-on training, and it will use the command line extensively. The idea is to get coding very quickly and play with the platform, from a simple demo to far more complex examples.

After completing all the guides, you should have a fairly good understanding of everything that Azure Spring Apps offers.

Symbols

๐Ÿ›‘ - Manual Modification Required. When this symbol appears in front of one or more commands, you will need to modify the commands as indicated prior to running them.

๐Ÿšง - Preview-specific. This symbol indicates steps that are only necessary while Azure Spring Apps is in preview.

๐Ÿ’ก - Frustration Avoidance Tip. These will help you avoid potential pitfalls.

Prerequisites and environment setup.

Basics on creating a cluster and configuring the CLI to work efficiently.

Build the simplest possible Spring Boot microservice using the Spring Initializr.

Access Spring Boot applications logs to understand common issues.

Configure a Spring Cloud Config Server, that will be entirely managed and supported by Azure Spring Apps, to be used by Spring Boot microservices.

Build a Spring Boot microservice that is cloud-enabled: it uses a Spring Cloud Service Registry and a Spring Cloud Config Server which are both managed and supported by Azure Spring Apps.

Build a reactive Spring Boot microservice, that uses the Spring reactive stack and is bound to a Cosmos DB database in order to access a globally-distributed database with optimum performance.

Build a classical Spring Boot application that uses JPA to access a MySQL database managed by Azure.

Build a Spring Cloud Gateway to route HTTP requests to the correct Spring Boot microservices.

Use a front-end to access graphically our complete microservice stack. Monitor our services with Azure Spring Apps's distributed tracing mechanism and scale our services depending on our needs.

Deploy new versions of applications in a staging environment and switch between staging and production with Azure Spring Apps.

Configure a Continuous Integration / Continuous Deployment platform using GitHub Actions, so our Spring Boot microservices are automatically deployed.

Creating a microservice that talks to other microservices.


Legal Notices

Microsoft and any contributors grant you a license to the Microsoft documentation and other content in this repository under the Creative Commons Attribution 4.0 International Public License, see the LICENSE file, and grant you a license to any code in the repository under the MIT License, see the LICENSE-CODE file.

Microsoft, Windows, Microsoft Azure and/or other Microsoft products and services referenced in the documentation may be either trademarks or registered trademarks of Microsoft in the United States and/or other countries. The licenses for this project do not grant you rights to use any Microsoft names, logos, or trademarks. Microsoft's general trademark guidelines can be found at http://go.microsoft.com/fwlink/?LinkID=254653.

Privacy information can be found at https://privacy.microsoft.com/en-us/

Microsoft and any contributors reserve all other rights, whether under their respective copyrights, patents, or trademarks, whether by implication, estoppel or otherwise.

azure-spring-cloud-training's People

Contributors

brunoborges avatar clementdessoude avatar dependabot[bot] avatar edburns avatar gkgaurav31 avatar jdubois avatar kevinhillinger avatar lgdoor avatar lgueye avatar microsoftopensource avatar mkheck avatar mnriem avatar msftgits avatar pamir avatar renato-marciano avatar ropreddy avatar roryp avatar sadigopu avatar sandraahlgrimm avatar seanli1988 avatar selvasingh avatar vaijanathb avatar vcharmcaster avatar vphilipnyc avatar xinyiz1226 avatar yevster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

azure-spring-cloud-training's Issues

401Unauthorized when trying to access the properties endpoint

Hi,

If I try to access the properties with a get request like the one below I get 401 Unauthorized.

https://<myapp>.svc.azuremicroservices.io/config/application/default

I am wondering what credentials should I use.

My target is to fetch the logback.xml from the config server. Do you know if is it possible?

https://.svc.azuremicroservices.io/config/application/default/master/logback.xml

Thank you in advance.

Step 06 - use *.java instead of mentioning class

Ref https://github.com/microsoft/azure-spring-cloud-training/tree/master/06-build-a-reactive-spring-boot-microservice-using-cosmosdb#add-spring-reactive-code-to-get-the-data-from-the-database

Change โ€œNext to the DemoApplication class, create a City domain objectโ€ to โ€œNext to the DemoApplication.java file, create the City.java file with the following content:โ€
Similarly change โ€œThen, in the same location, create a new CityController.java that will be used to query the database.โ€

Azure Spring Cloud public roadmap

Hi team,
Thank you for the great training content.
It would be beneficial if we were to have a public roadmap for Azure Spring Cloud for easier tracking of features & bug fixes.
We do have this today with AKS & ARO roadmaps. Would be awesome to have the same setup for Azure Spring cloud too.

Azure Spring Cloud-related forums

Hello,
sorry for opening a new issue for this, but I don't know another way to get in touch with someone that can answer a technical question on Azure Spring Cloud. MSDN Forum for Azure Spring Cloud appears to be a ghost town https://social.msdn.microsoft.com/Forums/en-US/home?forum=azurespringcloud (grand total of 0 posts as of now)

  1. Is there a forum/slack channel/etc for people asking questions on Azure Spring Cloud
  2. Is there a way for me to get in touch with @jdubois directly so I can ask. I do not use Twitter
    Thanks in advance
    Greg

Step - 05 - Build a Spring Boot microservice using Spring Cloud features not working

Hi,

I tried using the step 5 to run on local as well as on azure spring cloud, but the endpoint gives error....

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Fri Oct 30 06:41:51 GMT 2020
There was an unexpected error (type=Not Found, status=404).

Here are the logs from cloud...

azureuser@springdevmachine:~$ az spring-cloud app logs --name spring-cloud-microservice -f
. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v2.3.2.RELEASE)

2020-10-30 06:39:33.877 INFO 1 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : https://azure-spring-cloud-lab-lalit.svc.azuremicroservices.io/config
2020-10-30 06:39:36.444 INFO 1 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Located environment: name=spring-cloud-microservice, profiles=[default], label=null, version=3a23e106c844e1e5980fc2becc841b59d94f268b, state=null
2020-10-30 06:39:36.446 INFO 1 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-configClient'}, BootstrapPropertySource {name='bootstrapProperties-https://github.com/Azure-Samples/spring-cloud-sample-public-config.git/application.yml'}]
2020-10-30 06:39:36.456 INFO 1 --- [ main] com.example.demo.DemoApplication : No active profile set, falling back to default profiles: default
2020-10-30 06:39:39.766 INFO 1 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=b9a90cf8-f8a5-385d-b0ab-3b28be03bdc3
2020-10-30 06:39:41.300 INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 1025 (http)
2020-10-30 06:39:42.041 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2020-10-30 06:39:42.041 INFO 1 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.37]
2020-10-30 06:39:42.356 INFO 1 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2020-10-30 06:39:42.356 INFO 1 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 5804 ms
2020-10-30 06:39:42.589 WARN 1 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2020-10-30 06:39:42.590 INFO 1 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2020-10-30 06:39:42.645 WARN 1 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2020-10-30 06:39:42.645 INFO 1 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2020-10-30 06:39:44.677 INFO 1 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2020-10-30 06:39:45.544 INFO 1 --- [ main] DiscoveryClientOptionalArgsConfiguration : Eureka HTTP Client uses Jersey
2020-10-30 06:39:45.867 WARN 1 --- [ main] ockingLoadBalancerClientRibbonWarnLogger : You already have RibbonLoadBalancerClient on your classpath. It will be used by default. As Spring Cloud Ribbon is in maintenance mode. We recommend switching to BlockingLoadBalancerClient instead. In order to use it, set the value of spring.cloud.loadbalancer.ribbon.enabled to false or remove spring-cloud-starter-netflix-ribbon from your project.
2020-10-30 06:39:46.355 INFO 1 --- [ main] o.s.c.n.eureka.InstanceInfoFactory : Setting initial instance status as: STARTING
2020-10-30 06:39:46.636 INFO 1 --- [ main] com.netflix.discovery.DiscoveryClient : Initializing Eureka in region us-east-1
2020-10-30 06:39:47.167 INFO 1 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON encoding codec LegacyJacksonJson
2020-10-30 06:39:47.168 INFO 1 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using JSON decoding codec LegacyJacksonJson
2020-10-30 06:39:47.642 INFO 1 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML encoding codec XStreamXml
2020-10-30 06:39:47.643 INFO 1 --- [ main] c.n.d.provider.DiscoveryJerseyProvider : Using XML decoding codec XStreamXml
2020-10-30 06:39:48.170 INFO 1 --- [ main] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration
2020-10-30 06:39:48.294 INFO 1 --- [ main] com.netflix.discovery.DiscoveryClient : Disable delta property : false
2020-10-30 06:39:48.295 INFO 1 --- [ main] com.netflix.discovery.DiscoveryClient : Single vip registry refresh property : null
2020-10-30 06:39:48.295 INFO 1 --- [ main] com.netflix.discovery.DiscoveryClient : Force full registry fetch : false
2020-10-30 06:39:48.295 INFO 1 --- [ main] com.netflix.discovery.DiscoveryClient : Application is null : false
2020-10-30 06:39:48.295 INFO 1 --- [ main] com.netflix.discovery.DiscoveryClient : Registered Applications size is zero : true
2020-10-30 06:39:48.295 INFO 1 --- [ main] com.netflix.discovery.DiscoveryClient : Application version is -1: true
2020-10-30 06:39:48.295 INFO 1 --- [ main] com.netflix.discovery.DiscoveryClient : Getting all instance registry info from the eureka server
2020-10-30 06:39:48.678 INFO 1 --- [ main] com.netflix.discovery.DiscoveryClient : The response status is 200
2020-10-30 06:39:48.681 INFO 1 --- [ main] com.netflix.discovery.DiscoveryClient : Starting heartbeat executor: renew interval is: 30
2020-10-30 06:39:48.739 INFO 1 --- [ main] c.n.discovery.InstanceInfoReplicator : InstanceInfoReplicator onDemand update allowed rate per min is 4
2020-10-30 06:39:48.745 INFO 1 --- [ main] com.netflix.discovery.DiscoveryClient : Discovery Client initialized at timestamp 1604039988744 with initial instances count: 3
2020-10-30 06:39:48.747 INFO 1 --- [ main] o.s.c.n.e.s.EurekaServiceRegistry : Registering application SPRING-CLOUD-MICROSERVICE with eureka with status UP
2020-10-30 06:39:48.748 INFO 1 --- [ main] com.netflix.discovery.DiscoveryClient : Saw local status change event StatusChangeEvent [timestamp=1604039988748, current=UP, previous=STARTING]
2020-10-30 06:39:48.752 INFO 1 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_SPRING-CLOUD-MICROSERVICE/spring-cloud-microservice-default-25-7bd5ff7f9b-5426j:spring-cloud-microservice:1025: registering service...
2020-10-30 06:39:48.870 INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 1025 (http) with context path ''
2020-10-30 06:39:48.877 INFO 1 --- [ main] .s.c.n.e.s.EurekaAutoServiceRegistration : Updating port to 1025
2020-10-30 06:39:48.954 INFO 1 --- [ main] com.example.demo.DemoApplication : Started DemoApplication in 20.127 seconds (JVM running for 23.238)
2020-10-30 06:39:49.048 INFO 1 --- [nfoReplicator-0] com.netflix.discovery.DiscoveryClient : DiscoveryClient_SPRING-CLOUD-MICROSERVICE/spring-cloud-microservice-default-25-7bd5ff7f9b-5426j:spring-cloud-microservice:1025 - registration status: 204
2020-10-30 06:41:51.090 INFO 1 --- [nio-1025-exec-2] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2020-10-30 06:41:51.091 INFO 1 --- [nio-1025-exec-2] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2020-10-30 06:41:51.106 INFO 1 --- [nio-1025-exec-2] o.s.web.servlet.DispatcherServlet : Completed initialization in 15 ms
2020-10-30 06:43:30.002: No log from server
2020-10-30 06:44:30.006: No log from server
2020-10-30 06:44:48.339 INFO 1 --- [trap-executor-0] c.n.d.s.r.aws.ConfigClusterResolver : Resolving eureka endpoints via configuration

Regards,
Lalit Kumar

Command in "01 - Create an Azure Spring Cloud instance" failing to enable the Application insights.

Hi Team,

In exercise 01 - Create an Azure Spring Cloud instance the following command :

    -g "$AZ_RESOURCE_GROUP" \
    -n "$AZ_SPRING_CLOUD_NAME" \
    --enable-java-agent \
    --sku standard

Fails to correctly enable Application Insights on the Azure Spring Cloud (Application Insights instance is created but Azure Spring Cloud is not enabled with it)

The only way is to manually enable Application Insights in the Portal.

image

image

Can we please get a fix for this?

Thanks,
Junaid Hussain.

Suggestion: Create "everything-in-one-command" for all chapters

In Chapter 2, there's a command at the end that allows you to do all commands at once. I know that there are git repositories with the finished projects, but it would be useful in the other chapters as well for workshop attendees that are starting to fall behind and want to catch up before the next chapter.

If you'd like, I can set up a PR some time next week for the chapters where this is applicable

Section 7: issue creating binding - invalid resource id

Hey guys,

I'm having an issue with section 7. When I do the following set of commands in the git bash:

MYSQL_ARM_RESOURCE_ID=$(echo $MYSQL_INFO | jq -r .id)

az spring-cloud app binding mysql add \
    --app weather-service \
    --name mysql-weather \
    --resource-id "$MYSQL_ARM_RESOURCE_ID" \
    --database-name 'azure-spring-cloud-training' \
    --username "$MYSQL_USERNAME" \
    --key "$MYSQL_PASSWORD"

I get an error that looks like this.

Invalid resource id C:/Program Files/Git/subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx/resourceGroups/my-resource-group/providers/Microsoft.DBforMySQL/servers/sclabm-zzzzzzz

The problem persists if I enter the variables manually into the command.

I'm a bit stumped if this is an issue with my git bash, the terminal I'm using (happens in both ConEmu and the git bash) or with the az spring-cloud command. I hope you'd have an idea or may have seen the issue before.

Bridge the gap between using Spring Initialzer and its equivalent CURL command

Setting ConfigServer does not effect

Hi,
Setting ConfigServer does not effect.
In ConfigServer i set https://github.com/Pamir/azure-spring-config-demo.git with http basic authentication.
In the logs we see

2020-03-07 14:44:05.784  INFO 1 --- [           main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at : https://spring-cloud-lab.svc.azuremicroservices.io/config
2020-03-07 14:44:06.783 ERROR 1 --- [           main] o.s.boot.SpringApplication               : Application run failed


java.lang.IllegalStateException: Could not locate PropertySource and the fail fast property is set, failing
	at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locate(ConfigServicePropertySourceLocator.java:139) ~[spring-cloud-config-client-2.1.6.RELEASE.jar!/:2.1.6.RELEASE]
	at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:52) ~[spring-cloud-context-2.1.5.RELEASE.jar!/:2.1.5.RELEASE]
	at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locateCollection(ConfigServicePropertySourceLocator.java:154) ~[spring-cloud-config-client-2.1.6.RELEASE.jar!/:2.1.6.RELEASE]

steeltoeOSS/configserver not sending values on first attempt

  1. First i cloned the repo from SteeltoeOSS/configserver using git
  2. After running command mvnw spring-boot:run on cmd, got this

C:\Users\MY PC\configserver>mvnw spring-boot:run
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Config Server 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:1.3.8.RELEASE:run (default-cli) > test-compile @ configserver >>>
[INFO]
[INFO] --- git-commit-id-plugin:2.1.11:revision (default) @ configserver ---
[info] dotGitDirectory C:\Users\MY PC\configserver.git
[info] git.build.user.name MyName
[info] git.build.user.email [email protected]
[info] git.branch master
[info] Tag refs [ [] ]
[info] Created map: [ {} ]
[info] HEAD is [ 7b80b357626a8d19b19344b45a3de15159d59cc6 ]
[info] Repo is in dirty state [ true ]
[info] git.commit.id.describe 7b80b35
[info] git.commit.id 7b80b357626a8d19b19344b45a3de15159d59cc6
[info] git.commit.id.abbrev 7b80b35
[info] git.commit.user.name MyName
[info] git.commit.user.email [email protected]
[info] git.commit.message.full githubRepoLinkChanged

[info] git.commit.message.short githubRepoLinkChanged
[info] git.commit.time 2021-05-07T11:53:40+0500
[info] git.remote.origin.url https://[email protected]/devMY/myApp/_git/ConfigServer
[info] git.tags
[info] git.build.time 2021-05-10T12:12:02+0500
[info] git.commit.id.describe-short 7b80b35
[info] found property git.tags
[info] found property git.commit.id.abbrev
[info] found property git.commit.user.email
[info] found property git.commit.message.full
[info] found property git.commit.id
[info] found property git.commit.id.describe-short
[info] found property git.commit.message.short
[info] found property git.commit.user.name
[info] found property git.build.user.name
[info] found property git.commit.id.describe
[info] found property git.build.user.email
[info] found property git.branch
[info] found property git.commit.time
[info] found property git.build.time
[info] found property git.remote.origin.url
[info] Writing properties file to [ C:\Users\MY PC\configserver\target\classes\git.properties ] (for module Config Server )...
[info] Config Server ] project Config Server
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ configserver ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ configserver ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ configserver ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\MY PC\configserver\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ configserver ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< spring-boot-maven-plugin:1.3.8.RELEASE:run (default-cli) < test-compile @ configserver <<<
[INFO]
[INFO] --- spring-boot-maven-plugin:1.3.8.RELEASE:run (default-cli) @ configserver ---
2021-05-10 12:12:05.546 INFO 19744 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@ecdf387: startup date [Mon May 10 12:12:05 PKT 2021]; root of context hierarchy
2021-05-10 12:12:05.802 INFO 19744 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2021-05-10 12:12:05.833 INFO 19744 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [class org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$437d1298] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v1.3.8.RELEASE)

2021-05-10 12:12:06.602 INFO 19744 --- [ main] demo.ConfigServerApplication : No active profile set, falling back to default profiles: default
2021-05-10 12:12:06.614 INFO 19744 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@c7f2627: startup date [Mon May 10 12:12:06 PKT 2021]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@ecdf387
2021-05-10 12:12:07.593 WARN 19744 --- [ main] o.s.c.a.ConfigurationClassPostProcessor : Cannot enhance @configuration bean definition 'refreshScope' since its singleton instance has been created too early. The typical cause is a non-static @bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'.
2021-05-10 12:12:07.702 DEBUG 19744 --- [ main] o.s.cloud.context.scope.GenericScope : Generating bean factory id from names: [applicationContextIdFilter, archaiusEndpoint, auditEventRepository, auditListener, autoConfigurationReportEndpoint, basicErrorController, beanNameHandlerMapping, beanNameViewResolver, beansEndpoint, characterEncodingFilter, commonsFeatures, configClientProperties, configServerApplication, configServerHealthIndicator, configurableEnvironmentConfiguration, configurationPropertiesBeans, configurationPropertiesRebinder, configurationPropertiesReportEndpoint, contextRefresher, default.org.springframework.cloud.netflix.ribbon.RibbonAutoConfiguration.RibbonClientSpecification, default.org.springframework.cloud.netflix.ribbon.eureka.RibbonEurekaAutoConfiguration.RibbonClientSpecification, defaultMetricsTagProvider, defaultServletHandlerMapping, defaultViewResolver, discoveryClient, discoveryClientHealthIndicator, discoveryClientOptionalArgs, discoveryCompositeHealthIndicator, diskSpaceHealthIndicator, diskSpaceHealthIndicatorProperties, dispatcherServlet, dispatcherServletRegistration, dumpEndpoint, duplicateServerPropertiesDetector, embeddedServletContainerCustomizerBeanPostProcessor, encrypt.CONFIGURATION_PROPERTIES, encryptionController, endpointHandlerMapping, endpointMBeanExporter, endpoints.CONFIGURATION_PROPERTIES, endpoints.cors.CONFIGURATION_PROPERTIES, endpoints.health.CONFIGURATION_PROPERTIES, endpoints.jmx.CONFIGURATION_PROPERTIES, environmentController, environmentEncryptor, environmentEndpoint, environmentManager, environmentManagerEndpoint, environmentMvcEndpoint, environmentRepository, error, errorAttributes, errorPageCustomizer, eurekaApplicationInfoManager, eurekaClient, eurekaClientConfigBean, eurekaFeature, eurekaHealthIndicator, eurekaInstanceConfigBean, faviconHandlerMapping, faviconRequestHandler, featuresEndpoint, handlerExceptionResolver, healthAggregator, healthEndpoint, healthMvcEndpoint, hiddenHttpMethodFilter, httpPutFormContentFilter, httpRequestHandlerAdapter, hystrixHealthIndicator, inetUtils, inetUtilsProperties, infoEndpoint, infoEndpointRebinderConfiguration, jacksonObjectMapper, jacksonObjectMapperBuilder, loadBalancedRestTemplateInitializer, loadBalancerClient, loggingRebinder, management.health.status.CONFIGURATION_PROPERTIES, management.trace.CONFIGURATION_PROPERTIES, managementContextResolver, managementServerProperties, managementServletContext, mappingJackson2HttpMessageConverter, mbeanExporter, mbeanServer, messageConverters, metricReaderPublicMetrics, metricWritersMetricExporter, metricsEndpoint, metricsFilter, metricsMvcEndpoint, monitorCache, monitorRegistry, multipart.CONFIGURATION_PROPERTIES, multipartConfigElement, multipartResolver, mvcContentNegotiationManager, mvcConversionService, mvcEndpoints, mvcPathMatcher, mvcResourceUrlProvider, mvcUriComponentsContributor, mvcUrlPathHelper, mvcValidator, mvcViewResolver, objectNamingStrategy, observableMVCConfiguration, org.springframework.boot.actuate.autoconfigure.AuditAutoConfiguration, org.springframework.boot.actuate.autoconfigure.AuditAutoConfiguration$AuditEventRepositoryConfiguration, org.springframework.boot.actuate.autoconfigure.EndpointAutoConfiguration, org.springframework.boot.actuate.autoconfigure.EndpointAutoConfiguration$InfoPropertiesConfiguration, org.springframework.boot.actuate.autoconfigure.EndpointAutoConfiguration$RequestMappingEndpointConfiguration, org.springframework.boot.actuate.autoconfigure.EndpointMBeanExportAutoConfiguration, org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration, org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration$ApplicationContextFilterConfiguration, org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration$EndpointWebMvcConfiguration, org.springframework.boot.actuate.autoconfigure.EndpointWebMvcManagementContextConfiguration, org.springframework.boot.actuate.autoconfigure.HealthIndicatorAutoConfiguration, org.springframework.boot.actuate.autoconfigure.HealthIndicatorAutoConfiguration$DiskSpaceHealthIndicatorConfiguration, org.springframework.boot.actuate.autoconfigure.ManagementServerPropertiesAutoConfiguration, org.springframework.boot.actuate.autoconfigure.MetricExportAutoConfiguration, org.springframework.boot.actuate.autoconfigure.MetricExportAutoConfiguration$MetricExportPropertiesConfiguration, org.springframework.boot.actuate.autoconfigure.MetricFilterAutoConfiguration, org.springframework.boot.actuate.autoconfigure.MetricRepositoryAutoConfiguration, org.springframework.boot.actuate.autoconfigure.PublicMetricsAutoConfiguration, org.springframework.boot.actuate.autoconfigure.PublicMetricsAutoConfiguration$TomcatMetricsConfiguration, org.springframework.boot.actuate.autoconfigure.TraceRepositoryAutoConfiguration, org.springframework.boot.actuate.autoconfigure.TraceWebFilterAutoConfiguration, org.springframework.boot.autoconfigure.AutoConfigurationPackages, org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration, org.springframework.boot.autoconfigure.condition.BeanTypeRegistry, org.springframework.boot.autoconfigure.context.ConfigurationPropertiesAutoConfiguration, org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration, org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperBuilderConfiguration, org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperConfiguration, org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration, org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration, org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration$DispatcherServletConfiguration, org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration, org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat, org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration, org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration, org.springframework.boot.autoconfigure.web.HttpEncodingAutoConfiguration, org.springframework.boot.autoconfigure.web.HttpMessageConvertersAutoConfiguration, org.springframework.boot.autoconfigure.web.HttpMessageConvertersAutoConfiguration$StringHttpMessageConverterConfiguration, org.springframework.boot.autoconfigure.web.JacksonHttpMessageConvertersConfiguration, org.springframework.boot.autoconfigure.web.JacksonHttpMessageConvertersConfiguration$MappingJackson2HttpMessageConverterConfiguration, org.springframework.boot.autoconfigure.web.MultipartAutoConfiguration, org.springframework.boot.autoconfigure.web.ServerPropertiesAutoConfiguration, org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration, org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$EnableWebMvcConfiguration, org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter, org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter$FaviconConfiguration, org.springframework.boot.autoconfigure.websocket.WebSocketAutoConfiguration, org.springframework.boot.autoconfigure.websocket.WebSocketAutoConfiguration$TomcatWebSocketConfiguration, org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor, org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.store, org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration, org.springframework.cloud.autoconfigure.LifecycleMvcEndpointAutoConfiguration, org.springframework.cloud.autoconfigure.RefreshAutoConfiguration, org.springframework.cloud.autoconfigure.RefreshEndpointAutoConfiguration, org.springframework.cloud.autoconfigure.RefreshEndpointAutoConfiguration$RefreshEndpointConfiguration, org.springframework.cloud.autoconfigure.RefreshEndpointAutoConfiguration$RestartEndpointWithoutIntegration, org.springframework.cloud.client.CommonsClientAutoConfiguration, org.springframework.cloud.client.CommonsClientAutoConfiguration$ActuatorConfiguration, org.springframework.cloud.client.loadbalancer.LoadBalancerAutoConfiguration, org.springframework.cloud.commons.util.UtilAutoConfiguration, org.springframework.cloud.config.client.ConfigClientAutoConfiguration, org.springframework.cloud.config.server.config.ConfigServerEncryptionConfiguration, org.springframework.cloud.config.server.config.ConfigServerMvcConfiguration, org.springframework.cloud.config.server.config.EncryptionAutoConfiguration, org.springframework.cloud.config.server.config.EncryptionAutoConfiguration$KeyStoreConfiguration, org.springframework.cloud.config.server.config.EnvironmentRepositoryConfiguration, org.springframework.cloud.config.server.config.EnvironmentRepositoryConfiguration$GitRepositoryConfiguration, org.springframework.cloud.config.server.config.ResourceRepositoryConfiguration, org.springframework.cloud.config.server.config.SingleEncryptorAutoConfiguration, org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration, org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration$ArchaiusEndpointConfiguration, org.springframework.cloud.netflix.archaius.ArchaiusAutoConfiguration$PropagateEventsConfiguration, org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration, org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration, org.springframework.cloud.netflix.eureka.EurekaDiscoveryClientConfiguration, org.springframework.cloud.netflix.eureka.EurekaDiscoveryClientConfiguration$EurekaClientConfigurationRefresher, org.springframework.cloud.netflix.eureka.EurekaDiscoveryClientConfiguration$EurekaHealthIndicatorConfiguration, org.springframework.cloud.netflix.eureka.config.EurekaClientConfigServerAutoConfiguration, org.springframework.cloud.netflix.hystrix.HystrixAutoConfiguration, org.springframework.cloud.netflix.metrics.MetricsInterceptorConfiguration, org.springframework.cloud.netflix.metrics.MetricsInterceptorConfiguration$MetricsWebResourceConfiguration, org.springframework.cloud.netflix.metrics.servo.ServoMetricsAutoConfiguration, org.springframework.cloud.netflix.ribbon.RibbonAutoConfiguration, org.springframework.cloud.netflix.ribbon.eureka.RibbonEurekaAutoConfiguration, org.springframework.cloud.netflix.rx.RxJavaAutoConfiguration, org.springframework.cloud.netflix.rx.RxJavaAutoConfiguration$RxJavaReturnValueHandlerConfig, org.springframework.context.annotation.ConfigurationClassPostProcessor.enhancedConfigurationProcessor, org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor, org.springframework.context.annotation.internalAutowiredAnnotationProcessor, org.springframework.context.annotation.internalCommonAnnotationProcessor, org.springframework.context.annotation.internalConfigurationAnnotationProcessor, org.springframework.context.annotation.internalRequiredAnnotationProcessor, org.springframework.context.annotation.internalScheduledAnnotationProcessor, org.springframework.context.event.internalEventListenerFactory, org.springframework.context.event.internalEventListenerProcessor, org.springframework.scheduling.annotation.SchedulingConfiguration, pauseEndpoint, pauseMvcEndpoint, preserveErrorControllerTargetClassPostProcessor, propertySourcesPlaceholderConfigurer, refreshEndpoint, refreshEventListener, refreshMvcEndpoint, refreshScope, refreshScopeHealthIndicator, requestContextFilter, requestMappingEndpoint, requestMappingHandlerAdapter, requestMappingHandlerMapping, resourceHandlerMapping, restTemplateCustomizer, restartEndpoint, restartMvcEndpoint, resumeEndpoint, resumeMvcEndpoint, ribbonFeature, ribbonInterceptor, rxFeature, scopedTarget.eurekaApplicationInfoManager, scopedTarget.eurekaClient, serverProperties, servoMetricNaming, servoMetricReader, servoMetricServices, servoMetricsConfig, servoMonitoringWebResourceInterceptor, servoPublicMetrics, shutdownEndpoint, simpleControllerHandlerAdapter, singleReturnValueHandler, spring.cloud.config.server.CONFIGURATION_PROPERTIES, spring.http.encoding.CONFIGURATION_PROPERTIES, spring.jackson.CONFIGURATION_PROPERTIES, spring.metrics.export.CONFIGURATION_PROPERTIES, spring.mvc.CONFIGURATION_PROPERTIES, spring.resources.CONFIGURATION_PROPERTIES, springClientFactory, stringHttpMessageConverter, systemPublicMetrics, textEncryptorLocator, tomcatEmbeddedServletContainerFactory, tomcatPublicMetrics, traceEndpoint, traceRepository, viewControllerHandlerMapping, viewResolver, webRequestLoggingFilter, websocketContainerCustomizer]
2021-05-10 12:12:07.708 INFO 19744 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=1891f0d4-ccae-3f18-9b8b-08c3acb8e514
2021-05-10 12:12:07.718 INFO 19744 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2021-05-10 12:12:07.739 INFO 19744 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [class org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$437d1298] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-05-10 12:12:07.746 INFO 19744 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.RefreshEndpointAutoConfiguration' of type [class org.springframework.cloud.autoconfigure.RefreshEndpointAutoConfiguration$$EnhancerBySpringCGLIB$$ecdc148e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-05-10 12:12:13.061 INFO 19744 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8888 (http)
2021-05-10 12:12:13.080 INFO 19744 --- [ main] o.apache.catalina.core.StandardService : Starting service Tomcat
2021-05-10 12:12:13.081 INFO 19744 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.0.37
2021-05-10 12:12:13.190 INFO 19744 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2021-05-10 12:12:13.191 INFO 19744 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 6577 ms
2021-05-10 12:12:13.536 INFO 19744 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
2021-05-10 12:12:13.541 INFO 19744 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'metricsFilter' to: [/]
2021-05-10 12:12:13.541 INFO 19744 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/
]
2021-05-10 12:12:13.542 INFO 19744 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/]
2021-05-10 12:12:13.542 INFO 19744 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/
]
2021-05-10 12:12:13.542 INFO 19744 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/]
2021-05-10 12:12:13.542 INFO 19744 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'webRequestLoggingFilter' to: [/
]
2021-05-10 12:12:13.543 INFO 19744 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'applicationContextIdFilter' to: [/]
2021-05-10 12:12:14.388 INFO 19744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@c7f2627: startup date [Mon May 10 12:12:06 PKT 2021]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@ecdf387
2021-05-10 12:12:14.490 INFO 19744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/encrypt/status],methods=[GET]}" onto public java.util.Map<java.lang.String, java.lang.Object> org.springframework.cloud.config.server.encryption.EncryptionController.status()
2021-05-10 12:12:14.492 INFO 19744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/key/{name}/{profiles}],methods=[GET]}" onto public java.lang.String org.springframework.cloud.config.server.encryption.EncryptionController.getPublicKey(java.lang.String,java.lang.String)
2021-05-10 12:12:14.492 INFO 19744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/key],methods=[GET]}" onto public java.lang.String org.springframework.cloud.config.server.encryption.EncryptionController.getPublicKey()
2021-05-10 12:12:14.492 INFO 19744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/decrypt/{name}/{profiles}],methods=[POST]}" onto public java.lang.String org.springframework.cloud.config.server.encryption.EncryptionController.decrypt(java.lang.String,java.lang.String,java.lang.String,org.springframework.http.MediaType)
2021-05-10 12:12:14.493 INFO 19744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/decrypt],methods=[POST]}" onto public java.lang.String org.springframework.cloud.config.server.encryption.EncryptionController.decrypt(java.lang.String,org.springframework.http.MediaType)
2021-05-10 12:12:14.494 INFO 19744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/encrypt],methods=[POST]}" onto public java.lang.String org.springframework.cloud.config.server.encryption.EncryptionController.encrypt(java.lang.String,org.springframework.http.MediaType)
2021-05-10 12:12:14.494 INFO 19744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/encrypt/{name}/{profiles}],methods=[POST]}" onto public java.lang.String org.springframework.cloud.config.server.encryption.EncryptionController.encrypt(java.lang.String,java.lang.String,java.lang.String,org.springframework.http.MediaType)
2021-05-10 12:12:14.500 INFO 19744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{name}-{profiles}.properties],methods=[GET]}" onto public org.springframework.http.ResponseEntity<java.lang.String> org.springframework.cloud.config.server.environment.EnvironmentController.properties(java.lang.String,java.lang.String,boolean) throws java.io.IOException
2021-05-10 12:12:14.501 INFO 19744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{name}-{profiles}.yml || /{name}-{profiles}.yaml],methods=[GET]}" onto public org.springframework.http.ResponseEntity<java.lang.String> org.springframework.cloud.config.server.environment.EnvironmentController.yaml(java.lang.String,java.lang.String,boolean) throws java.lang.Exception
2021-05-10 12:12:14.506 INFO 19744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{name}/{profiles:.
[^-].}],methods=[GET]}" onto public org.springframework.cloud.config.environment.Environment org.springframework.cloud.config.server.environment.EnvironmentController.defaultLabel(java.lang.String,java.lang.String)
2021-05-10 12:12:14.511 INFO 19744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{name}-{profiles}.json],methods=[GET]}" onto public org.springframework.http.ResponseEntity<java.lang.String> org.springframework.cloud.config.server.environment.EnvironmentController.jsonProperties(java.lang.String,java.lang.String,boolean) throws java.lang.Exception
2021-05-10 12:12:14.512 INFO 19744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{label}/{name}-{profiles}.yml || /{label}/{name}-{profiles}.yaml],methods=[GET]}" onto public org.springframework.http.ResponseEntity<java.lang.String> org.springframework.cloud.config.server.environment.EnvironmentController.labelledYaml(java.lang.String,java.lang.String,java.lang.String,boolean) throws java.lang.Exception
2021-05-10 12:12:14.513 INFO 19744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{name}/{profiles}/{label:.
}],methods=[GET]}" onto public org.springframework.cloud.config.environment.Environment org.springframework.cloud.config.server.environment.EnvironmentController.labelled(java.lang.String,java.lang.String,java.lang.String)
2021-05-10 12:12:14.513 INFO 19744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{label}/{name}-{profiles}.json],methods=[GET]}" onto public org.springframework.http.ResponseEntity<java.lang.String> org.springframework.cloud.config.server.environment.EnvironmentController.labelledJsonProperties(java.lang.String,java.lang.String,java.lang.String,boolean) throws java.lang.Exception
2021-05-10 12:12:14.514 INFO 19744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/{label}/{name}-{profiles}.properties],methods=[GET]}" onto public org.springframework.http.ResponseEntity<java.lang.String> org.springframework.cloud.config.server.environment.EnvironmentController.labelledProperties(java.lang.String,java.lang.String,java.lang.String,boolean) throws java.io.IOException
2021-05-10 12:12:14.517 INFO 19744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2021-05-10 12:12:14.526 INFO 19744 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2021-05-10 12:12:14.571 INFO 19744 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2021-05-10 12:12:14.571 INFO 19744 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/
] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2021-05-10 12:12:14.626 INFO 19744 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2021-05-10 12:12:15.133 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/env/{name:.}],methods=[GET],produces=[application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EnvironmentMvcEndpoint.value(java.lang.String)
2021-05-10 12:12:15.134 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/env || /admin/env.json],methods=[GET],produces=[application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2021-05-10 12:12:15.139 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/env],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.context.environment.EnvironmentManagerMvcEndpoint.value(java.util.Map<java.lang.String, java.lang.String>)
2021-05-10 12:12:15.142 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/env/reset],methods=[POST]}" onto public java.util.Map<java.lang.String, java.lang.Object> org.springframework.cloud.context.environment.EnvironmentManagerMvcEndpoint.reset()
2021-05-10 12:12:15.143 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/features || /admin/features.json],methods=[GET],produces=[application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2021-05-10 12:12:15.144 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/beans || /admin/beans.json],methods=[GET],produces=[application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2021-05-10 12:12:15.145 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/health || /admin/health.json],produces=[application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.HealthMvcEndpoint.invoke(java.security.Principal)
2021-05-10 12:12:15.147 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/info || /admin/info.json],methods=[GET],produces=[application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2021-05-10 12:12:15.148 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/pause || /admin/pause.json],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.endpoint.GenericPostableMvcEndpoint.invoke()
2021-05-10 12:12:15.148 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/mappings || /admin/mappings.json],methods=[GET],produces=[application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2021-05-10 12:12:15.154 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/dump || /admin/dump.json],methods=[GET],produces=[application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2021-05-10 12:12:15.157 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/resume || /admin/resume.json],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.endpoint.GenericPostableMvcEndpoint.invoke()
2021-05-10 12:12:15.158 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/refresh || /admin/refresh.json],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.endpoint.GenericPostableMvcEndpoint.invoke()
2021-05-10 12:12:15.159 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/archaius || /admin/archaius.json],methods=[GET],produces=[application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2021-05-10 12:12:15.160 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/trace || /admin/trace.json],methods=[GET],produces=[application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2021-05-10 12:12:15.161 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/metrics/{name:.
}],methods=[GET],produces=[application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.MetricsMvcEndpoint.value(java.lang.String)
2021-05-10 12:12:15.162 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/metrics || /admin/metrics.json],methods=[GET],produces=[application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2021-05-10 12:12:15.164 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/restart || /admin/restart.json],methods=[POST]}" onto public java.lang.Object org.springframework.cloud.context.restart.RestartMvcEndpoint.invoke()
2021-05-10 12:12:15.165 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/autoconfig || /admin/autoconfig.json],methods=[GET],produces=[application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2021-05-10 12:12:15.171 INFO 19744 --- [ main] o.s.b.a.e.mvc.EndpointHandlerMapping : Mapped "{[/admin/configprops || /admin/configprops.json],methods=[GET],produces=[application/json]}" onto public java.lang.Object org.springframework.boot.actuate.endpoint.mvc.EndpointMvcAdapter.invoke()
2021-05-10 12:12:15.279 WARN 19744 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2021-05-10 12:12:15.279 INFO 19744 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2021-05-10 12:12:15.293 WARN 19744 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2021-05-10 12:12:15.293 INFO 19744 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2021-05-10 12:12:15.386 INFO 19744 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2021-05-10 12:12:15.400 INFO 19744 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'refreshScope' has been autodetected for JMX exposure
2021-05-10 12:12:15.402 INFO 19744 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'environmentManager' has been autodetected for JMX exposure
2021-05-10 12:12:15.406 INFO 19744 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'configurationPropertiesRebinder' has been autodetected for JMX exposure
2021-05-10 12:12:15.407 INFO 19744 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'refreshEndpoint' has been autodetected for JMX exposure
2021-05-10 12:12:15.407 INFO 19744 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'restartEndpoint' has been autodetected for JMX exposure
2021-05-10 12:12:15.411 INFO 19744 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'environmentManager': registering with JMX server as MBean [org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager]
2021-05-10 12:12:15.429 INFO 19744 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'restartEndpoint': registering with JMX server as MBean [org.springframework.cloud.context.restart:name=restartEndpoint,type=RestartEndpoint]
2021-05-10 12:12:15.445 INFO 19744 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'refreshScope': registering with JMX server as MBean [org.springframework.cloud.context.scope.refresh:name=refreshScope,type=RefreshScope]
2021-05-10 12:12:15.454 INFO 19744 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'configurationPropertiesRebinder': registering with JMX server as MBean [org.springframework.cloud.context.properties:name=configurationPropertiesRebinder,context=c7f2627,type=ConfigurationPropertiesRebinder]
2021-05-10 12:12:15.466 INFO 19744 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'refreshEndpoint': registering with JMX server as MBean [org.springframework.cloud.endpoint:name=refreshEndpoint,type=RefreshEndpoint]
2021-05-10 12:12:15.727 INFO 19744 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase 0
2021-05-10 12:12:15.745 INFO 19744 --- [ main] o.s.c.n.eureka.InstanceInfoFactory : Setting initial instance status as: STARTING
2021-05-10 12:12:21.256 INFO 19744 --- [ main] c.n.e.EurekaDiscoveryClientConfiguration : Registering application configserver with eureka with status UP
2021-05-10 12:12:21.270 DEBUG 19744 --- [ main] s.c.c.d.h.DiscoveryClientHealthIndicator : Discovery Client has been initialized
2021-05-10 12:12:21.508 INFO 19744 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8888 (http)
2021-05-10 12:12:21.509 INFO 19744 --- [ main] c.n.e.EurekaDiscoveryClientConfiguration : Updating port to 8888
2021-05-10 12:12:21.518 INFO 19744 --- [ main] demo.ConfigServerApplication : Started ConfigServerApplication in 17.133 seconds (JVM running for 22.196)

  1. After this i run my project, but i received nothing in configuration i.e no values, then i close my project and see this:

2021-05-10 12:22:52.534 INFO 9548 --- [nio-8888-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring FrameworkServlet 'dispatcherServlet'
2021-05-10 12:22:52.534 INFO 9548 --- [nio-8888-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization started
2021-05-10 12:22:52.562 INFO 9548 --- [nio-8888-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization completed in 26 ms
2021-05-10 12:22:57.112 INFO 9548 --- [nio-8888-exec-1] o.s.boot.SpringApplication : Starting application on DESKTOP-SASDHXX with PID 9548 (started by MY PC in C:\Users\MY PC\configserver)
2021-05-10 12:22:57.112 INFO 9548 --- [nio-8888-exec-1] o.s.boot.SpringApplication : The following profiles are active: Development
2021-05-10 12:22:57.118 INFO 9548 --- [nio-8888-exec-1] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@26b6cd1c: startup date [Mon May 10 12:22:57 PKT 2021]; root of context hierarchy
2021-05-10 12:22:57.124 INFO 9548 --- [nio-8888-exec-1] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2021-05-10 12:22:57.140 INFO 9548 --- [nio-8888-exec-1] o.s.boot.SpringApplication : Started application in 0.661 seconds (JVM running for 343.491)
2021-05-10 12:22:57.146 INFO 9548 --- [nio-8888-exec-1] o.s.c.c.s.e.NativeEnvironmentRepository : Adding property source: file:/C:/Users/MYPC1/AppData/Local/Temp/config-repo-319054025981916833/appSettings.yml
2021-05-10 12:22:57.146 INFO 9548 --- [nio-8888-exec-1] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@26b6cd1c: startup date [Mon May 10 12:22:57 PKT 2021]; root of context hierarchy
2021-05-10 12:23:20.728 INFO 9548 --- [nio-8888-exec-3] o.s.boot.SpringApplication : Starting application on DESKTOP-SASDHXX with PID 9548 (started by MY PC in C:\Users\MY PC\configserver)
2021-05-10 12:23:20.729 INFO 9548 --- [nio-8888-exec-3] o.s.boot.SpringApplication : The following profiles are active: Development
2021-05-10 12:23:20.737 INFO 9548 --- [nio-8888-exec-3] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@3b0f31c0: startup date [Mon May 10 12:23:20 PKT 2021]; root of context hierarchy
2021-05-10 12:23:20.749 INFO 9548 --- [nio-8888-exec-3] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2021-05-10 12:23:20.768 INFO 9548 --- [nio-8888-exec-3] o.s.boot.SpringApplication : Started application in 0.664 seconds (JVM running for 367.118)
2021-05-10 12:23:20.768 INFO 9548 --- [nio-8888-exec-3] o.s.c.c.s.e.NativeEnvironmentRepository : Adding property source: file:/C:/Users/MYPC1/AppData/Local/Temp/config-repo-319054025981916833/appSettings.yml
2021-05-10 12:23:20.769 INFO 9548 --- [nio-8888-exec-3] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@3b0f31c0: startup date [Mon May 10 12:23:20 PKT 2021]; root of context hierarchy

  1. Again i run my project and i got the configuration values and on cmd it shows this
    2021-05-10 12:26:09.758 INFO 9548 --- [nio-8888-exec-4] o.s.boot.SpringApplication : Starting application on DESKTOP-SASDHXX with PID 9548 (started by MY PC in C:\Users\MY PC\configserver)
    2021-05-10 12:26:09.759 INFO 9548 --- [nio-8888-exec-4] o.s.boot.SpringApplication : The following profiles are active: Development
    2021-05-10 12:26:09.763 INFO 9548 --- [nio-8888-exec-4] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@37ff6cb0: startup date [Mon May 10 12:26:09 PKT 2021]; root of context hierarchy
    2021-05-10 12:26:09.767 INFO 9548 --- [nio-8888-exec-4] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
    2021-05-10 12:26:09.774 INFO 9548 --- [nio-8888-exec-4] o.s.boot.SpringApplication : Started application in 0.551 seconds (JVM running for 536.124)
    2021-05-10 12:26:09.774 INFO 9548 --- [nio-8888-exec-4] o.s.c.c.s.e.NativeEnvironmentRepository : Adding property source: file:/C:/Users/MYPC1/AppData/Local/Temp/config-repo-319054025981916833/appSettings.yml
    2021-05-10 12:26:09.774 INFO 9548 --- [nio-8888-exec-4] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@37ff6cb0: startup date [Mon May 10 12:26:09 PKT 2021]; root of context hierarchy
    2021-05-10 12:29:54.984 INFO 9548 --- [ Thread-6] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1d406780: startup date [Mon May 10 12:17:21 PKT 2021]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@448eaa9a

Note: steeltoe config server did not give the values on first time running of project, it gives the value on second or third attempt

Each step should carry an intro text

Each step should carry a short intro of what the step is about, why that step is important and what will a student achieve by the end of the step

Application Insight is now already created by the "az spring-cloud create" command

During my Discover Workshop today I've found that the Azure CLI already creates an Application Insight and hooks it up in regards to logging and distributed tracing, rendering both the resources in the ARM template as well as setting up distributed tracing superfluous. The CLI even says so;:

Application Insights "xxxx-xxx-xxxxxxx" was created for this Azure Spring Cloud. You can visit https://portal.azure.com/#resource/subscriptions/xxxxxx-xxx-xxx-xxxxxx/resourceGroups/xxxx-xxx-xxxxxxx/providers/microsoft.insights/components/xxxx-xxx-xxxxxxx/overview to view your Application Insights component

If you'd like, I'd love to set up a PR some time next week to edit both the template as well as the instructions

UI changes to the Azure portal in "10 - Blue/Green deployment"

Hello Team,

  1. In exercise 10 - Blue/Green deployment, the instruction below does not reflect the current UI of the portal.
Navigate to the Azure Spring Cloud instance in the Azure portal and click on "Deployments" (under Settings). You should now see the "green" deployment in the "Staging Deployment" column:
  1. The "deployments" blade is no longer visible under "setting" from the Azure Spring cloud instance page.

azure-spring-cloud-overview

  1. Instead, we have to navigate to the app instances under Azure spring cloud to view the deployments.

weather-service-deployments

  1. Similarly, the following instructions need to be updated -
Another solution is to use the Azure portal:

Find your Azure Spring Cloud instance
Click on the "deployment" menu
Select the weather-service application and click on Set deployment

Can we please update these instructions and screenshots to match the current UI?

Thanks, and regards.

Step 3 - setup diagnostic settings are misleading

Go to the "Overview" page of your Azure Spring Cloud instance and select "Diagnostic settings" in the "Monitoring" section of the navigation pane." are a bit counter-intuitive when you read them the first time

Maybe: Go to the Navigation - "Monitoring" - "Diagnostic settings" & a show a screenshot to simplify it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.