项目代码.rar
运行
ErpApplication.java
SystemApplication.java
时都会报错
SystemApplication 会出现:
No bean of type 'org.apache.shiro.realm.Realm' found.
Action:
Please create bean of type 'Realm' or add a shiro.ini in the root classpath (src/main/resources/shiro.ini) or in the META-INF folder (src/main/resources/META-INF/shiro.ini).
ErpApplication会出现:
sql脚本这些资料都没有的,能不能麻烦老师把这些都上传一下
老师已解决,postman也可以正常测试
1、单独修改过timeout,仍然保持
2、修改了dubbo,成功
老师我这里看了很久,Yapi的部分没有讲是怎么配置的。直接就打开了一个网页???
老师,一些配置文件怎么资料中没有,这写没有根本搭建不了环境啊!!!!
我看老师的镜像版本是7.7,我的是7.3,按道理不应该出现docker容器版本与linux不谦容的问题啊,可是我这redis咋无法启动呢?看网上类似问题都说是班额本不兼容导致的,我这咋解决呢?
docker是通过xshell安装到cloud云服务器中的还是通过xshell直接安装到本地?
老师可以把这个项目的 API 打包发出来不 0-0
老师我想问一下zookeeper在这个项目里面都用来干那些事情了?
为什么做完之后,有时候会不显示,是服务器的问题吗?
比如这样的
我看老师用得云服务器虚拟机是7.9版本,自己装个本地的是要装CentOS7还是CentOS8呢
老师,这一块技术选型的内容要全都掌握才能做这个项目吗? 像 分布式 消息中间件 这块用的多吗 如果还没看这两个可不可以先看项目?
老师,预约挂号那个时间段是默认显示当天的,那我现在这个时间段登录(也就是下午登录),能去预约上午的时间段吗
这个里面提示没有方法,这个方法应该在那里创建呢?
package com.bjsxt.config.shiro; import com.bjsxt.domain.User; import com.bjsxt.service.UserService; import com.bjsxt.vo.ActiverUser; import org.apache.shiro.authc.AuthenticationException; import org.apache.shiro.authc.AuthenticationInfo; import org.apache.shiro.authc.AuthenticationToken; import org.apache.shiro.authc.SimpleAuthenticationInfo; import org.apache.shiro.authz.AuthorizationInfo; import org.apache.shiro.authz.SimpleAuthorizationInfo; import org.apache.shiro.realm.AuthorizingRealm; import org.apache.shiro.subject.PrincipalCollection; import org.apache.shiro.util.ByteSource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Lazy; /** * @Author: GHP * 自定义 realm 去匹配用户名和密码 */ public class UserRealm extends AuthorizingRealm { @Autowired @Lazy private UserService userService; @Override public String getName() { return this.getClass().getSimpleName(); } /** * 做认证 --就是登陆 * @param token * @return 45 * @throws AuthenticationException */ @Override protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) throws AuthenticationException { //得到用户登陆名 String phone=token.getPrincipal().toString(); //根据电话查询用户是否存在 User user = userService.queryUserByPhone(phone); if(null!=user){//说明用户存在,但是密码可能不正确 //组装存放到 reids 里面的对象 ActiverUser activerUser=new ActiverUser(); activerUser.setUser(user); //匹配密码 SimpleAuthenticationInfo info=new SimpleAuthenticationInfo( activerUser,user.getPassword(), ByteSource.Util.bytes(user.getSalt()),this.getName() ); return info; }else{ return null;//代表用户不存在 } } /** * 做授权 --登陆成功之后判断用户是否有某个菜单或按钮的权限 * @param principals * @return */ @Override protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) { ActiverUser activerUser= (ActiverUser) principals.getPrimaryPrincipal();//身份得到的就是上一个方法的返回值的值 第一个参数 activerUser SimpleAuthorizationInfo info=new SimpleAuthorizationInfo(); return info; } }
SystemApplication 启动报这个异常,我建了shiro.ini文件,添加了授权也都没用,怎么解决呢?
ErpApplication 连接zookeeper失败,我已经包超时时间调的很大了,也是一直失败
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637