<?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"><channel><title><![CDATA[DevByAmit]]></title><description><![CDATA[DevByAmit]]></description><link>https://staticjava.com</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 09:02:06 GMT</lastBuildDate><atom:link href="https://staticjava.com/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Upgrading Spring Boot version from 3.0.x to 3.3.x]]></title><description><![CDATA[The spring boot version 3.0.6 comes with tomcat-embed-core version 10.1.8 which comes with CVE vulnerabilities.Our security scan spotted this vulnerability and ask us to fix it before going live. Hence, we decided to upgrade our spring boot version.T...]]></description><link>https://staticjava.com/upgrading-spring-boot-version-from-30x-to-33x</link><guid isPermaLink="true">https://staticjava.com/upgrading-spring-boot-version-from-30x-to-33x</guid><category><![CDATA[statusprinter2]]></category><category><![CDATA[GitHub]]></category><category><![CDATA[copilot]]></category><category><![CDATA[upgrade]]></category><category><![CDATA[Springboot]]></category><category><![CDATA[prompts]]></category><dc:creator><![CDATA[Amit Lande]]></dc:creator><pubDate>Fri, 02 May 2025 12:34:32 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1746351248434/018500a6-a31d-47c7-93ea-9adbbbe2a25f.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>The spring boot version 3.0.6 comes with tomcat-embed-core version 10.1.8 which comes with CVE vulnerabilities.<br />Our security scan spotted this vulnerability and ask us to fix it before going live. Hence, we decided to upgrade our spring boot version.<br />The vulnerability free version of tomcat-embed-core near to 10.1.8 is 10.1.35 and latest spring boot version supporting it is 3.3.9. Hence, we decided to upgrade to spring boot version 3.3.9.</p>
<table><tbody><tr><td><p><strong>Library</strong></p></td><td><p><strong>Old Version</strong></p></td><td><p><strong>New Version</strong></p></td><td><p><strong>Changes</strong></p></td></tr><tr><td><p>Springboot.version<br />(for group id org.springframework.boot)</p></td><td><p>3.0.6</p></td><td><p>3.3.9</p></td><td><p></p></td></tr><tr><td><p>Logback-core, logback-classic</p></td><td><p>1.4.7</p></td><td><p>1.5.15</p></td><td><p>The tag &lt;timeBasedFileNamingAndTriggeringPolicy/&gt; needs to be removed in logback.xml file. You can use &lt;maxFileSize/&gt; tag directly inside &lt;fileNamePattern/&gt; tag only.</p></td></tr><tr><td><p>Spring-bean</p></td><td><p>6.0.3</p></td><td><p>6.1.15</p></td><td><p></p></td></tr><tr><td><p>spring-integration-jms</p></td><td><p>5.5.17</p></td><td><p>6.1.4</p></td><td><p>The get() method of IntegrationComponentSpec class needs to be change to getObject().</p></td></tr><tr><td><p>Guava</p></td><td><p>31.1-jre</p></td><td><p>33.4.8-jre</p></td><td><p></p></td></tr><tr><td><p>Javax.jms-api </p></td><td><p>2.0.1</p></td><td><p>Jakarta.jms-api (3.1.0)</p></td><td><p>Change all javax. Imports to Jakarta </p></td></tr><tr><td><p>Sol-jms</p></td><td><p>10.19.0</p></td><td><p>Sol-jms-jakarta (10.20.0)</p></td><td><p>Change all javax. Imports to Jakarta </p></td></tr><tr><td><p>spring-jms</p></td><td><p>5.3.2</p></td><td><p>6.1.15</p></td><td><p></p></td></tr></tbody></table>

<p>Here are some tips:</p>
<ol>
<li><p>Always use maven dependency tree command when you upgrade any library version.<br /> \&gt; mvn dependency:tree</p>
</li>
<li><p>I have used GitHub Copilot for resolving most of the dependency issues and resolving errors.</p>
<p> Here are some of my prompts to copilot:</p>
<ul>
<li><p>Do we need spring-boot-starter-logging if logback lib is present?</p>
</li>
<li><p>Why the error: java.lang.NoClassDefFoundError: ch/qos/logback/core/util/StatusPrinter2</p>
</li>
<li><p>What spring bean version compatible with spring boot 3.3.9</p>
</li>
<li><p>What about spring-jms version?</p>
</li>
<li><p>What solace-jms-spring-boot-autoconfigure version to use?</p>
</li>
<li><p>create connectionfactory instance to set in setTargetConnectionFactory method (this is for solace jms configuration)</p>
</li>
<li><p>sol-jms version 10.19.0 not using jakarta, suggest me supporting version</p>
</li>
</ul>
</li>
<li><p>Only successful build doesn’t mean all ok, you need to run the app after every successful build.</p>
</li>
<li><p>Always use <a target="_blank" href="https://mvnrepository.com/">https://mvnrepository.com/</a> to search libraries and check vulnerability free libraries.</p>
</li>
</ol>
]]></content:encoded></item></channel></rss>