IT修真院·坑乎 | Java(后端),CSS(前端),JavaScript(前端),PM(产品经理),UI(交互设计),QA(测试),Android(安卓APP),iOS(苹果APP),OP(运维),Python(后端)日常在线问答学习平台
咨询电话 : 010-59478634
切换导航
首页
我的提问
我的回答
我的点赞
消息通知
个人主页
×
提示
尚未登陆,前往官网登陆?
×
提示
尚未登陆,前往官网登陆?
CSS
JS
Android
IOS
JAVA
OP
PM
UI
QA
求职辅导
Python
运营
动画师
AIGC
亚马逊运营
CSS
JS
Android
IOS
JAVA
OP
PM
UI
QA
求职辅导
Python
运营
动画师
AIGC
亚马逊运营
所有任务
任务1
任务2
任务3
任务4
任务5
任务6
任务7
任务8
任务9
任务10
任务11
全部
问题
已收录
问题
未收录
问题
没有找到答案,去提问>>>
tomcat配置虚拟目录问题
0
1
jetty/tomcat
class="cursor-pointer"> 详细描述
tomcat配置虚拟目录的时候无法将文件夹的war包解压,如果用resin解压过的war包则正常运行
class="cursor-pointer"> 错误截图
传参接参问题
0
1
SSM
class="cursor-pointer"> 详细描述
在任务二最后复查阶段,发现代码又出现问题,页面删除功能无法传递id给后台进行操作,直接使用类接参的方法没有办法接到,所以不知道还有什么办法能收到,贴出代码如下,望师兄师弟解惑。
class="cursor-pointer"> 源码
${userList.id}
${userList.name}
${userList.qq}
${userList.age}
${userList.address}
<%--long转换为date--%>
<%--data转为具体时间格式--%>
${cteatTimeCreate}
<%--long转换为date--%>
<%--data转为具体时间格式--%>
${updateTimeCreate}
<%-- 链接方法,默认为GET --%>
">
多模块下 applicationContext找不到
1
1
class="cursor-pointer"> 详细描述
多模块下 applicationContext找不到
如何使用nignx访问资源和通过打印日志查看接口响应时间
0
1
Nginx
class="cursor-pointer"> 详细描述
如何使用nignx访问资源和通过打印日志查看接口响应时间
部署resin无法把响应时间单位换成毫秒
0
1
class="cursor-pointer"> 详细描述
部署的resin项目无法访问响应时间单位换成毫秒,只有微秒。下面是配置文件和输出的日志
class="cursor-pointer"> 错误截图
Controller中,访问带有占位符的uri地址时,浏览器输不能识别
0
1
class="cursor-pointer"> 详细描述
Controller中使用rest风格的uri,如:@RequestMapping(value = "/categorys/{uperId}/2",method = RequestMethod.GET) 这里入参使用了@PathVariable注解,在浏览器中直接输入localhost:8080/api/categorys/{uperId}/2?uperId=2 时,2不能赋值到{uperId}里
class="cursor-pointer"> 错误截图
DispatcherServlet with name 'springmvc-dispatcher' processing GET request for [/json/categorys/%7BuperId%7D/2] [DEBUG] 2019-08-14 09:24:58,018 method:org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.getHandlerInternal(AbstractHandlerMethodMapping.java:310) Looking up handler method for path /json/categorys/{uperId}/2 [DEBUG] 2019-08-14 09:24:58,033 method:org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.getHandlerInternal(AbstractHandlerMethodMapping.java:317) Returning handler method [public java.util.Map
com.jnshu.controller.JsonController.getFirstCategory(java.lang.Integer)] [DEBUG] 2019-08-14 09:24:58,033 method:org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:251) Returning cached instance of singleton bean 'jsonController' [DEBUG] 2019-08-14 09:24:58,034 method:org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:955) Last-Modified value for [/json/categorys/%7BuperId%7D/2] is: -1 [DEBUG] 2019-08-14 09:24:58,078 method:org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:164) Failed to resolve argument 0 of type 'java.lang.Integer' org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "{uperId}" at org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.resolveArgument(AbstractNamedValueMethodArgumentResolver.java:128) at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:121) at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:158) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:128) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861) at javax.servlet.http.HttpServlet.service(HttpServlet.java:634) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:808) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NumberFormatException: For input string: "{uperId}" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.valueOf(Integer.java:766) at org.springframework.util.NumberUtils.parseNumber(NumberUtils.java:208) at org.springframework.beans.propertyeditors.CustomNumberEditor.setAsText(CustomNumberEditor.java:113) at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:468) at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:441) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:199) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:108) at org.springframework.beans.TypeConverterSupport.doConvert(TypeConverterSupport.java:64) at org.springframework.beans.TypeConverterSupport.convertIfNecessary(TypeConverterSupport.java:47) at org.springframework.validation.DataBinder.convertIfNecessary(DataBinder.java:713) at org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.resolveArgument(AbstractNamedValueMethodArgumentResolver.java:120) ... 36 more [DEBUG] 2019-08-14 09:24:58,080 method:org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver.resolveException(AbstractHandlerExceptionResolver.java:133) Resolving exception from handler [public java.util.Map
com.jnshu.controller.JsonController.getFirstCategory(java.lang.Integer)]: org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "{uperId}" [DEBUG] 2019-08-14 09:24:58,083 method:org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver.resolveException(AbstractHandlerExceptionResolver.java:133) Resolving exception from handler [public java.util.Map
com.jnshu.controller.JsonController.getFirstCategory(java.lang.Integer)]: org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "{uperId}" [DEBUG] 2019-08-14 09:24:58,083 method:org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver.resolveException(AbstractHandlerExceptionResolver.java:133) Resolving exception from handler [public java.util.Map
com.jnshu.controller.JsonController.getFirstCategory(java.lang.Integer)]: org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "{uperId}" [DEBUG] 2019-08-14 09:24:58,084 method:org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver.resolveException(AbstractHandlerExceptionResolver.java:133) Resolving exception from handler [public java.util.Map
com.jnshu.controller.JsonController.getFirstCategory(java.lang.Integer)]: org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "{uperId}" [DEBUG] 2019-08-14 09:24:58,084 method:org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver.resolveException(AbstractHandlerExceptionResolver.java:133) Resolving exception from handler [public java.util.Map
com.jnshu.controller.JsonController.getFirstCategory(java.lang.Integer)]: org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "{uperId}" [DEBUG] 2019-08-14 09:24:58,084 method:org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver.resolveException(AbstractHandlerExceptionResolver.java:133) Resolving exception from handler [public java.util.Map
com.jnshu.controller.JsonController.getFirstCategory(java.lang.Integer)]: org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "{uperId}" [DEBUG] 2019-08-14 09:24:58,084 method:org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver.resolveException(AbstractHandlerExceptionResolver.java:133) Resolving exception from handler [public java.util.Map
com.jnshu.controller.JsonController.getFirstCategory(java.lang.Integer)]: org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "{uperId}" [WARN ] 2019-08-14 09:24:58,119 method:org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver.handleTypeMismatch(DefaultHandlerExceptionResolver.java:361) Failed to bind request element: org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.lang.Integer'; nested exception is java.lang.NumberFormatException: For input string: "{uperId}" [DEBUG] 2019-08-14 09:24:58,120 method:org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1048) Null ModelAndView returned to DispatcherServlet with name 'springmvc-dispatcher': assuming HandlerAdapter completed request handling [DEBUG] 2019-08-14 09:24:58,120 method:org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1000) Successfully completed request
class="cursor-pointer"> 源码
/*由一级目录查看二级目录*/ @RequestMapping(value = "/categorys/{uperId}/2",method = RequestMethod.GET)@ResponseBodypublic Map
getFirstCategory(@PathVariable Integer uperId){ Map
categorys = new HashMap<>(); if(uperId==1){ Category c1 = new Category(); c1.setId(4); c1.setName("李白"); c1.setUpperId(0); Category c2 = new Category(); c2.setId(5); c2.setName("杜甫"); c2.setUpperId(0); Category c3 = new Category(); c3.setId(6); c3.setName("白居易"); c3.setUpperId(0); categorys.put("诗人1",c1); categorys.put("诗人2",c2); categorys.put("诗人3",c3); return categorys; }else { Category c1 = new Category(); c1.setId(7); c1.setName("唐伯虎"); c1.setUpperId(0); Category c2 = new Category(); c2.setId(8); c2.setName("祝枝山"); c2.setUpperId(0); Category c3 = new Category(); c3.setId(9); c3.setName("张择端"); c3.setUpperId(0); categorys.put("画家1",c1); categorys.put("画家2",c2); categorys.put("画家3",c3); return categorys; }}
签到系统的设计
0
1
复盘踩坑
class="cursor-pointer"> 详细描述
我现在的想法是签到单独建一个数据表,记录用户id、签到时间戳或者签到的年月日。 但是这样的话数据表会变得很庞大。 有没有更好的方案。
复盘现在开始套假数据了,怎么分配任务好啊
0
1
复盘踩坑
class="cursor-pointer"> 详细描述
是按模块功能分,还是按层分,还是按一个独立的子系统,比如前台后台分?
服务器的爆炸
0
1
SSM
class="cursor-pointer"> 详细描述
服务器安装tomcat,不显示首页,就报错404了,resin是这样,jetty也是这样。
在使用mybatis逆向工程生成的程序运行时一直报错
0
1
class="cursor-pointer"> 详细描述
在使用mybatis逆向工程生成代码之后进行编写代码,完毕之后一直报错。
class="cursor-pointer"> 错误截图
第一个问题是无法读取db文件,后来我在前面加上classpath就解决了,但是后面这个连锁问题搞的很烦,一是说我创建service实现类有问题,二是说我的sqlSessionFactory这个bean配置的有问题,三是说string类型无法转化什么的,四是我的mapper文件读取不到,说是不存在,但是我用ctrl加左键是能读到的。
首页
<
104
105
106
107
108
109
110
111
112
113
114
>
末页
去第
页
确定
Copyright ©2015 北京葡萄藤信息技术有限公司 All Rights Reserved | 京ICP备15035574号-1
5
10