- 博客(6)
- 收藏
- 关注
原创 springboot整合rediscluster集群
springboot整合rediscluster集群 pom依赖 <!--redis连接池 start--> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-pool2</artifactId> </dependency>...
2020-04-08 20:38:40
723
原创 springboot配置虚拟路径以访问本地图片
springboot配置虚拟路径 以访问本地图片 我成功实现的方式是这样 import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springfra...
2020-04-06 13:46:40
1354
1
原创 thymeleaf 和pagehelper整合分页
自己写的thymeleaf 和pagehelper整合分页 第一次用thymeleaf也参考了一些博客 controller层 @RequestMapping("/searchmenu") public String searchMenu(SearchVo searchVo,Integer pageNum, Integer pageSize,Model model){ //...
2020-03-23 13:09:53
1071
原创 分页的时候pageSize没有效果
自己设置的pagesize有时候没有效果 是由于导入的pagehelper依赖原因 springboot项目用 <!-- mybatis的分页助手 springboot项目用这个 --> <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelp...
2020-03-23 13:03:09
1402
原创 用thymeleaf实现select标签回显
用thymeleaf实现select标签回显 这里主要是th:field="*{searchvo.menuType}" searchvo是一个类 menuType是他的属性 而非后台传来的model <select name="menuType" id="typeid" class=" form-control"> <option value="1" th:field="*{se...
2020-03-22 20:56:39
590
原创 thymeleaf+html 表单中select标签把已经选中的option得值项传回后台
thymeleaf+html 表单中select标签把已经选中的option得值项传回后台这里写自定义目录标题 下面展示一些 内联代码片。 <div class="form-group"> <label >请选择包厢</label> <select class="form-control" name="bid" value="bid"> <op...
2020-03-20 20:34:59
2059
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人