
尚筹网项目
行者。。
材料狗转行成功,努力学习熟悉业务中
展开
-
执行 $(“#projectForm“).submit()后出现404的情况.
第一反应就是id选择器或者路径没有对应上,观察代码发现:id选择器正确:第二种可能就是form表单提交的路径跟handler里面的路径对不上:发现路径也对上了…第三种可能就是传参时数据格式对不上,仔细思考,观察参数发现:方法传参并没有使用@RequestParam注解,那么就是这个问题.解决方法:让前端传过来的参数与之对应.先让前端传过来的参数经过Zuul,这一步的主要作用是保存不同微服务调用时Session一致,进而实现参数传递,Zuul的配置文件如下:那么方法的路径就需要去掉/pr原创 2020-12-28 21:56:39 · 609 阅读 · 0 评论 -
Error: A JNI error has occurred, please check your installation and try again解决方案[一半]
异常提示:java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetMethodRecursive(Class.java:3048)原创 2020-12-25 22:14:15 · 960 阅读 · 0 评论 -
SpringCloud服务出现:com.netflix.client.ClientException: Load balancer does not have available
异常描述:com.netflix.client.ClientException: Load balancer does not have available server for client: atguigu-crowd-mysql at com.netflix.loadbalancer.LoadBalancerContext.getServerFromLoadBalancer(LoadBalancerContext.java:483) ~[ribbon-loadbalancer-2.3.0.jar:原创 2020-12-21 22:36:57 · 1573 阅读 · 0 评论 -
Springboot+thymeleaf+redis报org.thymeleaf.exceptions.TemplateInputException异常
异常描述:org.thymeleaf.exceptions.TemplateInputException: Error resolving template [auth/member/send/short/message], template might not exist or might not be accessible by any of the configured Template Resolvers at org.thymeleaf.engine.TemplateManager.resol原创 2020-12-21 13:53:54 · 177 阅读 · 0 评论 -
springboot出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
springboot出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):这个问题的原因很有可能是哪个符号或者字母出现问题导致没有正确匹配上.因此从前到后依次检查了对应的名称是否相等.第一:检查Mapper.xml文件的配置路径是否与包名对应xml文件配置路径包名对应,排除此问题.第二:检查application.yml中的配置是否与xml文件位置对应application.yml中原创 2020-12-17 22:37:35 · 475 阅读 · 0 评论 -
SpringCloud启动Provider微服务时出现java.io.FileNotFoundException异常
SpringCloud启动Provider微服务时出现java.io.FileNotFoundException异常异常描述:在这里org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.atguigu.spring.cloud.Provider]; nested exception is java.io.FileNotFoundException:原创 2020-12-16 11:30:23 · 2949 阅读 · 2 评论 -
启动tomcat访问网页时报错: NoSuchBeanDefinitionException:springSecurityFilterChain
启动tomcat访问网页时报错:NoSuchBeanDefinitionException:springSecurityFilterChainweb.xml中代码如下:一般,引起这种情况的原因无非是加载时读不到springSecurityFilterChain代码显然没有问题,因此把这部分注释掉之后再试了一下,发现能够启动并访问页面.因此想着会不会是因为jar包在程序编写的过程中出现了问题,而后对该项目的pom.xml进行了clean和install,问题得到解决!找到了困扰两天的BUG,很开原创 2020-10-20 20:55:26 · 550 阅读 · 1 评论