我想在nginx中部署基于Spring的Web应用程序?
谁能建议我最好的方法论?
谢谢和问候Vijay
我会为每个支付模式类如Cash,Cheque,Card.我必须基于对象值传递对象作为参数我必须实例化相关的类.
我怎样才能做到这一点?建议我一个更好的设计
public interface CollectionInfo {
//Code Goes here
}
public class Cash implements CollectionInfo {
//Code goes here
}
public class CollectionFactory {
public void newInstance(Enum<CollectionMode> collectionMode) {
}
}
public interface Receipts {
public Receipt createReceipt(String Amount, /*(Here i need to pass parameter of object either cash ,Cheque or card),*/Date date);
}
Run Code Online (Sandbox Code Playgroud) 我使用spring MVC作为我的项目,在服务类中我使用了"@Autowired"注释,虽然我必须在Application-Servlet.xml中定义bean标记中的所有类.(如果我们有"N"个数,我觉得它很复杂课程)我怎么能避免这样做?