
java基础
zai_deng_dai
这个作者很懒,什么都没留下…
展开
-
java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corres
java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '? ) order by id desc' at line 1下面是代码信息经过多方询问,各种百度,然后,最终发现,是自己非得多写个玩意,mmp。注意:已经用原创 2020-11-30 17:59:55 · 1510 阅读 · 0 评论 -
java.io.FileNotFoundException: D:\Work\IdeaWork\out\artifacts\java29_26_war_exploded\upload (系统找不到指定
java.io.FileNotFoundException: D:\Work\IdeaWork\out\artifacts\java29_26_war_exploded\upload\219de5edfbee72e29f1b60f54752b27.png (系统找不到指定的文件) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:270) at.原创 2020-11-24 20:28:39 · 909 阅读 · 0 评论 -
xml文件使用浏览器打开,提示“This page contains the following errors“解决办法
打开错误提示:This page contains the following errors:error on line 1 at colum 50: Encoding errorBelow is a rendering of the page up to the first error.以上问题是由xml文件的编码格式问题导致,解决方法是使用记事本打开xml文件,选择文件->另存为,“编码”格式选则Unicode或UTF-8,点击保存。重新用浏览器打开以上xml文件,问题解决。原创 2020-10-22 15:59:33 · 23700 阅读 · 1 评论 -
java.io.FileNotFoundException: database.properties (系统找不到指定的文件。)
java.io.FileNotFoundException: database.properties (系统找不到指定的文件。)java.io.FileNotFoundException: database.properties (系统找不到指定的文件。) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.File原创 2020-10-15 20:59:44 · 1260 阅读 · 0 评论 -
MySQLNonTransientConnectionException
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. at sun.reflect.原创 2020-10-15 20:53:31 · 495 阅读 · 0 评论 -
java 首字母大写方法
单个字符串需要进行首字母大写改写,网上大家的思路基本一致,就是将首字母截取,转化成大写然后再串上后面的,类似如下代码 //首字母大写 public static String firstLetterName(String name) { name = name.substring(0, 1).toUpperCase() + name.substring(1); return name; }将字符串name 转化为首字母大写。但是这种效率并不高,我...原创 2020-10-14 21:35:23 · 9919 阅读 · 0 评论