Springboot
未具名
这个作者很懒,什么都没留下…
展开
-
springboot无法加载service的原因之一required a bean of type 'com.les.ai.service.UserService' that could not be
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2018-07-23 15:02:01.032 ERROR 9536 --- [ restartedMain] o.s.b.d.LoggingFailureAnalys...原创 2018-07-23 15:05:38 · 14448 阅读 · 4 评论 -
Required String parameter 'age' is not present
没有传入的参数age,但后面接收的参数没有设置成false,所以报错原创 2018-11-16 16:44:32 · 5045 阅读 · 0 评论 -
springboot获取静态资源的路径
String path = ClassUtils.getDefaultClassLoader().getResource("").getPath();UploadMedia.upload(path+"static/1.png",token,"image");原创 2018-11-02 17:59:02 · 27478 阅读 · 0 评论 -
【springboot打war包访问】spring boot打成jar包访问不了jsp页面问题
问题描述:IDE中测试无问题,打成jar包无法访问JSP方案一:将springboot版本将为1.4.2release,实际测试发现我这里不能正常打包,遂放弃方案二:将项目打成war包,依旧用java -jar projectName.war的方式访问步骤一pom文件中将<packaging>jar</packaging>改为<pack...原创 2018-08-07 09:44:29 · 7975 阅读 · 11 评论 -
Unable to compile class for JSP: An error occurred at line: [16] in the generated java file:
springboot页面报错Unable to compile class for JSP,即不能编译JSPWhitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.Thu Jul 26 15:44:28 CST 2018...原创 2018-07-26 15:57:17 · 1533 阅读 · 0 评论 -
Springboot中出现的java.lang.ClassCastException: com.sun.proxy.$Proxy75 cannot be cast to
java.lang.ClassCastException: com.sun.proxy.$Proxy75 cannot be cast to com.les.ai.dao.AdminTip at com.les.ai.servlet.TipListServlet.init(TipListServlet.java:34) ~[classes/:na] at javax.servlet.Gene...原创 2018-07-26 14:46:12 · 1290 阅读 · 0 评论 -
分页插件不起效果java.lang.ClassCastException: java.util.ArrayList cannot be cast to com.github.pagehelper.Pa
错误代码 public List findUserPageFromMybatis(HttpServletRequest request, Integer pageNum, Integer pageSize) { pageNum = pageNum == null ? 1 : pageNum; pageSize = pageSize == null ? 10 :...原创 2018-07-19 09:24:29 · 6658 阅读 · 2 评论 -
springboot中艰难排查IllegalArgumentException: Could not resolve placeholder 'AppID' in value "${AppID}"
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2018-07-24 15:04:09.653 ERROR 1604 --- [ restartedMain] o.s.boot.SpringApplication ...原创 2018-07-24 15:08:36 · 8317 阅读 · 1 评论 -
Springboot获取不到JSP
看一些博客说老版本Springboot配置如下spring.view.suffix=.jspspring.view.prefix=/WEB-INF/jsp/实际上不行 404 或许我的不是老版本正解如下spring.mvc.view.suffix=.jspspring.mvc.view.prefix=/WEB-INF/jsp/要加.mvc...原创 2018-07-18 16:37:47 · 1903 阅读 · 0 评论 -
springboot集成swagger2.9.2出現的異常信息
java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_144] at java.lang.Long.parseLong(Long.java:6...原创 2018-12-12 09:08:40 · 1639 阅读 · 1 评论