- 博客(8)
- 收藏
- 关注
原创 map.xml文件报The content of element type “mapper“ must match “(cache-ref|cache|resultMap*|parameterMap*
在xml文件中要用<!因为加注释的时候用的//
2023-03-30 18:15:44
132
原创 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
771
原创 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
659
原创 发送邮件失败: Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535
在application.properties中配置的spring.mail.password是授权码不是邮箱的密码。
2023-03-21 16:21:16
1186
原创 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
482
原创 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
74
1
原创 tensorflow中的两种损失函数比较
介绍多分类交叉熵损失tf.losses.softmax_cross_entropy以及tf.losses.sparse_softmax_cross_entropy两者区别
2022-09-28 20:27:56
792
原创 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
726
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人