for spring bean initiation, either default constructor or auto wired

great to confirm this, spring need either default constructor, or auto wired constructor

refer to

default constructor is common, then for example auto wired constructor:

@Service(value = "objectToMapConverter")
public class ObjectToMapConverter {
  private static final SimpleDateFormat SDF = new SimpleDateFormat("yyyy-MM-dd");
  private static final SimpleDateFormat SYD = new SimpleDateFormat("yyyy-MM-dd");
  static {
  private static ClientTransactionDao txDao;
  public ObjectToMapConverter(ClientTransactionDao clientTransactionDao) {
	// TODO Auto-generated constructor stub
	  txDao = clientTransactionDao;

Author: lwpro2

Java J2EE professional

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s