登录注册

master
jyx 7 years ago
parent 7d70d09bca
commit 1e05244780

@ -5,7 +5,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
@SpringBootApplication
//@ServletComponentScan("com.example.demo")
@ServletComponentScan("com.example.demo")
//@MapperScan("com.example.demo.Dao")
public class DemoApplication {
public static void main(String[] args) {

@ -17,6 +17,8 @@ public class UserServiceImpl extends UserService{
return this.UserMapper.selectUserByuserName(userName);
}
@Transactional(propagation=Propagation.REQUIRED,readOnly = true)
public int selectUserCountByNameAndPwd(long userNum,String userPwd){return this.UserMapper.selectPwd(userNum,userPwd);}
@Transactional(propagation=Propagation.REQUIRED,readOnly = true)
public User selectUserBytelephoneNum(String telephoneNum){
return this.UserMapper.selectUserBytelephoneNum(telephoneNum);
}

@ -1,5 +1,7 @@
package com.example.demo.loginService;
import com.example.demo.Dao.managerMapper;
import com.example.demo.Dao.userMapper;
import com.example.demo.bean.User;
import com.example.demo.loginService.API.impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

Loading…
Cancel
Save