Java
三尺犁耙
山路曲折盘旋,但毕竟朝着顶峰延伸。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Spring boot 集成 RocketMQ 测试
Spring Boot 集成 RocketMQ 测试原创 2022-09-22 17:15:09 · 495 阅读 · 1 评论 -
能注册到nacos 却读取不到相应的配置文件
1、可能你只添加了这个依赖 <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> </dependency> 2、但是未添加以下依赖 <dependency> <groupId>com.aliba原创 2022-04-01 17:42:57 · 8338 阅读 · 0 评论 -
xxl-job 集成nacos 的两种方式
前言: 百度了很久,看了很多博客,按照上面的来,都没能跑成功,最后根据各种异常去查询问题,根据问题说明,按照里面说的再去修改配置,折腾了不少时间,终于成功了,感谢!! 一、准备环境省略 二、xxl-job 源码下载 https://github.com/xuxueli/xxl-job.git 三、修改配置文件 1、方式一 1.1 xxl-job-admin 下的pom配置文件加入以下配置: <!-- 启用 nacos --> <dependency&...原创 2022-03-02 18:08:14 · 13495 阅读 · 7 评论 -
org.springframework.dao.DataIntegrityViolationException: Error attempting to get column ‘blood_press
org.springframework.dao.DataIntegrityViolationException: Error attempting to get column 'blood_pressure_last_alert_time' from result set. Cause: java.sql.SQLDataException: Unsupported conversion from TIMESTAMP to java.lang.Integer ; Unsupported conversion.原创 2020-08-13 20:41:41 · 5301 阅读 · 2 评论 -
jasperReport+struts2打印
所需jar包,如下: 1、groovy-all-1.7.5.jar 2、iText-2.1.7.jar [生产PDF文档使用] 3、iTextAsian.jar [语言支持] 4、jasperreports4.6.0.jar [必备包] 5、poi-3.7.jar[导出excel时候用] 6、commons-collections-3.2.jar 7、commons-beanutil原创 2017-01-16 16:31:04 · 1126 阅读 · 1 评论 -
jasperReport+struts2+jatoolsPrinter打印
看上一篇,我来教大家创建jrxml文件 1、先打开iReport软件,然后点击文件那,在点击new,然后一般使用Blank A4 2、点击Open this Template 和 Launch Report Wizard 按钮都可以 3、Report name 是你jrxml文件的名称,随你自己起,最好用英文或字母+数字。 Location是选择文件的路径,随你自己放在哪个盘都可以,原创 2017-01-16 17:42:40 · 565 阅读 · 0 评论 -
hibernate.hbm2ddl.auto 配置详解
hibernate.cfg.xml 中hibernate.hbm2ddl.auto配置节点如下: <properties> <property name="hibernate.show_sql" value="true" /> <property name="hibernate.hbm2ddl.auto" value="create" /> <...转载 2019-04-19 16:36:21 · 2103 阅读 · 0 评论 -
javax.servlet.ServletException: File [/admin/integral/getIntegralList.jsp] not found
springMvc框架,action请求不返回页面,忘记在@RequestMapping("/integral/getIntegralList")下增加@ResponseBody注解,所以控制台显示异常,在@RequestMapping 下加上@ResponseBody注解即可 ...原创 2019-04-24 12:00:20 · 463 阅读 · 0 评论 -
java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Integer
1、数据类型转换异常 2、如果是数值类型转换,大的数值类型转小的数值类型则必须强制转换; double a = 11.02; // 数据精度会丢失 int b = (int)a; 3、小的数值类型转大的数值类型则会进行自动转换,向上兼容; int a = 100; // 小的数值类型转大的数值,则自动转换,无需强制转换 double b = a; 4、如果是SQL查询报此异样:1.要...原创 2019-04-25 11:02:26 · 12995 阅读 · 0 评论 -
could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarExcept
org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute statement ...原创 2019-04-25 11:13:02 · 18860 阅读 · 2 评论
分享