springboot
文章平均质量分 77
yeah_nn
这个作者很懒,什么都没留下…
展开
-
SpringBoot使用log4j2心得
因为springboot有默认日志系统,所以当要使用log4j2的时候,需要在pom文件把默认日志先进行关闭,配置如下:<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> &...原创 2021-06-18 09:32:41 · 222 阅读 · 3 评论 -
springboot集成分页
使用的MyBatis框架,用PageHelper插件。第一步:引入pom文件 <dependency>2 <groupId>com.github.pagehelper</groupId>3 <artifactId>pagehelper</artifactId>4 <version>...原创 2019-04-09 11:11:58 · 484 阅读 · 0 评论 -
springboot解决跨域问题
非常简单。只需要写一个工具类即可。@comfigurationpublic class CorsConfig{ private CorsConfiguration buildConfig() { CorsConfiguration corsConfiguration = new CorsConfiguration(); corsCo...原创 2019-04-09 11:22:35 · 137 阅读 · 0 评论