出错了,咋搞,网络上搜不到信息,怎么解决这个问题?
为什么这样不行?
老师,这个错误的原因是什么呢?在百度上没有找到正确的解决方式
真怕培训完去公司上班比较僵硬,不够变通
Pendulum的action的取值怎么就可以确定是一个符合N(μ,σ)的正态分布
老师,我发现调用的接口在客户端和服务端的包名都必须一致。一开始我写的包名不一致一致报
Exception in thread "main" java.lang.ClassCastException: com.sun.proxy.$Proxy0 cannot be cast to com.bjsxt.zookeeper.client.server.UserService
at com.bjsxt.zookeeper.client.ClientDemo.main(ClientDemo.java:24)
最后修改包名一致就可以调用了
老师我配完报个这是啥问题导致的呢
老师,“.top{ width: 100%; height: 100px; background-color: aqua;}”中高度可以用百分数表示,可是宽带我也用百分数表示就没有用,宽带不允许用百分数表示吗?
请问老师为什么不定义Engine类成员变量engine会报错?这有什么关联吗?
老师,我想问一下通过在业务层继承了SqlSessionDaoSupport类之后,在配置文件中添加bean标签,里面的property标签的name为什么是sqlSessionFactory,不是sqlSessionTemplate了
数字后面加了个L,是代表毫秒单位吗
import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; public class jdbcTest { //向Departments 表中添加一条数据 public void insertDepartments(String department_name, int location_id) { Connection conn = null; Statement state = null; try { //驱动注册 Class.forName("com.mysql.jdbc.Driver"); //创建连接 conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/bjsxt?useUnicode=true&characterEncoding=utf-8", "root", "root"); String sql = "insert into departments values(default,'" + department_name + "'," + location_id + ")"; state = conn.createStatement(); int flat = state.executeUpdate(sql); System.out.println(flat); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } finally { if (state != null) { try { state.close(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } if (conn != null) { try { conn.close(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } } //更新Departments public void updateDempartments(String department_name, int location_id, int department_id) { Connection conn = null; Statement state = null; try { Class.forName("com.mysql.jdbc.Driver"); conn = DriverManager.getConnection("jdbc:mysql://localhost: 3306/bjsxt?useUnicode=true&characterEncoding=utf-8", "root", "root"); state = conn.createStatement(); String sql = "update departments d set d.department_name = '" + department_name + "',d.location_id = " + location_id + " where d.department_id =" + department_id; int flag = state.executeUpdate(sql); System.out.println(flag); } catch (Exception e) { e.printStackTrace(); } finally { if (state != null) { try { state.close(); } catch (SQLException e) { e.printStackTrace(); } } if (conn != null) { try { conn.close(); } catch (SQLException e) { e.printStackTrace(); } } } } public static void main(String[] args) { jdbcTest test = new jdbcTest(); // test.insertDepartments("研发部", 8); test.updateDempartments("教学部", 6, 6); } }
请问老师,我画圈的地方没有多余的选项。我看视频里的老师有选项,把Development Components这个选项去掉了
这些查询什么时候用example什么时候不用,有没有一张对照表看看
l老师,我直接在这里面写print(grade)
为什么不输入啊
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637