ElbirchSoft
ElbirchSoft

Reputation: 13

Consuming service in jar using webservice

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

Answers (1)

Ali Akbarpour
Ali Akbarpour

Reputation: 964

  1. Declare your jar as a dependency in your other spring project.

  2. In config class declare your service in @ComponentScan

Upvotes: 1

Related Questions