difference between `gradlew bootRun` and `gradlew run`

40 views
Skip to first unread message

JiangYing

unread,
Sep 25, 2022, 1:46:17 AM9/25/22
to CAS Community
I am wondering the difference between `gradlew bootRun` and `gradlew run`

and which one is better choice for a normal user.

JiangYing

unread,
Sep 25, 2022, 2:58:12 AM9/25/22
to CAS Community
Inside cas overlay 6.6.0, when I add line `cas.standalone.configuration-directory=classpath:.` to `src/main/resources/bootstrap.properties`

I can start the server with `gradlew bootRun`.


while `gradlew run` fails with:

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under 'cas.standalone.configuration-directory' to java.io.File:

    Property: cas.standalone.configuration-directory
    Value: "classpath:."
    Origin: class path resource [bootstrap.properties] - 38:40
    Reason: failed to convert java.lang.String to java.io.File (caused by java.lang.IllegalStateException: Could not retrieve file for class path resource []: class path resource [] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/home/jiangying/code/yiigle_cas_template/build/libs/app.war!/WEB-INF/classes!/)

Action:

Update your application's configuration
Reply all
Reply to author
Forward
0 new messages