自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 资源 (1)
  • 收藏
  • 关注

转载 项目问题

该问题是jdk版本问题 该为解决方案

2020-04-21 09:44:53 79

原创 tomat

端口被占用 端口号一般是8080

2020-03-12 08:20:01 123

原创 #毕设#

严重: Servlet.service() for servlet jsp threw exception <base href="<%=basePath%>":意思 href 属性规定页面中所有相对链接的基准 URL。 href—设定前缀的链接地址 https://www.cnblogs.com/MeridaChen/p/6847777.html ...

2020-02-24 17:49:48 67

原创 yguh

2019-07-19 17:02:15 133

转载 页面跳转

https://blog.csdn.net/deathislikethewind/article/details/78532385

2019-07-18 16:16:11 80

原创 页面跳转

2019-07-18 16:15:36 63

原创 jstl应用

用JSTL架包,需要导入jstl.jar,standard.jar,记得build path

2019-07-18 10:57:58 99

原创 CSS+HTML

float表示浮动,让标签靠左,或者靠右 使用后标签最好设置宽高 关于内嵌元素 不能设置宽高 内嵌元素不能设置margin-top,bottom 让其成为块级元素 display: id是不能重复的 对于类似id功能的可以用class,来以免代码重复,这也是id和class的差别 ...

2019-07-17 16:28:32 95

原创 java层次说明

2019-07-16 16:34:42 381

转载 控制台问题

2018-09-25 13:12:34 77

原创 Java 写入读入问题

2018-09-25 11:44:12 61

原创 关于素数

2018-09-25 11:43:53 125

原创 关于微信小程序

小程序中的页面跳转问题: 在页面中使用了tabBar后发现写了跳转页面后不能跳转,是因为你用的是wx里的方法不对,在js中需要改成wx.switchTab即可,不是用的tabBar的话就不用改,为默认的值。 这里的方法适合做欢迎界面,既没有“返回”的标志(左上角)。 ...

2018-08-29 15:41:01 75

java的密码确定

package cn.edu.hbue.ghp; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; public class tainjia { public static void main(String[] args) { // TODO Auto-generated method stub java.sql.Connection connection = null; PreparedStatement preStmt = null; try{ Class.forName("com.mysql.jdbc.Driver"); String url = "jdbc:mysql://localhost:3306/grade?user=root&"+"password=ghp"; connection = DriverManager.getConnection(url); if(connection != null){ System.out.println("连接成功"); } String sql = "insert into book(author,publisher,isbn,pubDate,price,categoryId)"+"values(?,?,?,?,?,?)"; preStmt = connection.prepareStatement(sql); preStmt.setString(1, "EDA技术"); preStmt.setString(2, "清华大学"); preStmt.setString(3, "1"); preStmt.setString(4, "2017-1-1"); preStmt.setDouble(5, 66); preStmt.setInt(6, 2); preStmt.executeUpdate(); preStmt.setString(1, "你要去相信,没有到不了的明天"); preStmt.setString(2, "湖南出版时"); preStmt.setString(3, "2"); preStmt.setString(4, "2014-11-13"); preStmt.setDouble(5, 32.8); preStmt.setInt(6, 1); preStmt.executeUpdate(); System.out.println("添加数据的行为数为"+preStmt.getUpdateCount()); }catch(ClassNotFoundException e){ System.out.println("JDBC driver error"); }catch(SQLException e){ System.out.println("JDBC operation error"); }finally{ try{ if(preStmt != null){ preStmt.close(); } }catch(SQLException e){ System.out.println("PreparedStatement close error"); } try{ if( connection != null){ connection.close(); } }catch(SQLException e){ System.out.println("PreparedStatement close error"); } } } }

2018-05-08

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除