Install devonfw-ide:
-
Install git if not already installed (download and run installer)
-
Create the folder
C:\Projects\devonfw-training
(if you do not have Windows, useprojects/devonfw-training
in root or if not permitted in home). -
Download
devonfw-ide-scripts
package from here -
Extract the contents of
devonfw-ide-scripts
package into the above created folderdevonfw-training
. The contents of the package shall be directly in the folderdevonfw-training
without any sub-folder such asdevonfw-ide-scripts
. If you have no idea how to do this, install 7-Zip and use it to extract. -
Run the
setup
script (on Windowssetup.bat
) fromdevonfw-training
folder. -
Enter this settings-URL: https://github.com/devonfw-training/java-spring-settings.git
-
Read and confirm the terms-of-use.
-
wait until the setup process has completed.
Now we create a new devon4j
project:
-
Go to folder
workspaces/main
indevonfw-training
. -
In Windows-Explorer right-click it and select
Git Bash Here
. -
In your
workspaces/main
folder run this command:devon java create org.example.app
-
cd app
-
mvn clean install
Next, we import the new app
project into our Eclipse IDE:
-
devon eclipse
-
In Eclipse
Import
asExisting Maven Project
, there clickBrowse
and choose your generatedapp
folder. -
Now select
SpringBootApp
fromapp-core
and doRun As
with optionJava Application
. -
Visit http://localhost:8081 in your browser
-
Login as
admin
with same password (seeBaseWebSecurityConfig.configureGlobal
).