类文件
这节课的地址不能用了,所以get请求返回的的不是200而是403
package cn.itcast.crawler.test;
import org.apache.hc.client5.http.classic.methods.HttpGet;
import org.apache.hc.client5.http.impl.classic.Clos...
类文件
package cn.itcast.crawler.test;
import org.apache.hc.client5.http.impl.classic.CloseableHttpClient;
import org.apache.hc.client5.http.impl.classic.CloseableHttpResponse;
impor...
全部课程学习文档:学习文档
类文件
package cn.itcast.crawler.test;
import org.apache.hc.client5.http.classic.HttpClient;
import org.apache.hc.client5.http.classic.methods.HttpGet;
import org.apach...
原因:包冲突了
解决方法:删除其中一个
引用: https://blog.csdn.net/weixin_42181264/article/details/112168270
使用的软件也还是steam中自带的软件官方就有服务器的程序 (买游戏时自带的)
只不过在服务器就不用下载steam再下载软件这么麻烦了,使用一款叫做steamCMD的软件下载程序
只要在服务器上运行这个程序就算开服成功的了,具体配置存档用户之类的看到大佬的博客有写
B站
:https://www.bilibili.com/video/BV1LB4y1v7n...
服务器常用指令一览:
-console -conf_dir ---服务器参数
c_connect("", 10999, "000") ---IP ,端口,密码 服务器直连
TheNet:Kick(userid) ---踢出用户ID为“userid”的玩家
TheNet:Ban(userid) ---禁止用户ID为“us...
问题: slf4j类加载错误
解决方法: Maven工程的pom文件中随便加载一个上述的包文件之一的依赖就可以了(且只有一个)
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j...
问题:直接复制了网上的依赖到pom
解决方法:在复制的依赖外套上标签
<dependencies>
</dependencies>
参考:https://blog.csdn.net/weixin_51154479/article/details/124622950