自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 map.xml文件报The content of element type “mapper“ must match “(cache-ref|cache|resultMap*|parameterMap*

在xml文件中要用<!因为加注释的时候用的//

2023-03-30 18:15:44 97

原创 html文件中thymeleaf提示${xxx.xx}无法解析:Validates unresolved references and invalid expressions

idea在解析时会去Object类找getName方法,找不到所以无法解析。但是项目运行时最后调用的是实体类的方法,所以虽然提示报错,但是可以正常运行。chontroller中:Map<String, Object> map。可以通过model传数据时候不放object类,放具体的实体类。错误:return “/site/login”;在controller中返回路径中多加了“/”正确:return “site/login”;

2023-03-26 18:17:13 660

原创 html中bean爆红,显示“cannot resolve”

nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'community.servlet.context-path' in value "${community.servlet.context-path}"UserService中contextPath注入的值为变量server.sevlet.context-path,而不是ommunity.servlet.context-path。

2023-03-23 16:25:39 545

原创 发送邮件失败: Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535

在application.properties中配置的spring.mail.password是授权码不是邮箱的密码。

2023-03-21 16:21:16 701

原创 application.properties中com.mysql.cj.jdbc.Driver爆红,String等基本数据类型爆红

在重新加载一个project时,application.properties中com.mysql.cj.jdbc.Driver爆红,同时String等基本数据类型爆红。在右上角“Project Structure”中修改SDK为1.8和8。

2023-03-21 14:54:21 402

原创 Git 常用命令

File-Settings-Version Control-Git-Path toGit executable-选择本地git安装目录中的bin目录下的git.exe。选中文件-VCS-Git-Push-Define remote-输入远程仓库网址(https://XXXXXXXXXXXXXXX.git) -Push。选中文件-VCS-import into Version Controller-Create Git Repository-选择代码所在文件夹目录。五、克隆仓库中已有的代码到本地仓库。

2023-03-20 16:38:42 55 1

原创 tensorflow中的两种损失函数比较

介绍多分类交叉熵损失tf.losses.softmax_cross_entropy以及tf.losses.sparse_softmax_cross_entropy两者区别

2022-09-28 20:27:56 720

原创 python 中argparse模块

1.创建对象parser = argparse.ArgumentParser()2.增加属性parser.add_argument(name or flags...[, action][, nargs][, const][, default][, type][, choices][, required][, help][, metavar][, dest])1)name or flags - 一个命名或者一个选项字符串的列表,例如 foo 或 -f, --foo2)action - 当参数

2021-11-18 22:26:46 684

空空如也

空空如也

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

TA关注的人

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