- 博客(15)
- 收藏
- 关注
原创 tokenizer()和tokenizer.encode_plus()的区别
encoding = self.tokenizer( text, add_special_tokens=True, # 句子开头和分隔加cls sep [cls] + text + [sep] max_length=self.max_len, return_token_type_ids=True, # 分句ids 0000000 return_attention_mask=True
2022-03-12 18:00:01
3298
原创 Refused to apply style from ** because its MIME type (‘application/font-woff‘) is not a supported st
Refused to apply style from** because its MIME type (‘application/font-woff’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.<link rel="stylesheet" href="css/fonts/element-icons.woff" type="text/css" >改为<link rel=
2021-02-10 21:03:40
575
原创 Java SpringBoot+WebMagic爬取交易猫商品标题、url、价格、区服
pom坐标:<dependencies> <!--SpringMVC--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
2020-07-16 23:11:16
747
转载 SpringBoot启动报错Failed to determine a suitable driver class
Description:Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.Reason: Failed to determine a suitable driver classAction:Consider the following:If you want an embedded database (H2, HSQL o
2020-06-21 17:02:27
413
原创 mybatis报错:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflectio
@Insert("Insert Into good (" + "goodname\r\n" + ",goodmoney\r\n" + ",goodinfo\r\n" + ",goodtype\r\n" + ",gooddate\r\n" + ")Values(" + " #{good.goodname}, #{good.goodmoney}, #{good.goodinfo}, #{good.goodtype}," + "(select g_t_n
2020-05-19 15:28:49
230
转载 Xshell连接不上Ubuntu解决方式
由于xshell远程连接ubuntu是通过ssh协议的,所以,需要给ubuntu安装ssh服务器。1)换源当你安装了一个新的ubuntu的系统之后,默认的下载源是在国外的,这样的话,当你使用命令安装有一些包的时候,终端里面的下载网速是非常慢的,为了珍爱生命,节约时间,解决的办法是:换源。在/etc/apt中有一个sources.list文件,双击文件,切换为阿里镜像2)ubuntu安装s...
2020-05-07 11:27:03
354
转载 springboot 使用通用mapper时pojo 定义为基本类型 从数据库查不到数据 返回null
方法一:实体类基本类型改为包装类型1、定义成基本类型的查询SQL语句2、修改成包装类型方法二:在基本类型上添加@Column
2020-04-28 21:09:07
423
原创 java jsp 如何让页面提交,页面刷新后,保持下拉框中的值不变
1、把下拉框的值传到后台,存入session中//前台function changePageSize() { //获取下拉框的值 var pageSize = $("#changePageSize").val(); //向服务器发送请求,改变没页显示条数 location.href = "${pageContext.reques...
2020-03-22 16:19:27
2211
转载 MyBatis基于注解模糊查询
import org.apache.ibatis.annotations.*;import org.springframework.stereotype.Service;import java.util.List;/** * @author Administrator * @date 2019/4/26 9:33 */public interface CustMapper {...
2020-03-21 19:49:41
385
原创 Cause: org.apache.ibatis.type.TypeException: Error setting null for parameter #1 with JdbcType OTHE
Cause: org.apache.ibatis.type.TypeException: Error setting null for parameter #1 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration ...
2020-03-18 23:22:13
4438
原创 button的onclick事件给函数传递参数报错Uncaught SyntaxError: Invalid or unexpected token
参数要用单引号引起来
2020-03-18 17:43:56
1059
1
转载 解决OracleXE10g中的TNSLSNR.EXE占用8080端口号的问题
原文地址:https://www.cnblogs.com/ego/p/5987279.htmloracle 服务一启动 TNSLSNR.exe 会占用8080端口,这时,如果我们其他程序需要使用8080端口就会比较麻烦,所以需要改一下端口:用dba账户登录CMD>sqlplus sys/123 as sysdbaSQL> call dbms_xdb.cfg_update(up...
2020-03-15 15:42:24
285
转载 Maven更新失败,Cannot resolve plugin org.apache.maven.plugins:maven-deploy-plugin:2.8.2
Cannot resolve plugin org.apache.maven.plugins:maven-deploy-plugin:2.8.2在项目使用maven 更新的时候,会遇到jar包无法下载到本地maven仓库的问题,idea 控制台将给出以下错误提示,如图所示:即下载目录中缺少程序运行的jar包文件删除上图本地maven仓库目录下的文件夹,然后重新导入或创建maven项目,此时右...
2020-03-10 19:25:09
9581
3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人