![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
小米的蝉
Keep It Simple and Stupid
展开
-
Jetty 报错 Tomcat不报错 maven jetty插件不报错, 可能是jetty版本不统一造成
要在服务器上部署, jetty报错找不见hibernate某个函数, 然而此函数存在. 开发环境为 Intellij jetty插件版本: 9.2.6.v20141205 外置jetty版本: 9.4.21.v20190926 如果你也有类似问题, 不妨试试将jetty版本统一 我将外置jetty降版本后成功 ...原创 2019-10-20 16:42:00 · 199 阅读 · 0 评论 -
mysql数据库连接以及执行的java类
应该使用json等配置文件来保存要连接的数据库信息,密码等. 先存一下,以后再说 /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the te...原创 2018-09-27 21:56:53 · 250 阅读 · 0 评论 -
读取properties配置文件路径找不到的解决方法
public class DB_connection { String JDBC_DRIVER;//="com.mysql.jdbc.Driver"; String DB_URL;// = "jdbc:mysql://localhost:3306/promotion_website?useUnicode=true&characterEncoding=UTF-8"; ...原创 2018-09-30 13:15:11 · 5703 阅读 · 0 评论 -
如何在 ClassPathXmlApplicationContext 里使用相对类路径的 xml文件
参考https://blog.csdn.net/upxiaofeng/article/details/53332226 URL a = this.getClass().getResource(""); // 获取ClassPath的绝对URI路径 // or URL a = 写你的类名.getResource(""); // 这里是反射的知识, String aa = a.toString...原创 2019-06-02 10:40:33 · 427 阅读 · 0 评论