![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring Boot
弓长张_木子李
这个作者很懒,什么都没留下…
展开
-
Spring boot+ maven + thymeleaf + HTML 实现简单的web项目
第一步: 创建一个SpringBoot应用 第二步: 创建一个实体,用来存储数据,在src/main/java/com/example/first下创建包entity , 在entity下创建Person.java文件 package com.example.first.entity; public class Person { private String name; p原创 2018-01-26 14:31:01 · 2463 阅读 · 0 评论 -
Spring boot + mybatis + orcale
接着上次的实现, 添加 mybatis 查询 orcale 数据库 第一步: 新建几个必须的包, 结果如下 第二步: 在service包下新建personService.java 根据名字查person方法接口 package com.example.first.service; import com.example.first.entity.Person; public int原创 2018-01-29 14:11:31 · 344 阅读 · 0 评论 -
Spring boot 直接访问templates中html文件
application.properties 在浏览器中输入http://localhost:8080/index.html 会报一个 因为Spring boot 无法直接访问templates下的文件, 想要直接输入http://localhost:8080/index.html显示页面, 需要在src/main/下新建一个package 将html文件放在里面, 然后就原创 2018-01-29 14:11:45 · 19142 阅读 · 7 评论