Reputation: 13
I have services in a jar file created by spring mvc. My question is how to consume this services through rest api in an other spring boot project . Any help is highly appreciate.
my AppConfig :
package com.Taco;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan({"org.DAO","org.Service"})
public class AppConfig {
}
Upvotes: 1
Views: 166
Reputation: 964
Declare your jar as a dependency in your other spring project.
In config class declare your service in @ComponentScan
Upvotes: 1