October 2017
Intermediate to advanced
396 pages
10h 2m
English
Let's see the following TransferService interface. Its implementation is annotated with @Component. Please refer to the following code:
package com.packt.patterninspring.chapter4.bankapp.service;
public interface TransferService {
void transferAmmount(Long a, Long b, Amount amount);
}
The preceding interface is not important for this approach of configuration--I have taken it just for loose coupling in the application. Let's see its implementation, which is as follows:
package com.packt.patterninspring.chapter1.bankapp.service; import org.springframework.stereotype.Component; @Component public class TransferServiceImpl implements TransferService { @Override public void transferAmmount(Long ...Read now
Unlock full access