2afad654
Julien Iguchi-Cartigny
deal with userForm
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package fr.plil.sio.web.mvc;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
@Service("userService")
public class UserServiceImpl implements UserService {
@Resource
private UserRepository userRepository;
@Override
@Transactional
public User createUser(String username, String password) {
User user = new User();
user.setUsername(username);
user.setPassword(password);
userRepository.save(user);
return user;
}
}
|