悦复项目笔记

来源:互联网 发布:数控编程模拟软件 编辑:程序博客网 时间:2024/04/29 19:23

1.输入法开始键自动提交表单问题;
解决:在form表单上加入:

    <form action="" method="post" target="_blank" onkeypress="if(event.keyCode==13||event.which==13){return false;}">

2.异常信息:苹果手机提交表单后台获取值为null(springboot,thymeleaf)

java.lang.NullPointerException: null    at com.jieling.yuefu.service.impl.ResServiceImpl.saveResCertificate(ResServiceImpl.java:222) ~[classes/:na]    at com.jieling.yuefu.service.impl.ResServiceImpl$$FastClassBySpringCGLIB$$6256c775.invoke(<generated>) ~[classes/:na]    at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-4.3.6.RELEASE.jar:4.3.6.RELEASE]    at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:721) ~[spring-aop-4.3.6.RELEASE.jar:4.3.6.RELEASE]    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.3.6.RELEASE.jar:4.3.6.RELEASE]    at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) ~[spring-tx-4.3.6.RELEASE.jar:4.3.6.RELEASE]    at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282) ~[spring-tx-4.3.6.RELEASE.jar:4.3.6.RELEASE]    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) ~[spring-tx-4.3.6.RELEASE.jar:4.3.6.RELEASE]

在苹果浏览器和android手机里面可以正常提交。

0 0
原创粉丝点击