摘要: 1、th:text <span th:text="Hello"></span> 2、th:value注意是input标签里 <input type = "text" name = "username" th:value="${msg}"/> 3、判断字符串是否为(注意#号,因为粗心漏过一次) thy 阅读全文
posted @ 2019-05-08 22:50 朱健栋 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1、创建maven项目 具体的配置如下 2、在pom文件中添加坐标并修改版本 3、编写Controller类 4、在classpath/目录下,即src/main/resourses目录下创建文件夹templates,并在该文件下创建HTML文件index.html 5、先写启动类即可 6、整个po 阅读全文
posted @ 2019-05-08 22:20 朱健栋 阅读(390) 评论(0) 推荐(0) 编辑