Spring and Camunda

Hey,

i try to combine camunda with spring rest-service.
I cant map the @RestController.
Im pretty sure that i have an error in the camunda configuration which is disturbing the spring framework.

iam using the camunda tomcat distribution;

my pom:
<artifactId>Spring_Camunda_Angular</artifactId> <version>0.1.0</version> <properties> <camunda.version>7.5.0</camunda.version> </properties> <dependencyManagement> <dependencies> <dependency> <groupId>org.camunda.bpm</groupId> <artifactId>camunda-bom</artifactId> <version>${camunda.version}</version> <scope>import</scope> <type>pom</type> </dependency> </dependencies> </dependencyManagement> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.3.5.RELEASE</version> </parent> <dependencies> <dependency> <groupId>org.camunda.bpm</groupId> <artifactId>camunda-engine</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.camunda.bpm</groupId> <artifactId>camunda-engine-spring</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.jayway.jsonpath</groupId> <artifactId>json-path</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> <scope>provided</scope> </dependency> </dependencies> <repositories> <repository> <id>spring-releases</id> <url>https://repo.spring.io/libs-release</url> </repository> </repositories> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> </project>

iam starting the spring application with:

`@SpringBootApplication
public class Application extends SpringBootServletInitializer {

@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    return application.sources(Application.class);
}

public static void main(String[] args) throws Exception {
    System.out.println("TEST");
    SpringApplication.run(Application.class, args);

}}`

the Restcontroller looks like:
`@RestController
public class GreetingController {

private static final String template = "Hello, %s!";
private final AtomicLong counter = new AtomicLong();

@RequestMapping(value = "/greeting")
public Greeting greeting(@RequestParam(value = "name", defaultValue = "World") String name) {
    System.out.println("TEST!");
    return new Greeting(counter.incrementAndGet(), String.format(template, name));
}}

but there is no mapping found:

2016-06-20 15:23:46.161 INFO 2576 --- [gine[Catalina]]] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5e00af9d: startup date [Mon Jun 20 15:23:44 CEST 2016]; root of context hierarchy 2016-06-20 15:23:46.255 INFO 2576 --- [gine[Catalina]]] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 2016-06-20 15:23:46.256 INFO 2576 --- [gine[Catalina]]] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 2016-06-20 15:23:46.261 INFO 2576 --- [gine[Catalina]]] o.s.w.s.c.a.WebMvcConfigurerAdapter : Adding welcome page: class path resource [public/index.html]

i even dont see the System.out.println(“TEST”)
any ideas?

Hmmm, now i tried to follow the camunda tutorial with spring integration. after that i added the rest service. dont know whats different. but now the rest service is working.