注册超级管理员失败
来源:1-2 搭建开发环境
似是而非5
2021-10-18
注册超级管理员显示后端执行异常,下载的最新的emos-wx-api
Creating a new SqlSession
SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4f4e0606] was not registered for synchronization because synchronization is not active
JDBC Connection [com.mysql.cj.jdbc.ConnectionImpl@4ee5b2d9] will not be managed by Spring
==> Preparing: SELECT IF(COUNT(*),TRUE,FALSE) FROM tb_user WHERE root=1;
==> Parameters:
<== Columns: IF(COUNT(*),TRUE,FALSE)
<== Row: 0
<== Total: 1
Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@4f4e0606]
14:17:09 ERROR 执行异常
java.lang.RuntimeException: 临时登陆凭证错误
at com.example.emos.wx.service.impl.UserServiceImpl.getOpenId(UserServiceImpl.java:73)
at com.example.emos.wx.service.impl.UserServiceImpl.registerUser(UserServiceImpl.java:84)
at com.example.emos.wx.controller.UserController.register(UserController.java:55)
at com.example.emos.wx.controller.UserController$$FastClassBySpringCGLIB$$6a26201d.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)
at com.example.emos.wx.aop.TokenAspect.around(TokenAspect.java:25)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691)
at com.example.emos.wx.controller.UserController$$EnhancerBySpringCGLIB$$7132819.register(<generated>)
写回答
1回答
-
检查你的emos-wx和emos-wx-api里面的微信小程序APPID和密钥
012021-10-20
相似问题