Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问一下后台路径在哪。。 #21

Open
Arashiailing opened this issue Dec 10, 2019 · 8 comments
Open

请问一下后台路径在哪。。 #21

Arashiailing opened this issue Dec 10, 2019 · 8 comments

Comments

@Arashiailing
Copy link

@RequestMapping(value="/login", method= RequestMethod.GET)
public String login(HttpServletRequest request, Model model) {
Account currentAccount = (Account) request.getSession().getAttribute(QexzConst.CURRENT_ACCOUNT);
model.addAttribute(QexzConst.CURRENT_ACCOUNT, currentAccount);

    if (currentAccount == null) {
        return "/manage/manage-login";
    } else {
        return "redirect:/manage/contest/list";
    }
}

按这里的代码逻辑来看 后台路径不应该。。要么是/login 要么是/manage/manage-login吗。。

@Arashiailing
Copy link
Author

在后台登录的时候 发现登录后没有跳转 回到前台 发现前台登录上了管理员的账号 懵。。

@jianbing668
Copy link

在后台登录的时候 发现登录后没有跳转 回到前台 发现前台登录上了管理员的账号 懵。。

能说说怎么跑起来吗,报一个错误,一直没解决
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: 

Error querying database.  Cause: java.lang.IllegalStateException: dbType not support : null, url null

@wonktondI
Copy link

在后台登录的时候 发现登录后没有跳转 回到前台 发现前台登录上了管理员的账号 懵。。

能说说怎么跑起来吗,报一个错误,一直没解决
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: 

Error querying database.  Cause: java.lang.IllegalStateException: dbType not support : null, url null

你试试在启动类上加上@MapperSacn(mapper包名)注解

@Ryziii
Copy link

Ryziii commented Jan 8, 2020

在后台登录的时候 发现登录后没有跳转 回到前台 发现前台登录上了管理员的账号 懵。。

能说说怎么跑起来吗,报一个错误,一直没解决
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: 

Error querying database.  Cause: java.lang.IllegalStateException: dbType not support : null, url null

我遇到同样问题了,你解决了吗

@Ryziii
Copy link

Ryziii commented Jan 8, 2020

在后台登录的时候 发现登录后没有跳转 回到前台 发现前台登录上了管理员的账号 懵。。

能说说怎么跑起来吗,报一个错误,一直没解决
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: 

Error querying database.  Cause: java.lang.IllegalStateException: dbType not support : null, url null

你试试在启动类上加上@MapperSacn(mapper包名)注解

用这个方法还是报错

@Arashiailing
Copy link
Author

Arashiailing commented Jan 8, 2020 via email

@Ryziii
Copy link

Ryziii commented Jan 8, 2020

如果我没记错… 是manage------------------ 原始邮件 ------------------ 发件人: "Ryziii"[email protected] 发送时间: 2020年1月9日(星期四) 凌晨0:55 收件人: "gdufeZLYL/springboot-penguin"[email protected]; 抄送: "Arashiailing"[email protected];"State change"[email protected]; 主题: Re: [gdufeZLYL/springboot-penguin] 请问一下后台路径在哪。。 (#21) 在后台登录的时候 发现登录后没有跳转 回到前台 发现前台登录上了管理员的账号 懵。。 能说说怎么跑起来吗,报一个错误,一直没解决 org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:  Error querying database.  Cause: java.lang.IllegalStateException: dbType not support : null, url null 我遇到同样问题了,你解决了吗 — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

我这边是跑不起来,报Error querying database. Cause: java.lang.IllegalStateException: dbType not support : null, url null

@Arashiailing
Copy link
Author

Arashiailing commented Jan 8, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants