How to create xml bean for the below java class. I am using old spring version, from where i need to create a xml bean for the following "TestSample" class.
@Service
@EnableConfigurationProperties(SampleProperties.class)
public class TestSample{
@Autowired
public ClientService clientService;
@Autowired
public RestTemplate restTemp;
public Map<String, String> testing(String a, String b, String c) throws Exception {
Map<String, String> map = clientService.find(a, b, c);
System.out.println("**=="+map.get(0));
return map;
}
}
ClientService class.
@Service
@Slf4j
@DependsOn("restTemp")
public class ClientService {
public ClientService(
@Autowired final SampleProperties sampleProperties,
@Autowired(required = false) final ObjectMapper pObjectMapper) throws UnknownHostException {
}
//......
}