码迷,mamicode.com
首页 >  
搜索关键字:spring text    ( 97380个结果
Springboot集成Redis举例
依赖包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 配置文件(application.pr ...
分类:编程语言   时间:2021-07-01 16:26:20    阅读次数:0
mybatis和spring整合的jar包准备
mybatis和spring整合 需要jar包 1、spring 2、mybatis 3、mybatis和spring的整合包(下载地址:https://github.com/mybatis/spring) 3.1、下载只有maven工程源码,没有jar包 3.2、根据源码自己生成,导入maven工 ...
分类:编程语言   时间:2021-06-30 18:41:47    阅读次数:0
spring boot项目可通过Result类或者自定返回类实现controller层返回数据
一.通过Result类实现返回数据 //用户注册 @PostMapping("/registerUser") public Result registerUser(@RequestBody User user){ Result result = Results.successWithData( us ...
分类:编程语言   时间:2021-06-30 18:33:50    阅读次数:0
Spring Boot 学习(一) 异常处理机制
自定义404 5xx 页面,在文件夹下添加一个error的文件夹,里面添加对应的html 根据报错显示对应的html 自定义显示,在返回的信息中,浏览器返回的是json,此时包含了5个消息,时间、错误信息、堆栈、路径、状态码,只要是json信息都可以取到,通过thymeleaf里的th:text=" ...
分类:编程语言   时间:2021-06-30 18:28:26    阅读次数:0
spring boot 项目中application.properties如何配置
一般在application.properties中配置服务器端口以及连接数据库配置,还可配置对应mapper.xml的位置供容器扫描,也可配置驼峰以及包实体类包别名等 server.port=8080 spring.datasource.driver-class-name=com.mysql.cj ...
分类:移动开发   时间:2021-06-30 18:26:12    阅读次数:0
Statistics of subscribers of each platform from June 2020 to June 2021
Description:Here will use pictures and text to report the statistics of the number of subscribers. Total number of subscribers:4243 1.toutiao(今日头条)Dot ...
分类:其他好文   时间:2021-06-30 18:09:06    阅读次数:0
Statistics of pageviews by platform from June 2020 to June 2021
Description:Here will use pictures and text to report traffic statistics. Total reading volume on all platforms:85653 Total playback volume on all pla ...
分类:其他好文   时间:2021-06-30 18:08:31    阅读次数:0
清理git提交记录并不能达到真正硬盘“瘦身”
清理git提交记录并不能给“瘦身” 上周发现gitlab同步到线上的主服务器cpu和内存报警。 一查发现是隐藏目录 .git 过大导致的,导致每分钟同步卡死, 我其实有点怀疑是同步脚本中git命令导致的,要不就是下面的同步命令(每1分钟跑一次);要不就是每5分钟去git目录跑一次的git statu ...
分类:其他好文   时间:2021-06-30 18:05:44    阅读次数:0
前端基础---无序列表与有序列表
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>无序列表和有序列表</title> <style type="text/css"> /* 去掉项目符号 */ .ul1 { list-style: none; } </style> ...
分类:其他好文   时间:2021-06-30 17:53:22    阅读次数:0
springboot之jackson的两种配置方式
转自:https://www.cnblogs.com/liaojie970/p/9396334.html springboot 针对jackson是自动化配置的,如果需要修改,有两种方式: 方式一:通过application.yml 配置属性说明:## spring.jackson.date-for ...
分类:编程语言   时间:2021-06-30 17:38:36    阅读次数:0
97380条   上一页 1 ... 6 7 8 9 10 ... 9738 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!