SpringBoot
hyc9528
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SpringBoot(6)数据库操作_整合Mybatis
环境准备导入依赖编写application.yml配置文件spring: datasource: username: root password: root driver-class-name: com.mysql.cj.jdbc.Driver # url: jdbc:mysql:///test?characterEncoding=UTF-8&serverTimezone=Asia/Shanghai url: jdbc:mysql://19原创 2020-11-02 19:50:10 · 210 阅读 · 0 评论 -
SpringBoot(5)数据库操作_JDBC和整合Druid
SpringBoot使用JDBC使用yml文件设置数据库信息spring: datasource: username: root password: root driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://192.168.253.138:3306/jdbc?useUnicode=true&characterEncoding=utf8测试数据库连接状态 @Autow原创 2020-11-02 19:49:13 · 227 阅读 · 0 评论 -
SpringBoot(4)RestfulCRUD
1. 添加员工跳转到添加员工页面新建add.html,添加员工添加表单<form th:href="@{/emp}" method="post"> <div class="form-group"> <label>LastName</label> <input type="text" class="form-control" placeholder="zhangsan"> </div> <div class=原创 2020-11-02 19:48:49 · 125 阅读 · 0 评论 -
SpringBoot(3)登陆和thymelef抽取公共页面
1. 登陆注意:使用thymelef模版引擎时想要页面实时刷新页面需要禁用thymelef的缓存# 禁用模版引擎的缓存spring.thymeleaf.cache=false页面修改完按ctrl+F9重新编译编写LoginController完成login.html<body class="text-center"> <form class="form-signin" action="dashboard.html" th:action="@{/user/l原创 2020-11-02 19:48:09 · 268 阅读 · 0 评论 -
SpringBoot(2)引入资源和国际化
引入资源1. 导入静态资源将静态资源放入resources.templates中将受到模版引擎的渲染静态资源使用thymelef<html lang="en" xmlns:th="http://www.thymeleaf.org">并且在调用其他资源文件时使用thymelef标签,比如: <!-- Bootstrap core CSS --> <link href="asserts/css/bootstrap.min.css" th:href="@{/we原创 2020-11-02 19:47:24 · 225 阅读 · 0 评论 -
springBoot(1)thymeleaf使用和扩展springmvc
thymeleaf使用和语法1. 引入thymeleaf <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency>2. thymeleaf使用和语法@ConfigurationPropert原创 2020-11-02 19:46:12 · 236 阅读 · 0 评论 -
springboot入门
1. 导入依赖<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.10.RELEASE</version> </parent> <dependencies>原创 2020-11-02 19:44:31 · 78 阅读 · 0 评论
分享