上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: 1、JAV <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.3.1</version> </dependency> <!-- 代码生成 阅读全文
posted @ 2021-12-17 10:52 生生灯火半杯月 阅读(208) 评论(0) 推荐(1)
摘要: 一、常用配置 不同版本的Swagger配置略有不同 Swagger2.9版本 访问地址:http://localhost:8080/swagger-ui.html SwaggerConfig: @Configuration // 作为配置类应有的注解 @EnableSwagger2 // 开启Swa 阅读全文
posted @ 2021-12-15 11:14 生生灯火半杯月 阅读(3227) 评论(0) 推荐(0)
摘要: 可以放在实体类中,设置属性设置器和构造方法 /** * 对Double数值格式化 * * @param f 原Double数据 * @param n 要保留的小数位 默认2位 * @return 新数据 */ private Double doubleDecimal(Double f, Intege 阅读全文
posted @ 2021-12-10 12:30 生生灯火半杯月 阅读(76) 评论(0) 推荐(0)
摘要: mvn install:install-file -Dfile=pbg-jc-feign-jaxrs-3.0.0-SNAPSHOT.jar -DgroupId=com.pbg.jc.common -DartifactId=pbg-jc-feign-jaxrs -Dversion=3.0.0-SNAP 阅读全文
posted @ 2021-12-09 22:06 生生灯火半杯月 阅读(32) 评论(0) 推荐(0)
摘要: 大多数都是python,但是Java爬虫的优势就是可以使用多线程; Java爬虫主要有WebMagic和WebClient,WebMagic框架比较好操作一些 WebMagic 关于WebMagic很简单看文档即可:http://webmagic.io/docs/zh/ 主要是四大部分;基于http 阅读全文
posted @ 2021-12-07 18:18 生生灯火半杯月 阅读(718) 评论(0) 推荐(0)
摘要: 数据库驱动没关系 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.url=jdbc:mysql://主机地址:3306/数据库名?relaxAutoCommit=true&zeroDateT 阅读全文
posted @ 2021-11-11 19:39 生生灯火半杯月 阅读(56) 评论(0) 推荐(0)
摘要: package charset; import java.io.UnsupportedEncodingException; public class ChangeCharset { /** 7位ASCII字符,也叫作ISO646-US、Unicode字符集的基本拉丁块 */ public stati 阅读全文
posted @ 2021-11-10 15:45 生生灯火半杯月 阅读(161) 评论(0) 推荐(0)
摘要: 版本控制系统-SVN:Apache Subversion 主要概念: repository(源码仓库):源代码统一存放的地方 checkout(提取):当你手上没有源代码的时候需要从repository,中checkout一份 commit(提交):当你已经修改了代码,你就要commit到repos 阅读全文
posted @ 2021-11-07 00:00 生生灯火半杯月 阅读(106) 评论(0) 推荐(0)
摘要: @RestControllerAdvice是复合注解 @ControllerAdvice @ResponseBody import org.springframework.web.bind.annotation.RestControllerAdvice; 作用:对Controller进行增强,两者搭 阅读全文
posted @ 2021-10-26 16:54 生生灯火半杯月 阅读(237) 评论(0) 推荐(0)
摘要: import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import org.springframework.core.convert.converter.Converter 阅读全文
posted @ 2021-10-21 15:16 生生灯火半杯月 阅读(80) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页