package com.itheima.service.impl;
import com.itheima.dao.UserDao;
import com.itheima.domain.User;
import com.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import java.util.Properties;
@Service("userService")
public class UserServiceImpl implements UserService {
@Autowired
private UserDao userDao;
@Value("${jdbc.url}")
private String userName;
private String age;
private List<User> listUser;
/*public UserServiceImpl(UserDao userDao) {
this.userDao = userDao;
}*/
public UserServiceImpl() {
}
public void save() {
System.out.println(userName);
System.out.println(listUser);
userDao.save();
}
}
|
|