![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
startzhou
这个作者很懒,什么都没留下…
展开
-
解决mysql安装不能被远程访问 message from server: “Host ‘*‘ is not allowed to connect to this MySQL server“
错误信息如下:null, message from server: "Host '172.16.214.94' is not allowed to connect to this MySQL server"解决办法:查询用户并设置用户权限,操作步骤如下:1.mysql -u root -p;2.use mysql;3.select user,host from user;4.update user set host='%' where user = 'root';5.select user,host fro原创 2022-06-22 10:46:38 · 415 阅读 · 0 评论 -
解决 org.springframework.dao.EmptyResultDataAccessException: Incorrect result size: expected
解决 org.springframework.dao.EmptyResultDataAccessException: Incorrect result size: expected1, actual 0 的方法1.捕捉这个异常然后返回null即可String sql = "select * from gmm_model t where t.person_id = '"+person原创 2013-02-27 09:48:42 · 3425 阅读 · 0 评论 -
hibernate Blob
hibernate Blob此实例来自网络实例文档无关代码和配置文件都省略此实例是把blob 按byte[] 数据的形式保存 这样的操作就和普通字段的操作是一样的Xml 配置文件...此处省略<property name="photo" type="org.springframework.orm.hibernate3.support.BlobByteArrayType"> <...原创 2013-03-27 11:40:03 · 826 阅读 · 0 评论 -
Ireport 报表导出 Poi + ireport 导出pdf, word ,excel ,html 格式
Ireport 报表导出 Poi + ireport 导出pdf, doc ,excel ,html 格式下面是报表导出工具类reportExportUtils 需要导出以上格式的报表 只需要调用本工具类的exportmain 方法即可。import java.io.File;import java.io.FileInputStream;import java.io.FileNot原创 2013-03-28 17:22:59 · 2842 阅读 · 0 评论 -
Oracle 数据库导出导入命令及说解
Oracle 数据库导出导入命令及说解 导出命令 EXP.exeUSERID=demo/demopwd@orcl file=F:\demo.dmp log=F:/expdemo.log详解1 USERID=demo/demopwd@orcl demo 是用户名demopwd 密码 orcl 实例名详解2 file=F:\demo.dmp 是指导出的数据文件 详解3 log=原创 2013-06-03 09:57:27 · 828 阅读 · 0 评论 -
Unsupported major.minor version 51.0 (unable to load class com.xxxx.listener.xxxxListener)异常解决
java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.原创 2015-06-24 10:45:18 · 6805 阅读 · 0 评论 -
Spring Cloud 服务注册发现(1)-Eureka
Spring Cloud 服务注册发现中心 --EurekaSpring Cloud 服务注册发现中心 --Eureka1 单体服务注册发现1.1 服务注册发现中心1.1.1 启动代码1.1.2 Eureka配置文件1.2 服务发布者Provider1.2.1 Provider配置文件1.3服务消费者Consumer1.3.1Consumer配置文件2 服务注册发现集群2.1 服务注册发现中心2....原创 2018-06-29 17:27:38 · 352 阅读 · 0 评论