<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Lahiru Kasun on Medium]]></title>
        <description><![CDATA[Stories by Lahiru Kasun on Medium]]></description>
        <link>https://medium.com/@lahirukasun666?source=rss-6de5756df382------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rT547jwhjqZdPDua_gGZ7A.jpeg</url>
            <title>Stories by Lahiru Kasun on Medium</title>
            <link>https://medium.com/@lahirukasun666?source=rss-6de5756df382------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 08:32:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lahirukasun666/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A Guide to Testing Embedded Systems]]></title>
            <link>https://lahirukasun666.medium.com/a-guide-to-testing-embedded-systems-2d3d9c4d391e?source=rss-6de5756df382------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d3d9c4d391e</guid>
            <category><![CDATA[embedded-systems]]></category>
            <category><![CDATA[hardware]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Lahiru Kasun]]></dc:creator>
            <pubDate>Fri, 09 Jun 2023 04:55:04 GMT</pubDate>
            <atom:updated>2023-06-09T04:55:04.718Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZroDZQ3AWHB_1j2L" /><figcaption>Photo by <a href="https://unsplash.com/@magnusengo?utm_source=medium&amp;utm_medium=referral">Magnus Engø</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This article is designed to support anyone interested in testing software that includes hardware components. My goal is to focus on the most important points that must be understood while keeping the content concise. So go and get a coffee ☕ and read this article!</p><p><strong><em>What is an embedded system ?</em></strong></p><p>An <a href="https://www.trentonsystems.com/blog/what-are-embedded-systems">embedded system</a> combines computer hardware and software to perform a specific function. Small standalone systems or large combined systems can both be embedded systems. Three main components make up an embedded system. Hardware, Software, and Real-time operating system. Examples of embedded systems include ATMs, traffic lights, vending machines, fitness trackers, and GPS systems.</p><p><strong><em>How to test an embedded system?</em></strong></p><p>It is a testing procedure for examining both functional and non-functional features of embedded systems. Different levels of granularity can be used while testing embedded software. It is common to utilize unit testing, integration testing, and system testing.</p><p>Unit testing: Unit testing involves isolating and testing each module of the application. Bugs are considerably simpler to fix at the unit testing level than they are at the higher ones. In comparison, the cost of fixing a defect found during unit testing is lower than that of a defect found at a higher level.</p><p>Software and hardware integration testing: Checking whether modules function properly when joined is the purpose of integration testing. This expands the testing scope, and bugs that occur as a result of module interactions are often discovered during integration testing. Integration testing is quite challenging since some defects can be related to hardware components.</p><p>System testing: In the end, we can perform system testing. System testing involves determining whether all of the integrated software is operating as intended. This allows engineers to assess if the system satisfies its high-level requirements when performed on a fully integrated system. This makes sure that all of the system’s components, including its hardware and software, are free of defects.</p><p>The user experience of an embedded system can be improved through non-functional testing. Non-functional testing reveals problems with trustworthiness, reliability, speed, and usability. We can perform tests such as performance testing, security testing, usability testing and compatibility testing depending on the requirements.</p><p><strong><em>Software testing vs Embedded system testing</em></strong></p><p>Although the software and embedded testing are similar, they differ in some significant ways. Systematic techniques are used in both types of testing, but software testing is less hands-on than embedded testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*iyfbcWFZLauMkxgq7XP7Nw.png" /><figcaption>Difference between Software Testing vs Embedded Systems Testing</figcaption></figure><p><strong><em>Challenges of testing an embedded system</em></strong></p><ul><li><strong>Hardware Dependency</strong></li></ul><p>One of the biggest challenges encountered when testing embedded software is hardware dependency. <a href="https://resources.altium.com/p/what-is-a-pcb">PCBs</a>, sensors and other <a href="https://learn.g2.com/iot-devices">IOT devices</a> are part of an embedded system. Hence having fundamental knowledge about hardware devices is essential.</p><ul><li><strong>Software and hardware defects</strong></li></ul><p>A high number of hardware defects can be identified in freshly created hardware. So the found defects are just not limited to software. It could potentially be a hardware issue.</p><ul><li><strong>Reproduce defects</strong></li></ul><p>In the case of an embedded system, defects are more difficult to reproduce. Because it involves both software and hardware when reproduce the defect.</p><ul><li><strong>Regular software updates</strong></li></ul><p>Regular software updates are required for embedded systems such as security fixes, kernel upgrade, different device drivers, etc. These updates can make bug identification difficult.</p><p><strong><em>Conclusion</em></strong></p><p>Software testing relies on a virtual model of the product, Whereas embedded testing must rely on both hardware and software components of the product. Compared to regular software testing, embedded software testing is significantly more challenging. In particular because of its dependence on the hardware environment. Therefore, It is necessary to do high-quality software testing on a regular basis.</p><p><strong>References</strong></p><ul><li><a href="https://www.trentonsystems.com/blog/what-are-embedded-systems">What are Embedded Systems</a></li><li><a href="https://resources.altium.com/p/what-is-a-pcb">What is a PCB ?</a></li><li><a href="https://learn.g2.com/iot-devices">Everything you need to know about IOT</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d3d9c4d391e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Complete Beginner’s Guide to APIs]]></title>
            <link>https://medium.com/javarevisited/complete-beginners-guide-to-apis-e526d8ee319f?source=rss-6de5756df382------2</link>
            <guid isPermaLink="false">https://medium.com/p/e526d8ee319f</guid>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Lahiru Kasun]]></dc:creator>
            <pubDate>Mon, 25 Jul 2022 23:58:32 GMT</pubDate>
            <atom:updated>2022-08-23T15:45:33.747Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is designed to support as a tutorial for anyone interested in learning about <a href="https://medium.com/javarevisited/best-web-api-design-and-development-courses-for-beginners-fb1c8dd83379">APIs</a>. My goal is to keep the information brief and to concentrate on the most crucial points that must be understood. so go and get a coffee ☕ and read this article!</p><p><strong>What is an API?</strong></p><p>APIs are the backbone of modern computing machinery. API stands for application programming interface. API is used to communicate between the Web browser and Web server. Basically, APIs accept requests from the apps and return desired data. APIs usually use <a href="https://javarevisited.blogspot.com/2015/05/how-to-print-json-string-in-java-jackson-example.html#axzz7CGC6wxzA">JSON format </a>to transfer data between browser and server.</p><p><strong>API vs API Endpoint</strong></p><p><a href="https://javarevisited.blogspot.com/2021/10/top-5-courses-to-learn-api-development.html">APIs </a>and API endpoints are two different things. Rather, an endpoint is a component of an API. Endpoints are URIs on an API that an application can access. All APIs have endpoints.</p><p>Consider the <a href="https://catfact.ninja/">Cat Facts API</a>. This API provides random cat facts. However, it lists various endpoints using which you can request categorized information. There are three available endpoints.</p><p>/fact: Returns a single, random cat fact</p><p>/facts: Returns a list of random cat facts</p><p>/breeds: Returns a list of cat breeds</p><p>Each endpoint is specific to a particular portion of the data.</p><p><strong>What is JSON?</strong></p><p><a href="https://javarevisited.blogspot.com/2014/12/how-to-read-write-json-string-to-file.html">JSON </a>is the most widely used data format for Transfering data using APIs. JSON document consists of name/value pairs. The structure of the data is reflected in these name/value pairs.</p><p><strong>Types of APIs</strong></p><p>There are a couple of API paradigms available such as REST, RPC, <a href="https://medium.com/javarevisited/10-best-java-web-services-rest-soap-and-api-courses-for-beginners-724a8f51298d">SOAP</a> and <a href="https://medium.com/javarevisited/top-5-graphql-tutorials-and-courses-for-beginners-fb5543506fc2">GraphQL</a>, etc. <a href="https://javarevisited.blogspot.com/2022/04/difference-between-graphql-and-rest-api.html">REST </a>is the most commonly used paradigm among these.</p><p><strong>What is REST API?</strong></p><p>REST stands for Representational State Transfer, an architectural style for developing APIs that interact via an HTTP protocol.</p><p>To access resources, the client sends an HTTP request. Then the server generates an HTTP response.</p><figure><a href="https://javarevisited.blogspot.com/2018/02/top-5-restful-web-services-with-spring-courses-for-experienced-java-programmers.html"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9xsOnmz5hC4IVOLixlvMLg.png" /></a></figure><p><strong>Request structure</strong></p><p>Any REST request consists of four parts: an HTTP method, an endpoint, headers, and a body.</p><p><strong>HTTP method </strong>describes what is to be done with a resource. There are four basic methods available namely, <a href="https://javarevisited.blogspot.com/2016/10/difference-between-put-and-post-in-restful-web-service.html">POST,</a> GET, PUT and DELETE. <strong>An endpoint </strong>is a URL indicating where to find the resource on the internet. <strong>Headers</strong> store information such as an API key, IP address, etc. <strong>A body </strong>is used to send extra information to the server. Mostly we can send data in the body with POST and UPDATE methods to add and update data.</p><p><strong>Response structure</strong></p><p>In response, the server sends a representation of the resource, a machine-readable description of its current state. The response is represented in different formats, however, the widely used formats are XML and JSON. response also includes an HTTP response code which indicates whether the HTTP request has been successfully completed.</p><p>Popular Response codes: 200 OK, 201 Created, 400 Bad Request, 404 Not Found, 500 Internal Server Error.</p><p><strong>Using API keys</strong></p><p>API keys provide identification and authentication to the calling application. we can include the API key in the header part of the request when making API calls.</p><p><strong>Difference between First vs Third-Party APIs</strong></p><p>First-party APIs are those that are developed internally. These APIs are developed using in-house resource,talent, and systems. First-party gives you complete control over an API’s design, lifecycle, and implementation.</p><p>An API developed by a Third party is called Third party API. If the API can fulfill your requirements then you can easily use a Third-Party API, otherwise, it&#39;s not a good idea to choose since you can’t modify those APIs, and also you will have to consider specific regulations of using Third-Party APIs.</p><p>EX: Facebook’s API, Google’s API</p><p><strong>API Documentation</strong></p><p>API documentation is technical content that documents the API. It includes instructions on how to effectively use and integrate the API.</p><p>EX: Swagger, ReDoc</p><p><strong>Found it Interesting?</strong><br>Please show your support by 👏.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e526d8ee319f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/javarevisited/complete-beginners-guide-to-apis-e526d8ee319f">Complete Beginner’s Guide to APIs</a> was originally published in <a href="https://medium.com/javarevisited">Javarevisited</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fundamentals of Quality Engineering]]></title>
            <link>https://lahirukasun666.medium.com/fundamentals-of-quality-engineering-22495225ac6b?source=rss-6de5756df382------2</link>
            <guid isPermaLink="false">https://medium.com/p/22495225ac6b</guid>
            <dc:creator><![CDATA[Lahiru Kasun]]></dc:creator>
            <pubDate>Tue, 05 Jul 2022 05:26:10 GMT</pubDate>
            <atom:updated>2022-07-05T05:26:10.566Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WK1uLBhaMMH8BnxA" /><figcaption>Photo by <a href="https://unsplash.com/@jstrippa?utm_source=medium&amp;utm_medium=referral">James Harrison</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This article is designed to support as a tutorial for anyone interested in learning Quality engineering. My goal is to focus on the most important topics that must be understood while keeping the content concise. so go and get a coffee ☕ and read this article!</p><p><strong>What is QA?</strong></p><p>Monitor the quality of the software product and ensure that the final product meets the user’s requirements known as quality engineering.</p><p><strong>Responsibilities of a QA Engineer</strong></p><p>QA engineers should monitor all stages of software development to identify bugs/defects and resolve them to meet quality standards. Below are some of the notable responsibilities of QA engineers.</p><p>✦ Review Technical documents and provide feedback</p><p>✦ Create well-structured Test plans and Test cases</p><p>✦ Identity, record, and track bugs</p><p>✦ Stay up-to-date with new testing tools and test strategies</p><p><strong>Difference between Bug vs Defect</strong></p><p>A bug is a coding error and a defect is a requirement error. A defect could be a function that was not implemented but defined in the requirements of the software.</p><p><strong>Types of software testing</strong></p><p>Different types of testing can be done to ensure the quality of the software product.</p><p><strong>Acceptance testing:</strong> Verifying whether the whole system works as intended.</p><p><strong>Unit Testing:</strong> Testing each component of the software application.</p><p><strong>Integration Testing: </strong>Checking the data flow between components.</p><p><strong>Usability Testing:</strong> Checking the user-friendliness and efficiency of the application.</p><p><strong>Compatibility Testing:</strong> Testing Software applications on different software/hardware platforms.</p><p><strong>Testing Levels</strong></p><p>There are four different levels of software testing.</p><ol><li>Unit Testing: Testing each component of the application.</li><li>Integration Testing: Testing data flow between components.</li><li>System Testing: Testing end-to-end flow of the application.</li><li>Acceptance Testing: Evaluate whether the application works as per its requirements.</li></ol><p><strong>Testing Documentation</strong></p><p>In software testing, we have various types of testing documents.</p><ul><li><strong>Test plan:</strong> prepared by manager/test lead. consists of information such as objectives, scope, methods, schedule, etc.</li><li><strong>Test scenario:</strong> prepared to understand user flows of the application.</li><li><strong>Requirement traceability matrix: </strong>This document maps test cases with requirements and makes sure every scenario has been tested successfully.</li><li><strong>Bug report:</strong> This document includes a summary of all bugs.</li></ul><p><strong>Found it Interesting?</strong><br>Please show your support by 👏.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22495225ac6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python for newbies]]></title>
            <link>https://medium.com/javarevisited/python-for-newbies-8d74e0b202f2?source=rss-6de5756df382------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d74e0b202f2</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[fundamentals]]></category>
            <category><![CDATA[newbie]]></category>
            <dc:creator><![CDATA[Lahiru Kasun]]></dc:creator>
            <pubDate>Sun, 19 Sep 2021 16:07:37 GMT</pubDate>
            <atom:updated>2021-09-20T15:48:22.790Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IYAk_SRohpHWiYe8" /><figcaption>Photo by <a href="https://unsplash.com/@cdr6934?utm_source=medium&amp;utm_medium=referral">Chris Ried</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This article is designed to support as a tutorial for anyone interested in <a href="https://medium.com/javarevisited/10-best-python-certification-courses-from-coursera-4576890eb6b3">learning Python</a>. My goal is to keep the information brief and to concentrate on the most crucial points that must be understood. so go and get a coffee ☕ and read this article!</p><h4><strong>Why should you learn Python?</strong></h4><p>Python is significantly easier to learn and is much simpler to code than other languages. <a href="https://www.python.org/">Python </a>is a well-known programming language for its readability. language is quite convenient to learn when it comes to online learning. There are numerous learning resources available to help you master the fundamentals of <a href="https://medium.com/swlh/5-free-python-courses-for-beginners-to-learn-online-e1ca90687caf">Python</a>.</p><p>Another reason for its popularity is the demand for the language around the world. Some of the notable companies that use <a href="https://medium.com/javarevisited/best-python-books-a93d1a0d842d">Python </a>include Google, IBM, Quora, and Dropbox. As we can see there are a lot of <a href="https://javarevisited.blogspot.com/2018/05/10-reasons-to-learn-python-programming.html">reasons to learn python</a>. there are many ways to learn it and once you do, there is a lot you can do with it.</p><h4>Python fundamentals</h4><p>Python allows you to run scripts with only a few lines of code. we can print <strong><em>“Hello World” </em></strong>program using one statement in python.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b2fdadfdac2d01f847667d705d4a5054/href">https://medium.com/media/b2fdadfdac2d01f847667d705d4a5054/href</a></iframe><p><strong>Taking input from the user</strong></p><p>The input() function in <a href="https://www.java67.com/2018/02/5-free-python-online-courses-for-beginners.html">Python </a>is used to take input from the user.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/73ab806847e6a057c074baa14d3736ef/href">https://medium.com/media/73ab806847e6a057c074baa14d3736ef/href</a></iframe><p>By default, the input() function takes the string input but if we want to take other data types as an input, we need to typecast the input() function.</p><p><strong>Python Functions</strong></p><p>Reusability is the main achievement of <a href="https://javarevisited.blogspot.com/2021/05/python-interview-questions-answers-for-beginners.html">Python function</a>s. We use the <strong>def</strong> keyword to define a function in python.</p><p><strong>Syntax:</strong></p><p><strong>def</strong> my_function(parameters):</p><p>in order to call the python function, use the function name followed by the parentheses.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dca703e084c0f1a4d0482d124f8b699b/href">https://medium.com/media/dca703e084c0f1a4d0482d124f8b699b/href</a></iframe><p>As you can see I have used few comments to explain the above code segment. let&#39;s see how to use comments in <a href="https://medium.com/javarevisited/8-advanced-python-programming-courses-for-intermediate-programmer-cc3bd47a4d19">python</a>.</p><p><strong>Python Comments</strong></p><p>we use the hash(#) at the beginning of the statement or code to apply comments in python.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e15ce5f0b105c8f103bb546f914cf1a7/href">https://medium.com/media/e15ce5f0b105c8f103bb546f914cf1a7/href</a></iframe><p>Additionally, we can use multiline comments and docstring comments in python. We must use the hash(#) at the beginning of every line of code to apply the multiline Python comment. Also, triple quotes (‘’’’’’) can be used to create docstring comments.</p><p><strong>Popular Python Frameworks and Libraries</strong></p><p><strong><em>Frameworks</em></strong></p><p>✦ CherryPy</p><p>Microframework CherryPy is a popular open-source, <a href="https://javarevisited.blogspot.com/2019/04/top-5-python-web-development-frameworks.html#axzz6iYmMFnsA">object-oriented Python framework</a> that follows a minimalistic approach.</p><p>✦ <a href="https://medium.com/javarevisited/my-favorite-courses-to-learn-django-for-beginners-2020-ac172e2ab920">Django</a></p><p>Full-stack framework Django is one of the most beloved web development frameworks for developing Python applications.</p><p>✦ <a href="https://medium.com/javarevisited/5-best-python-flask-courses-for-beginners-2f262f8e23da">Flask</a></p><p>Flask is another popular Python framework. Inspired by the Sinatra Ruby framework, Thanks to its lightweight and modular design, Flask is readily adaptable.</p><p><strong><em>Libraries</em></strong></p><p>✦ <a href="https://becominghuman.ai/top-10-courses-to-learn-tensorflow-for-machine-learning-in-2020-39a31e7cd84b">TensorFlow</a></p><p>This library was developed by Google in collaboration with Brain Team. TensorFlow is an ideal library to develop neural networks</p><p>✦<a href="https://javarevisited.blogspot.com/2018/10/top-8-python-libraries-for-data-science-machine-learning.html#axzz6mjRPASEY"> Scikit-learn</a></p><p>It is a Python library is associated with NumPy and SciPy. It is considered one of the best libraries for working with complex data.</p><p>✦ Numpy</p><p>TensorFlow and other libraries use Numpy internally for performing multiple operations on Tensors. Array interface is the best and the most important feature of Numpy.</p><p>✦ <a href="https://becominghuman.ai/5-best-courses-to-learn-pythons-pandas-libary-for-data-analysis-and-data-science-34b62abb0e96">Pandas</a></p><p>Pandas is a machine learning library in Python that provides data structures of high-level and a wide variety of tools for analysis. One of the great features of this library is the ability to translate complex operations with data using one or two commands.</p><p>There are many other <a href="https://medium.com/javarevisited/10-best-frontend-and-backend-frameworks-for-java-python-ruby-and-javascript-developers-cce3c951787a">python frameworks</a> and libraries are available which we didn’t mention in this article. let&#39;s see what kind of projects that a beginner can start with…</p><h4><strong>Python project ideas for beginners</strong></h4><p>Get your hands dirty✌</p><h4><strong>Make a Snake Game</strong></h4><p>Game development sometimes seems like a mystery. But Python’s influence in the game industry is also significant. And getting your hands dirty with a snake game is worth trying if you want to get started creating games with <a href="https://javarevisited.blogspot.com/2020/02/10-best-coursera-courses--for-python.html">Python</a>.</p><h4>2. Simple Chatbot With Python</h4><p>A chatbot is an AI that responds like a human whenever you visit a website. While you may not need to set yours up on the web yet, creating a command-line chatbot is a gateway for further creative exploration.</p><h4>3. Build a Web Scraper</h4><p>Web scraping is a plus if you want to explore the capabilities of Python in business analytics, whether it’s for tracking market trends or consumer behavior. Building a <a href="https://www.java67.com/2020/07/top-5-courses-to-learn-web-scraping-in-python-and-javascript.html">web scraper with Python</a> offers you the opportunity to learn how web crawlers work in real-life applications.</p><p>if you need more project ideas, you can also see these <a href="https://medium.com/javarevisited/8-projects-you-can-buil-to-learn-python-in-2020-251dd5350d56?source=---------8------------------">8 Python projects for beginners</a> to start with.</p><p><a href="https://medium.com/javarevisited/8-projects-you-can-buil-to-learn-python-in-2020-251dd5350d56">8 Projects You Can Build to Learn Python in 2021</a></p><h4><strong>Conclusion</strong></h4><p>I guess I have concentrated on the topics that are essential to explore. Once you learned basic concepts you can start building small projects. You can learn the rest of the things as you go further. Hope you like this article and especially new beginners to Python programming can benefit from this article. Thanks for reading 😊.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d74e0b202f2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/javarevisited/python-for-newbies-8d74e0b202f2">Python for newbies🐍</a> was originally published in <a href="https://medium.com/javarevisited">Javarevisited</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Single Sign-On(SSO) with Spring Boot]]></title>
            <link>https://medium.com/javarevisited/single-sign-on-sso-with-spring-boot-37fd7203240f?source=rss-6de5756df382------2</link>
            <guid isPermaLink="false">https://medium.com/p/37fd7203240f</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[single-sign-on]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Lahiru Kasun]]></dc:creator>
            <pubDate>Mon, 01 Mar 2021 04:15:24 GMT</pubDate>
            <atom:updated>2021-08-07T12:12:24.212Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*ooSvQ0wtBo_m12D6j99Pvw.png" /></figure><p>There’s a lot of confusion around what SSO and OAuth actually are. Some people think OAuth is a “security thing” and don’t really understand more than that. There is a set of buzzwords that comes when we talk about OAuth and Single Sign-On. So my aim is to clarify those doubts and hopefully leave you with a sense of how and where SSO and OAuth can benefit your application.</p><h3>What is Single Sign-On?</h3><p>Single Sign-On (SSO) is an authentication method that enables users to securely authenticate with multiple applications and websites by using just one set of credentials.</p><p>OAuth 2.0 and OpenID Connect both involve in SSO functionality. Lets take an example for better understand this concept. If you are logged in to Gmail, you can automatically gain access to YouTube, Google Drive, Google Photos, and other Google products.</p><p>SSO is actually a part of a larger concept called Federated Identity Management, FIM just refers to a trust relationship that is created between two or more domains or identity management systems. <a href="https://medium.com/javarevisited/top-10-courses-to-learn-spring-security-and-oauth2-with-spring-boot-for-java-developers-8f0222d6066d">OAuth 2 </a>could also be considered part of an FIM architecture. OAuth focuses on that trusted relationship allowing user identity information to be shared across the domains.</p><h3>OAuth 2.0</h3><p>OAuth(Open Authorization) is a standard protocol for delegated authorization. Simply put, OAuth is an authorization protocol that allows you to approve one application interacting with another, on your behalf without giving away your credentials.</p><p>Let&#39;s say ESPN is the client, and Facebook is the service provider(Resource Server), in the event ESPN suffers a breach, your Facebook password remains safe. Let&#39;s take a look at OAuth terminology and how OAuth flow works.</p><h4><strong>OAuth Actors</strong></h4><p>The actors in OAuth flows are as follows:</p><p><strong>Resource Owner </strong>: Owns the data in the resource server.</p><p><strong>Resource Server</strong> : The API which stores data the client want to access.</p><p><strong>Client </strong>: The application that wants to access your data.</p><p><strong>Authorization Server</strong> : The main engine of OAuth. Authorization server issues access tokens as well as client ID and secret.</p><h4><strong>OAuth 2 basic workflow</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AYWn2wAzQgZwx_PiJYXiWg.jpeg" /><figcaption>OAuth workflow</figcaption></figure><p>Lets understand workflow using an example. We are taking Facebook as our example. Lets say, we are using an app on Facebook, it asks you to show your profile and pictures. Facebook in this case Resource server(It has your login data and your pictures). The app is the consumer(client). As the user, we want to use the app to do something with our pictures. We specifically gave this app access to our pictures, which OAuth is managing in the background. When we give this app access to our pictures, app(client) obtains access token from authorization server and send it to the resource server. So that Client receive requested resources from the Resource Server.</p><p><strong>Which OAuth 2.0 Flow Should I Use?</strong></p><p>The <a href="https://auth0.com/docs/protocols/protocol-oauth2">OAuth 2.0 Authorization Framework</a> supports several different flows (or grants). Flows are ways of retrieving an Access Token. Deciding which one is suited for your use case depends mostly on your <a href="https://auth0.com/docs/applications">application type</a>, but other parameters weigh in as well, like the level of trust for the client, or the experience you want your users to have.</p><p><strong>OpenID Connect vs OAuth 2</strong></p><figure><a href="https://javarevisited.blogspot.com/2018/01/how-http-basic-authentication-works-in.html"><img alt="" src="https://cdn-images-1.medium.com/max/661/1*0V0Dy78JCYvZgfU1xBN9Iw.png" /></a><figcaption>OAuth vs OpenID Connect</figcaption></figure><ul><li><strong>OAuth 2.0</strong> is for authorization.</li><li><strong>OpenID Connect </strong>is for authentication.</li></ul><p>OAuth 2 is an authorization framework, OAuth’s lack of authentication guidance led to a number of confusing, which is precisely why OpenID connect was created. OIDC is newer standard that extends OAuth, adding support for authentication. Basically, OpenID Connect is an authentication layer that was built on top of OAuth 2.0 to provide Single Sign -On functionality.</p><p><strong>Client ID and Client Secret</strong></p><p>This ID is used to identify the client and the Authorization server. Client secret is a secret password that only the client and Authorization server know.</p><p>Client ID and Secret is generated by Authorization server. This is how Authorization server can verify the client.</p><p><strong>Access Token vs Refresh Token</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2JbDLAXnwCcww8Xmvdfj6w.png" /><figcaption>Access Token vs Refresh Token</figcaption></figure><p>When Access Tokens expire or become invalid but the application still needs to access a protected resource, the application faces the problem of getting a new Access Token without forcing the user to once again grant permission. To solve this problem, OAuth 2.0 introduced an artifact called a <a href="https://auth0.com/docs/tokens/refresh-token/current">Refresh Token</a>. A Refresh Token allows an application to obtain a new Access Token without prompting the user. The Refresh Token only goes back to the authorization server, the access token goes to the (RS) Resource Server.</p><p><strong>ID Token</strong></p><p>OpenID Connect (OIDC) is an authentication protocol built on top of OAuth 2.0. With OAuth 2.0, a user can authenticate with an authorization server and get you an Access Token that authorizes access to some server resources. With OIDC, they can also give you a token called an ID token.</p><p>The ID token contains information about a user and their authentication status. It can be used by your client both for authentication and as a store of information about that user. One OIDC flow can return both Access and ID tokens.</p><p><strong>JWT (JSON Web Token)</strong></p><p>JWT is just a token format and it is used for authorization. JWT tokens are JSON encoded data structures. Once the user is logged in, each subsequent request will include the JWT, allowing the user to access routes, services, and resources that are permitted with that token. Single Sign On is a feature that widely uses JWT nowadays.</p><p><strong>JWT vs OAuth 2</strong></p><p>JWT and OAuth2 are entirely difference and serve different purposes, but they are compatible and can be used to together. The OAuth2 protocol does not specify the format of the tokens. Therefore, JWT can be incorporated into the usage of OAuth2.</p><h4>Conclusion</h4><p>So we started off by talking about single sign-on and then we discussed the terminology related to SSO. Basically, in this article, we learnt how each of these things related to SSO and how OAuth flow works etc. In my second part of this article, we will learn how to implement the SSO feature in your<a href="https://medium.com/javarevisited/top-10-courses-to-learn-spring-boot-in-2020-best-of-lot-6ffce88a1b6e"> spring boot application</a>. Thanks for reading 😊.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37fd7203240f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/javarevisited/single-sign-on-sso-with-spring-boot-37fd7203240f">Single Sign-On(SSO) with Spring Boot</a> was originally published in <a href="https://medium.com/javarevisited">Javarevisited</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Guide to Spring Boot Security]]></title>
            <link>https://blog.devgenius.io/a-guide-to-spring-boot-security-ca50679c0c49?source=rss-6de5756df382------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca50679c0c49</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[spring-security]]></category>
            <dc:creator><![CDATA[Lahiru Kasun]]></dc:creator>
            <pubDate>Sun, 28 Feb 2021 16:56:43 GMT</pubDate>
            <atom:updated>2021-08-12T10:53:26.053Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VeohK39CeVEY3lO4" /><figcaption>Photo by <a href="https://unsplash.com/@security_concepts_services?utm_source=medium&amp;utm_medium=referral">Job Moses</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Overview</h3><p>In this article, We will have a look at how we can add security configurations to our Spring Boot project. We will learn how Spring Security default behavior works and then we will provide our own configuration.</p><h3>Terminology</h3><p>Before moving into implementation part, Its better to have an understanding of these commonly used terminology.</p><ul><li>Authentication</li></ul><p>Authentication is the process of verifying your login credentials. It is verifying who you are.</p><ul><li>Authorization</li></ul><p>Authorization is the next step after Authentication. It is the process of verifying that you can access to something. Basically it means what you are allowed to do.</p><ul><li>Granted Authority</li></ul><p>In Spring Security, we can think of each GrantedAuthority as an individual privilege. Examples could include READ_AUTHORITY, WRITE_PRIVILEGE etc. As you can see, we can refer to the concept of authority by using privilege as well.</p><h3>Spring Boot Security default behaviour</h3><p>In order to add security to your Spring Boot application, you need to add the security starter dependency as follows,</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f5337e644175ddb3455dfb469ea3f1b6/href">https://medium.com/media/f5337e644175ddb3455dfb469ea3f1b6/href</a></iframe><p>There are some predefined properties in Spring Security,</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8b7b317dcd20c2a89628feb972df6170/href">https://medium.com/media/8b7b317dcd20c2a89628feb972df6170/href</a></iframe><p>If you don’t configure the password using the predefined property <em>spring.security.user.password </em>and start the application, You will notice that a default password is randomly generated and printed in the console log:</p><pre>Using generated security password: 5c927b54-1a7e-4291-9dff-03965e0dca98</pre><p>Spring Security default behaviour does the following things your project,</p><ul><li>Adds mandatory authentication for URLs</li><li>Adds login form</li><li>Handles login error</li></ul><h3>Disabling the Auto-Configuration</h3><p>To discard the security auto-configuration and add our own configuration, we need to exclude the <em>SecurityAutoConfiguration</em> class.</p><p>This can be done via a simple exclusion</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/888fa0923b3bece3ebb02959232b1911/href">https://medium.com/media/888fa0923b3bece3ebb02959232b1911/href</a></iframe><p>Or by adding some configuration into the <em>application.properties</em> file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1c16e1a82735adbcf6732ddc83874a33/href">https://medium.com/media/1c16e1a82735adbcf6732ddc83874a33/href</a></iframe><h3>Providing Custom Configurations</h3><p>When we disabled security auto-configuration, we need to provide our own configurations. lets try to understand what is happening in the below code segment. @EnableWebSecurity allows spring to find and automatically apply the class to the global web security. WebSecurityConfigurerAdapter allows configuring things that impact all of web security. We have to use AuthenticationManagerBuilder so that we can set the configuration on it. we have configured this to be an in memory authentication. Then we need set user, password and role. Here we have configured two users one is user and other one is admin.</p><p>When we set passwords its important to use hashed passwords. In order to do that we create a bean of type PasswordEncoder. Then we have to configure the authorization in our application. When we extend WebSecurityConfigurerAdapter it overrides a couple of its methods to set some specifics of the web security configuration. The configure(HttpSecurity) method defines which URL paths should be secured and which should not.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/96d92e4b394d75b576521c576e9e4098/href">https://medium.com/media/96d92e4b394d75b576521c576e9e4098/href</a></iframe><p>I guess that summarizes my article which consists of main concepts in Spring Boot Security. To learn more about Spring Boot Security, go through <strong><em>s</em></strong><a href="https://www.baeldung.com/spring-boot-security-autoconfiguration"><strong><em>pring security</em></strong></a><strong><em> . </em></strong>There are many solutions like <a href="https://www.baeldung.com/security-spring">Baeldung</a> and LinkedIn learning to learn them at your own level. I encourage to check out them as securing your application is one of the most important thing to consider. Cheers!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca50679c0c49" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/a-guide-to-spring-boot-security-ca50679c0c49">A Guide to Spring Boot Security</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Dockerize your Spring Boot Application]]></title>
            <link>https://medium.com/javarevisited/how-to-dockerize-your-spring-boot-application-a2d2a84eda1a?source=rss-6de5756df382------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2d2a84eda1a</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Lahiru Kasun]]></dc:creator>
            <pubDate>Sat, 27 Feb 2021 17:03:28 GMT</pubDate>
            <atom:updated>2021-08-11T15:46:59.866Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*9Q5avdoWUDt6gvy67oHv5w.jpeg" /></figure><h3><strong>Overview</strong></h3><p>In this article, we will look at how we can dockerize our Spring Boot application. Nowadays in the Software development world, there is an urge to do container-based deployment. <a href="https://www.docker.com/">Docker </a>is an open-source technology used mostly for developing, shipping, and running applications. Once you package an application and all its dependencies into a Docker container, you ensure it will run in any environment.</p><h3>Terminology</h3><p>Before we dive into the process of dockerizing our application, it&#39;s better to have an understanding of docker terminology.</p><p><strong><em>docker file</em></strong></p><ul><li>A Docker File is a simple text file with instructions on how to build your images.</li></ul><p><strong><em>docker image</em></strong></p><ul><li>A <strong>Docker image</strong> contains a set of instructions for creating a <strong>container</strong> that can run on the <strong>Docker</strong> platform.</li></ul><p><strong><em>docker container</em></strong></p><ul><li>Containers are instances of Docker images that can be run using the Docker run command. The basic purpose of <a href="https://medium.com/javarevisited/top-15-online-courses-to-learn-docker-kubernetes-and-aws-for-fullstack-developers-and-devops-d8cc4f16e773">Docker </a>is to run containers.</li></ul><p><strong><em>docker hub/registry</em></strong></p><ul><li>The registry works basically like a <a href="https://medium.com/javarevisited/7-best-courses-to-learn-gitlab-for-developers-and-devops-engineers-10d4de4ae206">git repository</a>, allowing you to push and pull container images.</li></ul><p><strong><em>docker compose</em></strong></p><ul><li>Compose is a tool for defining and running multi-container Docker applications.</li></ul><p><strong><em>docker volume</em></strong></p><ul><li>In order to be able to save (persist) data and also to share data between containers, <a href="https://medium.com/javarevisited/10-free-courses-to-learn-docker-and-devops-for-frontend-developers-691ac7652cee">Docker </a>came up with the concept of <em>volumes</em>.</li></ul><h3>Let’s Dockerise!</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3oKIPku6fonFMEY2aI%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fanimation-jump-sea-3oKIPku6fonFMEY2aI&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2F3oKIPku6fonFMEY2aI%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="245" frameborder="0" scrolling="no"><a href="https://medium.com/media/6670b1bedcd526520ba86881464f23e9/href">https://medium.com/media/6670b1bedcd526520ba86881464f23e9/href</a></iframe><h4>1. Create Jar file</h4><p>As our first step, you need to create an executable jar file by using following command.</p><ul><li>If you are using <a href="https://medium.com/javarevisited/6-best-maven-courses-for-beginners-in-2020-23ea3cba89">maven</a></li></ul><pre><strong><em>$ mvn clean install</em></strong></pre><ul><li>If you are using <a href="https://medium.com/javarevisited/5-best-gradle-courses-and-books-to-learn-in-2021-93f49ce8ff8e">Gradle</a></li></ul><pre><strong><em>$ gradle build</em></strong></pre><p>You should be able to see the generated jar under the target folder in your spring boot project. The good thing about this jar file is that we can run this web application just like a console application. So our next step is to create a docker file.</p><h4>2. Create Dockerfile</h4><p>We have to create a docker file in our root directory of the project.</p><pre>FROM openjdk:8-jdk-alpine<br>VOLUME /tmp<br>ADD target/Docker-0.0.1-SNAPSHOT.jar app.jar<br>ENTRYPOINT [&quot;java&quot;,&quot;-jar&quot;,&quot;/app.jar&quot;]</pre><p>FROM : we are building our image from the base image openjdk, we are taking OpenJDK as a parent image and we are building on top of that</p><p>VOLUME : This is needed for the <a href="https://javarevisited.blogspot.com/2019/02/difference-between-contextconfiguration-and-springapplicationConfiguration-annotations-in-spring-boot-testing.html">spring boot application</a> because tomcat internally try to create a working folder inside this volume</p><p>ADD : It is adding our jar to the docker image</p><p>ENTRYPOINT : It specifies entry point for our application to run.</p><h4>3. Build Docker Image</h4><p>Go to the docker file location and open the command prompt and run the following commands.</p><ul><li>If you are using <a href="https://medium.com/javarevisited/top-10-free-courses-to-learn-maven-jenkins-and-docker-for-java-developers-51fa7a1e66f6">maven</a></li></ul><pre>$ docker build -t tag-name/image-name .</pre><ul><li>If you are using <a href="https://javarevisited.blogspot.com/2020/06/maven-vs-gradle-beginners-introduction.html#axzz6dHZ7oEpK">Gradle</a></li></ul><pre>$ docker build — build-arg JAR_FILE=build/libs/*.jar -t tag-name/image-name .</pre><p>You can check existing images by using the following command.</p><pre>docker image ls</pre><p>Note: now you can push your image to the <a href="https://medium.com/javarevisited/5-best-docker-courses-for-java-and-spring-boot-developers-bbf01c5e6542">docker hub</a>. So that others can pull your image and run docker images. We can create multiple containers using the same image.</p><h4>4. Run Docker Container</h4><p>In order to run our docker image, we have to do the port mapping. It is because our application is running on some kind of virtual environment, so we have to do the port mapping from your host machine to the docker-machine. Use the following command to do that.</p><pre>$ docker run -p 9090:8080 -t tag-name/image-name</pre><p>If you want to stop our container use the following command.</p><pre>$ docker container stop container ID</pre><p><em>To learn more about docker, go through </em><a href="https://docs.docker.com/get-started/overview/"><strong><em>getting started with docker</em></strong></a></p><p>I hope you have understood how to containerize a Spring Boot application using Docker. Thanks for reading 😊.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2d2a84eda1a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/javarevisited/how-to-dockerize-your-spring-boot-application-a2d2a84eda1a">How To Dockerize your Spring Boot Application</a> was originally published in <a href="https://medium.com/javarevisited">Javarevisited</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hands-On Spring Boot]]></title>
            <link>https://lahirukasun666.medium.com/hands-on-spring-boot-79f23ab56994?source=rss-6de5756df382------2</link>
            <guid isPermaLink="false">https://medium.com/p/79f23ab56994</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[spring]]></category>
            <dc:creator><![CDATA[Lahiru Kasun]]></dc:creator>
            <pubDate>Sat, 27 Feb 2021 16:41:09 GMT</pubDate>
            <atom:updated>2021-02-27T16:41:09.979Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*5eWvY-vQMgQWuLnbeGAp7g.jpeg" /></figure><p>Hello! It has been a great journey from the prevailing global pandemic. This article will be a basic guide/overview of Spring Boot. Subsequent series (not planned at the time of writing) might contain more in-depth usage for Spring Boot.</p><h4>Why Spring Boot?</h4><p>Spring Boot is a lightweight backend framework written in java. Spring Boot provides RAD (Rapid Application Development) feature to the Spring framework. You can reduce a lot of boilerplates when using Spring Boot. As a result, It reduces the cost and development time of the application.</p><p>Today Spring Boot has become popular such that companies like Trivago, Walmart and Netflix and many more. Spring Boot consists of Starters, Actuator, Spring Boot CLI and AutoConfigurator and some other features. There are other topics such as spring boot Database, Exception handling, Security and Testing which will be discussed in upcoming articles.</p><h4>Advantages of using Spring Boot</h4><p>Spring Boot offers the following advantages to its developers</p><ul><li>There is no requirement for XML configuration.</li><li>It increases productivity and reduces development time.</li><li>It offers a CLI tool for developing and testing the Spring Boot application.</li><li>It offers the number of plug-ins.</li></ul><h4>How it works?</h4><p>The entry point of the Spring Boot Application is the class contains @SpringBootApplication annotation. This class have the main method to run the Spring Boot application. @SpringBootApplication annotation includes @EnableAutoConfiguration, @ComponentScan and @SpringBootConfiguration annotations</p><p>Spring Boot automatically scans all the components included in the project by using <strong>@ComponentScan</strong> annotation.</p><h4>Spring Boot Starters</h4><p>Spring Boot built in starters make development faster and more simple. You can use Spring Boot starters by adding them to pom.xml file of your project. For example, if you want to build web application, including restful applications using spring MVC, you just need to include <strong>spring-boot-starter-web</strong> dependency in your project.</p><p>Spring Boot framework provides number of starters under the org.springframework.boot group. lets have a look at most commonly used starters and its usages.</p><p><strong>Spring Boot Starter Security dependency</strong> is used to provide security of the spring boot application.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d3050c22ad0481c24e269eb8345c0783/href">https://medium.com/media/d3050c22ad0481c24e269eb8345c0783/href</a></iframe><p><strong>Spring Boot Starter Actuator dependency</strong> is used to monitor and manage your application.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b20c461d7ad0f527a6e4dc2c43e7cc81/href">https://medium.com/media/b20c461d7ad0f527a6e4dc2c43e7cc81/href</a></iframe><p><strong>Spring Boot Starter web dependency</strong> is used to build restful applications using spring MVC.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fda991fe76d0c5a4089024a6c01d3b1e/href">https://medium.com/media/fda991fe76d0c5a4089024a6c01d3b1e/href</a></iframe><p><strong>Spring Boot Starter Test dependency</strong> is used for test spring boot applications with libraries including JUnit and Mockito.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0198e7ae0fcb3190e3ecce970df36553/href">https://medium.com/media/0198e7ae0fcb3190e3ecce970df36553/href</a></iframe><h4>Auto Configuration</h4><p>One of the common issue with spring is, we need to configure lot of XML based files. But Spring Boot Auto Configuration automatically configures your Spring application based on the JAR dependencies you added in the project.</p><p>For this purpose, you need to add @EnableAutoConfiguration annotation to your main class file. We can also add @SpringBootApplication annotation as it is consists of @EnableAutoConfiguration annotation and other two annotations(@ComponentScan, @Configuration).</p><p>Lets take a look at the following code for a better understanding</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/06ccc55491f0af6536f1d70ba43cb229/href">https://medium.com/media/06ccc55491f0af6536f1d70ba43cb229/href</a></iframe><h4>Actuator</h4><p>Spring Boot Actuator is a sub-project of the Spring Boot Framework. It includes a number of additional features that help us to monitor and manage the spring boot application. In order to use Spring Boot actuator endpoints to your Spring Boot application, we need to add the Spring Boot Starter actuator dependency in our pom.xml file. <em>To get in-depth knowledge on Spring Boot Actuator, Go Through </em><a href="https://www.baeldung.com/spring-boot-actuators"><strong><em>Spring Boot Actuator</em></strong></a></p><p>Lets have a look at some of the important Spring Boot Actuator endpoints.</p><p>/metrics : To view the application metrics such as memory used, memory free, threads, system uptime etc.</p><p>/health : To view the application health.</p><p>/info : view the information about the Spring Boot application.</p><p>/beans : To view the Spring beans and its types, scopes and dependency.</p><p><strong>Found it Interesting?</strong><br>Please show your support by 👏.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79f23ab56994" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>