上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 55 下一页
摘要: 登录控制: index中输入username和password数据传到后台controller中进行判断,成功即跳转 失败传入msg 阅读全文
posted @ 2022-02-23 17:04 doremi429 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 确保idea中File Encoding中 所有编码时UTF-8,不然会出现乱码 i18n:国际化翻译的缩写 扩展: k8s:Kubernetes Resource Bundle 可以可视化看到三个配置 2页面国际化: 1、需要配置i18n文件 2、如果需要在项目中进行按钮自动切换,需要自定义一个组 阅读全文
posted @ 2022-02-23 16:21 doremi429 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 1、首页配置:注意点:所有页面的静态资源都需要使用thymeleaf接管,@{} 每个静态页面的命名空间添加xmlns:th="http://www.thymeleaf.org" href前加th: 链接url改为@{} 阅读全文
posted @ 2022-02-23 14:52 doremi429 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 1、导入页面及静态资源 html放在templates下,css img js 放在static 下 2、创建部门类和员工类 dao层: 阅读全文
posted @ 2022-02-23 14:19 doremi429 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 配置视图解析器 视图跳转 在springboot中,有非常多的 xxx Configuration帮助我们进行扩展配置,只要看见了这个东西,我们就要注意了! 阅读全文
posted @ 2022-02-22 20:02 doremi429 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 自动配置: pom.xml spring-boot-dependencies:核心依赖在父工程中 我们在写或者引入一些springboot依赖的时候,不需要指定版本,因为有这些版本仓库 启动器:springboot的启动场景 比如spring-boot-starter-web,会自动导入web环境所 阅读全文
posted @ 2022-02-20 10:14 doremi429 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 1 阅读全文
posted @ 2022-02-19 09:31 doremi429 阅读(7) 评论(0) 推荐(0) 编辑
摘要: xmlns:mvc="http://www.springframework.org/schema/mvc" http://www.springframework.org/schema/mvchttp://www.springframework.org/schema/mvc/spring-mvc.xs 阅读全文
posted @ 2022-02-07 16:52 doremi429 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-02-07 16:49 doremi429 阅读(12) 评论(0) 推荐(0) 编辑
摘要: project structure中的artifacts 项目中的lib目录及jar包添加进去,与classes目录平级 阅读全文
posted @ 2022-02-06 14:07 doremi429 阅读(81) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 55 下一页