Hello everyone,
I spent a day trying to figure that out, followed a bunch of tutorials (ie. this one) and I have no luck. I’m trying to run Flowable in a spring boot app and expose the REST endpoints, so that other service could just call the POST /repository/deployments
. The endpoints are just not there. I added Actuator to see the mappings and the Flowable endpoints are not there (my custom controller is, so the Spring configuration generally works).
My build.gradle
:
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.2'
id 'io.spring.dependency-management' version '1.1.2'
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.flowable:flowable-spring-boot-starter-rest:6.8.0'
runtimeOnly 'com.h2database:h2'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
}
The application.properties
:
management.endpoints.web.exposure.include=*
management.endpoint.health.show-details=ALWAYS
The logs output:
18:19:30: Executing 'bootRun'...
> Task :compileJava UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
> Task :resolveMainClassName UP-TO-DATE
> Task :bootRun
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.1.2)
2023-08-23T18:19:31.690+02:00 INFO 29329 --- [ main] c.b.f.FlowableRestApplication : Starting FlowableRestApplication using Java 17.0.7 with PID 29329 (/Users/mpiatkowski/work/sandbox/flowable-rest/build/classes/java/main started by mpiatkowski in /Users/mpiatkowski/work/sandbox/flowable-rest)
2023-08-23T18:19:31.692+02:00 INFO 29329 --- [ main] c.b.f.FlowableRestApplication : No active profile set, falling back to 1 default profile: "default"
2023-08-23T18:19:32.271+02:00 INFO 29329 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2023-08-23T18:19:32.276+02:00 INFO 29329 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2023-08-23T18:19:32.277+02:00 INFO 29329 --- [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.11]
2023-08-23T18:19:32.335+02:00 INFO 29329 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2023-08-23T18:19:32.336+02:00 INFO 29329 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 618 ms
2023-08-23T18:19:32.654+02:00 INFO 29329 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 13 endpoint(s) beneath base path '/actuator'
2023-08-23T18:19:32.691+02:00 INFO 29329 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2023-08-23T18:19:32.699+02:00 INFO 29329 --- [ main] c.b.f.FlowableRestApplication : Started FlowableRestApplication in 1.178 seconds (process running for 1.346)
The endpoints are not there. Am I missing some configuration?