This is an example project to setup SOAP and REST web services using Apache Tomcat 10 and Apache CXF on IntelliJ IDEA Community Edition.
This README describes how to setup this project in IntelliJ IDEA Community Edition.
- Git
- IntelliJ IDEA Community Edition
- Apache Tomcat 10
The first step is to clone this repo. To do that we can execute the following command on the terminal:
git clone https://github.com/al3x-13/intellij-tomcat-example.git
-
Open the project in IntelliJ by clicking Open and then select the path of the repo.
-
Install Smart Tomcat plugin. Go to File > Settings > Plugins, search for 'Smart Tomcat', click Install and then Apply.
-
Setup Tomcat server. Go to File > Settings > Tomcat Server, click on the + icon and select the path of the Tomcat 10 installation. At the end click Apply.
-
Create Tomcat server run configuraion. Click in the top-right corner of the IDE where it says Current File and then Edit Configurations... > New run... > Smart Tomcat.
-
In this window set the Name to your desire and the Tomcat server option (from the dropdown) to the server version you specified previously.
-
Run the Tomcat server. To run it you just need to press the Run icon in the top-right corner.
-
Verification. To verify that the server ran successfully just open a browser and paste the url displayed on the IDE in the url bar.
DONE