Skip to content

bwolff/rwt-on-spring-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eclipse RWT on Spring Boot

This small example demonstrates how to integrate Eclipse RWT (the UI technology of Eclipse RAP) in standalone mode in a Spring Boot web application using Gradle as the buildtool.

This example shows:

  • how to declare the RWT and JFace dependencies in a Gradle build;
  • how to integrate the moving parts of RWT with a Spring Boot web application (Spring MVC);
  • how to leverage Spring managed beans, dependency injection and a pure programmatic way of configuring and wiring together an RWT application (no need for a web.xml);
  • how to run UI unit tests with the RWT test fixture;

The example is not very sophisticated and there is a lot more to explore, but you should get the idea ;).

Have fun playing around!

Getting Started

Requirements

Java 11 (or later)

Running locally

You can use the Gradle wrapper that comes with the project to run the commands. If you are on Windows, use gradlew.bat instead.

gradlew bootRun

This Gradle command will build and run the application in an embedded Tomcat container. After the app has fully started, open a browser and visit http://localhost:8080/ or http://localhost:8080/hello

Alternatively, you can use bootJar to create a runnable standalone jar file with an embedded Tomcat container and run it like this:

gradlew bootJar

java -jar build/libs/rwt-on-spring-boot-0.0.1-SNAPSHOT.jar

Deploying as a WAR file

To build a WAR file that you can deploy to a Tomcat container installation or run in a Docker image, simply use war:

gradlew war

The resulting WAR file will be located in build/libs.

Additional Links

These additional references should also help you:

About

Example for Eclipse RWT on Spring Boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published