Back to articles
SpringBoot Basic Annotations and Logging
How-ToDevOps

SpringBoot Basic Annotations and Logging

via Dev.toSri

Today we learned yo create a spring project in Spring initializer. Here we learnt metadata is data about data, some of metadata in maven is artifact,groupid and version. we also learned about maven project structure and adding spring web dependency. Spring web gives tomcat automatically, whereas in eclipse we as a programmer explicitly add apache tomcat server and bring it up. spring web helps to withhold tomcat server and container takes care of bringing the server up. it helps developer to concentrate on business log instead of working in bringing the server up. Its a great feature of spring boot. Exploring logs: application.properties server.port = 8080 //port in which localhost will be accessed logging.level.root=INFO //logger prints all abstract information into the console. logging.level.root=DEBUG // It prints all debug informations.errors.and INFO into the console. logging.level.root=TRACE// It prints fine-grained logic flow. 5.logging.level.com.spring.LearningDemo = DEBUG //If

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles