- 博客(6)
- 收藏
- 关注
原创 文件上传,报错:IOError: [Errno 13] Permission denied
文件上传,报错:IOE error路径错误提示:E:\pythonProject1\static/uploads原代码如下:f=request.files['file']basepath = path.abspath(path.dirname(__file__))upload_path=path.join(basepath,"static/uploads")f.save(upload_path,secure_filename(f.filename))待上传文件目录:1)后半段显然与前面不
2020-09-30 18:15:31
1217
原创 python 使用psycopg2执行sql语句传参的正确样例
python 使用psycopg2执行sql语句传参的正确样例docker_sqlconnect.py# -*- coding: UTF-8 -*-import psycopg2class docker_sqlconnect(): @staticmethod def db_connect(): # 建立数据库连接 conn = psycopg2.connect(database="flow", user="postgres", password="postgre
2020-09-19 22:21:19
2339
原创 ssm项目,后端分页的数据流梳理
梳理后端分页的数据流控制台输出结果:@Test类的代码内容:创建service层对应的对象,调用方法返回pagepublic class ApplicationContextTest { private ApplicationContext ctx = null; private SalesChanceService salservice = null; { ctx = new ClassPathXmlApplicationContext("applicationCont
2020-08-23 16:53:11
413
原创 spring自动装配bean失败报错:org.springframework.beans.factory.BeanCreationException: Could not autowire field
报错:Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.context.support.ResourceBundleMessageSource com.yanglun.crm.handler.UserHandler.messageSource; nested exception is org.springframe
2020-08-22 12:02:21
8916
原创 ssm项目,页面进行用户登录操作,对应后台流程梳理
目的梳理页面进行用户登录操作后,对应后台调用流程,方便理清思路完成自知页面url:http://localhost:8080/crm_03/index.jsp输入用户名和密码点击登录,对应form中表单数据会发送到/user/login <form action="/crm_03/user/login" method="post"> <TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0> <TR
2020-08-21 15:45:38
1787
原创 maven(ssm)排查jsp与Java无法关联的问题
问题:jsp与Java无法关联排查:结果:jsp与Java无法关联访问index.jsp预期结果:跳转success页面实际结果:跳转到了user/login1.预期结果依据:java判断用户名和密码正确时,重定向到success类中映射注解对应/user方法中映射注解对应/login实际结果截图:http://localhost:8080/crm_03/index.jsp实际index.jsp中form标签跳转排查从中可以看到,jsp的form标签中跳转时,跳转的
2020-08-21 13:40:58
293
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人