
springboot
Catcher_Ghost
自己学习的一个记录轨迹,也是作为一个技术分享的一个窗口,希望小伙伴们前来赐教!!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
springboot的跨域配置
/***设置跨域请求/@Configurationpublic class CorsConfig {private Logger logger = LoggerFactory.getLogger(CorsConfig.class);private CorsConfiguration buildConfig() {CorsConfiguration corsConfigurati...原创 2019-11-18 18:26:56 · 201 阅读 · 1 评论 -
分布式开发系统
spring Boot+spring Cloud 与spring Boot +Dubbo +Zookeeperspring Boot+spring Cloud 组件多,功能完备,是HTTP请求spring Boot +Dubbo +Zookeeper 组件少,功能完备 Alibaba Dubbo ->apache Dubbo 孵化RPC通讯框架 ->微服务框架解决方案微服务架构...原创 2019-09-04 10:40:57 · 200 阅读 · 0 评论 -
springboot通过添加 Filter 的方式,配置 CORS 规则,并手动指定对哪些接口有效
@Configurationpublic class CorsConfig {private CorsConfiguration corsConfig() {CorsConfiguration corsConfiguration = new CorsConfiguration();corsConfiguration.addAllowedOrigin(""); // 设置访问源地址cors...原创 2019-08-28 10:00:02 · 643 阅读 · 0 评论 -
springboot整合activiti实战
application.ymlspring: datasource: url: jdbc:mysql://localhost:3306/spring-boot-demo username: root password: root hikari: data-source-properties: useSSL: false ...原创 2019-08-27 16:37:36 · 413 阅读 · 0 评论 -
springboot解决全局跨域问题
直接上代码import org.springframework.context.annotation.Configuration;import org.springframework.web.servlet.config.annotation.CorsRegistry;import org.springframework.web.servlet.config.annotation.WebMv...原创 2019-08-27 10:22:56 · 344 阅读 · 0 评论 -
springboot分页
在mybatis中1)写查询所有的满足条件的sql2)在分页的sql中添加limit #{limitStart},#{limitLength}3)在controller中if (StringUtils.isBlank(currPage)) {currPage = “1”;}if (StringUtils.isBlank(onePageNum)) {onePageNum = “...原创 2019-08-26 18:46:09 · 201 阅读 · 0 评论 -
springboot学习01
spring-boot-demo-actuator本 demo 主要演示了如何在 Spring Boot 中通过 actuator 检查项目运行情况SpringBootDemoActuatorApplication.javaimport org.springframework.boot.SpringApplication;import org.springframework.boot....原创 2019-08-20 17:38:54 · 296 阅读 · 0 评论 -
springboot的log4j.properties的配置
set log levelslog4j.rootLogger = debug , stdout , D , E输出到控制台log4j.appender.stdout = org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.Target = System.outlog4j.appender.stdout.layout = org...原创 2019-08-20 09:11:45 · 4237 阅读 · 0 评论 -
springboot的application.properties文件配置
数据源配置spring.datasource.url=jdbc:mysql://localhost:3306/springbootdb?useUnicode=true&characterEncoding=utf8spring.datasource.username=rootspring.datasource.password=123456spring.datasource.driv...原创 2019-08-19 16:20:13 · 358 阅读 · 0 评论