@AvijitBarua the problem is not the code itself. In Eclipse I can receive some assistence from the IDE when it highlights the code and show some tips and hints like 'This tag is wrong' or 'I can't find the JSP file you're including here'. In STS it is just a plain text file. STS don't know it is a JSP file. Nothing wrong when compile and run. Apr 20, 2020 Spring Boot Dashboard is a lightweight extension in Visual Studio Code (VS Code). With an explorer in the side bar, you can view and manage all available Spring Boot projects in your workspace. @AvijitBarua the problem is not the code itself. In Eclipse I can receive some assistence from the IDE when it highlights the code and show some tips and hints like 'This tag is wrong' or 'I can't find the JSP file you're including here'. In STS it is just a plain text file. STS don't know it is a JSP file. Nothing wrong when compile and run.
When we develop web applications with Java, we have to restart the server to pick up all our changes. This kills productivity. Spring Boot Developers Tools provides solutions to automatically pick up changes without a complete server restart. Let's get productive with Spring Boot Developer Tools.
You Will Learn
How to use Spring Boot Developer Tools
What kind of changes Spring Boot Developer Tools picks up automatically
How you can use Live Reload to be more productive
The Problem With Server Restarts
When we develop our applications (web or RESTful API), we want to be able to test our changes quickly.
Typically, in the Java world, we need to restart the server to pick up changes. Sure, there are plugins like JRebel that help, but you need shell out money for them. Jiffy lube coupon $30 off.
Restarting a server takes about 1-5 minutes based on the size of the application. A typical developer does 30-40 restarts in a day. I leave it as an exercise in basic math to determine how much time a developer can save if changes are automatically picked up as soon as they're made.
That's where Spring Boot Developer Tools comes into the picture.
Adding Spring Boot Developer Tools to your project is very simple. First, add this dependency to your Spring Boot Project pom.xml:
Second, restart the application.
You are all set.
Don't believe me? Go ahead and make a simple change to your controller. You will see that these changes are automatically picked up.
Note: By default, any entry on the classpath that points to a folder will be monitored for changes.
Here are few important things to note:
These folders will not trigger a reload by default
/META-INF/maven
/META-INF/resources
/resources
/static
/public
/templates
Visual Studio Download
You can configure additional folders to scan below:
application.properties:
You can also configure folders to exclude:
Auto Refresh Your Browser With LiveReload
Spring Tool Suite For Visual Studio Code
Spring Boot Developer Tools auto-loads the changes to an application. But if you are developing a web application, you would need to refresh the browser to pick up the change.
LiveReload aims to solve this problem, offering extensions for browsers.
Download them from http://livereload.com/extensions/
Once you install the LiveReload plugin for your browser, you will see that the page auto-refreshes when you make a change in your application code.
Note: LiveReload is a technology in progress! Expect a few problems!
Visual Suite Log In
Spring Tool Suite Visual Studio Code Download For Windows 10
Next Steps
Node Js Downloads
Learn the basics of Spring Boot: Spring Boot vs. Spring vs. Spring MVC, Auto Configuration, Spring Boot Starter Projects, Spring Boot Starter Parent, Spring Boot Initializr