- 博客(5)
- 问答 (1)
- 收藏
- 关注
原创 hive weekofyear 函数计算规则
最近使用weekofyear函数,在涉及到每年一月一号的时候,返回值和预期的不一样。原以为对于涉及到跨年的日期,是以上一年度最后一周例如:weekofyear('2021-01-01') --->53同理 2020-12-28 是52周,那2020-12-28 至 2021-01-04 应该属于53周,但返回的是 1 周。经过测试推测:weekofyear算法争对这种跨年周的时候,有三天或者三天以上的日期是在下一年度时,按下一年度的第1周计算,反之是在上一年度的基础上累加。...
2021-07-28 11:20:54
2867
原创 springMVC 上传文件和对象信息时,一直报空指针,文件对象是null 信息是null
1.form表单中,file的name属性必须和后台的 MultipartFile 形参名一致。2.form必须使用post方法提交3.class="org.springframework.web.multipart.commons.CommonsMultipartResolver" 的id值必须为 id="multipartResolver"...
2019-04-24 09:13:44
464
原创 IllegalArgumentException: warning no match for this type name: service [Xlint:invalidAbsoluteTypeNam
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested excep...
2019-04-17 22:25:32
997
原创 BuilderException: Error evaluating ExpressionSyntaxException: Malformed OGNL expressionEncountered:
sql语句错误,非--->!打成了中文下的!空格之类也会引起该类问题
2019-04-17 21:13:27
893
原创 idea调试 报错:java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@localhost:1521:orcl
eclipse项目迁移到idea中,运行报错,少导入了ojdbc的jar包
2019-04-11 19:18:38
976
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人