<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Spring on SivaLabs</title><link>https://www.sivalabs.in/categories/spring/</link><description>Recent content in Spring on SivaLabs</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 10 Nov 2026 12:11:30 +0530</lastBuildDate><atom:link href="https://www.sivalabs.in/categories/spring/rss.xml" rel="self" type="application/rss+xml"/><item><title>Spring Cloud Tutorials – Auto Refresh Config Changes using Spring Cloud Bus</title><link>https://www.sivalabs.in/blog/spring-cloud-tutorials-auto-refresh-config-changes-using-spring-cloud-bus/</link><pubDate>Mon, 14 Aug 2017 12:30:43 +0000</pubDate><guid>https://www.sivalabs.in/blog/spring-cloud-tutorials-auto-refresh-config-changes-using-spring-cloud-bus/</guid><description>&lt;p&gt;In the previous article, &lt;a href="https://www.sivalabs.in/blog/spring-cloud-tutorials-introduction-to-spring-cloud-config-server/"&gt;Introduction to Spring Cloud Config Server&lt;/a&gt;, we have seen how to use Spring Cloud Config Server.&lt;/p&gt;
&lt;p&gt;But the problem is that to reload the config changes in Config Client applications, we need to trigger the &lt;strong&gt;/refresh&lt;/strong&gt; endpoint manually. This is not practical or viable if you have a large number of applications.&lt;/p&gt;</description></item><item><title>Spring Cloud Tutorials – Introduction to Spring Cloud Config Server</title><link>https://www.sivalabs.in/blog/spring-cloud-tutorials-introduction-to-spring-cloud-config-server/</link><pubDate>Mon, 14 Aug 2017 03:35:07 +0000</pubDate><guid>https://www.sivalabs.in/blog/spring-cloud-tutorials-introduction-to-spring-cloud-config-server/</guid><description>&lt;p&gt;Spring Boot provides a lot of flexibility in externalizing configuration properties via properties or YAML files. We can also configure properties for each environment (dev, qa, prod, etc.) separately using profile-specific configuration files such as &lt;strong&gt;application.properties&lt;/strong&gt;, &lt;strong&gt;application-dev.properties&lt;/strong&gt;, &lt;strong&gt;application-prod.properties&lt;/strong&gt;, etc. But once the application is started, we cannot update the properties at runtime. If we change the properties, we need to restart the application to use the updated configuration properties.&lt;/p&gt;</description></item><item><title>Getting Started with Spring Boot in Intellij IDEA Community Edition</title><link>https://www.sivalabs.in/blog/getting-started-springboot-intellij-idea-community-edition/</link><pubDate>Wed, 07 Sep 2016 09:53:35 +0000</pubDate><guid>https://www.sivalabs.in/blog/getting-started-springboot-intellij-idea-community-edition/</guid><description>&lt;p&gt;We can use &lt;strong&gt;IntelliJ IDEA Community Edition&lt;/strong&gt; for working with &lt;strong&gt;Spring Boot&lt;/strong&gt; applications, as we don&amp;rsquo;t need support for configuring servers like Tomcat, Wildfly, etc., and can simply run the applications by running the &lt;strong&gt;main()&lt;/strong&gt; method.&lt;/p&gt;
&lt;p&gt;However, there is no provision in IntelliJ IDEA Community Edition to create a Spring Boot application directly, the way it is supported in the Ultimate Edition.&lt;/p&gt;</description></item><item><title>Creating Custom Spring Boot Starter for Twitter4j</title><link>https://www.sivalabs.in/blog/creating-custom-springboot-starter-for/</link><pubDate>Fri, 08 Apr 2016 06:57:23 +0000</pubDate><guid>https://www.sivalabs.in/blog/creating-custom-springboot-starter-for/</guid><description>&lt;p&gt;&lt;strong&gt;Spring Boot&lt;/strong&gt; provides a lot of starter modules to get up and running quickly. Spring Boot&amp;rsquo;s auto-configure mechanism takes care of configuring Spring Beans on our behalf based on various criteria.&lt;/p&gt;
&lt;p&gt;In addition to the Spring Boot starters that come out-of-the-box provided by the Core Spring Team, we can also create our own starter modules.&lt;/p&gt;
&lt;p&gt;In this post, we will look into how to create a custom Spring Boot starter. To demonstrate, we are going to create a &lt;strong&gt;twitter4j-spring-boot-starter&lt;/strong&gt; which will auto-configure Twitter4J beans.&lt;/p&gt;</description></item><item><title>Spring Boot : Working with JOOQ</title><link>https://www.sivalabs.in/blog/springboot-working-with-jooq/</link><pubDate>Tue, 15 Mar 2016 07:13:21 +0000</pubDate><guid>https://www.sivalabs.in/blog/springboot-working-with-jooq/</guid><description>&lt;p&gt;In my previous article, &lt;a href="https://www.sivalabs.in/blog/springboot-working-with-mybatis/"&gt;Spring Boot: Working with MyBatis&lt;/a&gt;, we learned how to use the Spring Boot MyBatis Starter to quickly get up and running with Spring and MyBatis. In this article, we are going to learn about how to use the Spring Boot jOOQ Starter.&lt;/p&gt;
&lt;p&gt;jOOQ (jOOQ Object Oriented Querying) is a persistence framework that embraces SQL.&lt;/p&gt;</description></item><item><title>Spring Boot : Working with MyBatis</title><link>https://www.sivalabs.in/blog/springboot-working-with-mybatis/</link><pubDate>Mon, 14 Mar 2016 07:10:42 +0000</pubDate><guid>https://www.sivalabs.in/blog/springboot-working-with-mybatis/</guid><description>&lt;p&gt;&lt;strong&gt;MyBatis&lt;/strong&gt; is an SQL Mapping framework with support for custom SQL, stored procedures, and advanced mappings.&lt;/p&gt;

 &lt;blockquote&gt;
 &lt;p&gt;Spring Boot doesn&amp;rsquo;t provide official support for MyBatis integration, but the MyBatis community built a Spring Boot starter for MyBatis.&lt;/p&gt;

 &lt;/blockquote&gt;</description></item><item><title>Spring Boot : Working with JdbcTemplate</title><link>https://www.sivalabs.in/blog/springboot-working-with-jdbctemplate/</link><pubDate>Mon, 14 Mar 2016 07:08:22 +0000</pubDate><guid>https://www.sivalabs.in/blog/springboot-working-with-jdbctemplate/</guid><description>&lt;p&gt;Spring provides a nice abstraction on top of the JDBC API using &lt;strong&gt;JdbcTemplate&lt;/strong&gt; and also provides great transaction management capabilities
using an annotation-based approach.&lt;/p&gt;</description></item><item><title>How Spring Boot AutoConfiguration magic works?</title><link>https://www.sivalabs.in/blog/how-springboot-autoconfiguration-magic/</link><pubDate>Sun, 13 Mar 2016 07:04:56 +0000</pubDate><guid>https://www.sivalabs.in/blog/how-springboot-autoconfiguration-magic/</guid><description>&lt;p&gt;In my previous post, &lt;a href="https://www.sivalabs.in/blog/why-springboot/"&gt;Why Spring Boot?&lt;/a&gt;, we looked at how to create a Spring Boot application. But you may or may not understand what is going on behind the scenes. You may want to understand the magic behind Spring Boot&amp;rsquo;s AutoConfiguration.&lt;/p&gt;</description></item><item><title>Why Spring Boot?</title><link>https://www.sivalabs.in/blog/why-springboot/</link><pubDate>Sun, 13 Mar 2016 07:02:10 +0000</pubDate><guid>https://www.sivalabs.in/blog/why-springboot/</guid><description>&lt;p&gt;Spring is a very popular Java-based framework for building web and enterprise applications. Unlike many other frameworks which focus on only one area, the Spring framework provides a wide variety of features addressing modern business needs via its portfolio of projects.&lt;/p&gt;
&lt;p&gt;Spring framework provides the flexibility to configure beans in multiple ways, such as &lt;strong&gt;XML&lt;/strong&gt;, &lt;strong&gt;Annotations&lt;/strong&gt;, and &lt;strong&gt;JavaConfig&lt;/strong&gt;. As the number of features increased, the complexity also increased, and configuring Spring applications became tedious and error-prone.&lt;/p&gt;</description></item><item><title>Retrying Method Execution using Spring AOP</title><link>https://www.sivalabs.in/blog/retrying-method-execution-using-spring-aop/</link><pubDate>Tue, 05 Jan 2016 15:40:36 +0000</pubDate><guid>https://www.sivalabs.in/blog/retrying-method-execution-using-spring-aop/</guid><description>&lt;p&gt;One of my blog followers sent an email asking me to show an example of &lt;strong&gt;&amp;ldquo;Real-World Usage of Spring AOP&amp;rdquo;&lt;/strong&gt;. He mentioned that in most examples, the usage of &lt;strong&gt;Spring AOP&lt;/strong&gt; is demonstrated for &lt;strong&gt;logging method entry/exit&lt;/strong&gt;, &lt;strong&gt;Transaction management&lt;/strong&gt;, or &lt;strong&gt;Security checks&lt;/strong&gt;. He wanted to know how Spring AOP is being used in &lt;strong&gt;&amp;ldquo;Real Projects for Real Problems&amp;rdquo;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;So I would like to show how I have used Spring AOP in one of my projects to handle a real problem.&lt;/p&gt;</description></item><item><title>A bunch of Maven Archetypes for Spring based Projects</title><link>https://www.sivalabs.in/blog/a-bunch-of-maven-archetypes-for-spring-based-projects/</link><pubDate>Mon, 29 Oct 2012 12:18:00 +0000</pubDate><guid>https://www.sivalabs.in/blog/a-bunch-of-maven-archetypes-for-spring-based-projects/</guid><description>&lt;p&gt;Maven is a good project management tool that greatly reduces the amount of time we spend creating Java projects with a proper structure. With so many predefined Maven archetypes, it is even easier to create projects by simply selecting the archetype based on the technologies we need and the type (jar/war/ear) of project we want to create.&lt;/p&gt;
&lt;p&gt;However, sometimes those predefined archetypes&amp;rsquo; structures may not suit our needs well, or we may need some more additions to the pre-configured dependencies/frameworks, etc.&lt;/p&gt;</description></item></channel></rss>