摘要:
1.情景展示 阿里云短信接口调用,如何用java实现? 2.具体分析 先去阿里云申请账号,拿到分配的秘钥,以及配置好短信模板。 所需jar包 <!-- 阿里云短信 --> <dependency> <groupId>com.aliyun</groupId> <artifactId>aliyun-ja 阅读全文
摘要:
1.情景展示 使用idea,maven项目无法下载jar包。 2.具体分析 点击“Show Log in Explorer”,异常信息如下: 2022-06-01 10:50:10,069 [ 843941] ERROR - #org.jetbrains.idea.maven - java.lang 阅读全文
摘要:
1.生成随机数字 以生成4位随机数字举例说明 方式一: (int) (Math.random() * (9999 - 1000 + 1)) + 1000 说明: 随机数范围:1000~9999。 方式二: new Random().nextInt(9999 - 1000 + 1) + 1000 说明 阅读全文
摘要:
1.情景展示 使用mybatis给Oracle表插入数据的时候,报错信息如下: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not 阅读全文
摘要:
1.情景展示 在idea当中,使用selectKey标签,错误信息提示:selectkey 'id' attribute should be defined。 2.具体分析 这是由于自己安装的mybatisPlus插件提示的报错信息。 3.解决方案 方式一:不管; 方式二:禁用mybatisPlus 阅读全文