为什么我这边实例化的时候会报错呢
老师,我这边已发送post请求就报404,找了一会也没找的哪里的错误,老师能帮忙看下吗
老师,这个黄色的波浪线代表什么?我运行是没有错误的
老师前面写linux的时候我这个虚拟机的ip是192.168.1.9.这两天吗,没用怎么就成了192.168.1.10了。这是咋回事
有继承限制那怎么不直接定义类型呢还要定义泛型呢?
为啥controller 要用war包,其他的用jar
老师,导入父项目依赖的使用父项目的依赖爆红
父项目已经clean和install好几次了,还是爆红
看评论设置这个后,还有没有效果
父项目:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.bjsxt</groupId> <artifactId>parentMaven</artifactId> <version>1.0-SNAPSHOT</version> <!-- 将父项目设为POM类型项目 --> <packaging>pom</packaging> <!-- 集中式管理依赖 --> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <!--引用properties中设置的版本号--> <version>${spring-context.version}</version> </dependency> </dependencies> </dependencyManagement> <properties> <!-- 设置spring-context的版本号 --> <spring-context.version>5.2.4.RELEASE</spring-context.version> <maven.compiler.source>14</maven.compiler.source> <maven.compiler.target>14</maven.compiler.target> </properties> </project>
子项目:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <!--设置和父项目的继承关系,输入父项目的依赖--> <parent> <groupId>com.bjsxt</groupId> <artifactId>parentMaven</artifactId> <version>1.0-SNAPSHOT</version> </parent> <groupId>com.bjsxt</groupId> <artifactId>childMaven</artifactId> <version>1.0-SNAPSHOT</version> <properties> <maven.compiler.source>14</maven.compiler.source> <maven.compiler.target>14</maven.compiler.target> </properties> </project>
老师我这是课程更新以前的,我没有找到这个课程的问答入口,所以就在这个入口问一下
这是我的sql
SQL> select e.last_name,e.job_id,d.department_id,d.department_name from employees e inner join departments d on e.department_id = d.department_id inner join locations l on d.location_id = l.location_id and l.city = 'Toronto';
我没有写where就写了and,为什么也可以查询出现,意思在内连接中可以使用and吗?
使用redisTemplate同步缓存时,存储在redis的key前面不知道为什么带了段乱码
我这里为什么偶数那多加了一个101呢
package yignge.code; public class Testsuper { public int a=1; public Testsuper(){ System.out.println("创建了Testsuper对象"); } public static void out(){ System.out.println("调用了Testsuper中的方法out"); } } class child extends Testsuper{ public static void main(String[] args) { Testsuper.out(); System.out.println(new Testsuper().a); } }
为什么在这打字乱码
不是应该先调用父类的构造器吗
对于乱码,我可不可以这样理解,就是传过去的是二进制字节,记事本无法识别,于是乱码输出,而读取的时候,编译器是可以认识二进制字节码所以正确输出
这里是不是不像字节流那样添加true就可以一直添加新的字符进去了
package yignge.code; public class Testsuper { int a=1; public Testsuper(){ System.out.println("创建了Testsuper对象"); } public void out(){ System.out.println("调用了Testsuper中的方法out"); } } class child extends Testsuper{ public void main(String[] args) { System.out.println(super.out); System.out.println(super.a); } } package yignge.code; public class Testsuper2 extends Testsuper{ public static void main(String[] args) { System.out.println(super.a); System.out.println(super.out()); } }
老师为什么在这里我不能在子类里直接用super调用父类的
属性和对象
老师,我用==返回值也是true,按理说这两个对象使用==比较的是地址,应该返回false,为什么确实true,视频里也特意强调必须使用equals,什么原因?
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637