springboot
时间不等谁
爱编码
展开
-
SpringCloud Alibaba微服务解决方案
微服务概念微服务架构它是基于传统的SOA架构演进而来的一种架构模。其提倡将传统的单体架构或分布式架构中的单体应用程序和服务划分成更小粒度的服务,这种服务独立运行在独立的进程中并与其它的进程相隔离,服务于服务之间通常采用基于Http的通信协议构建的RestFulAPI进行通信,每个微服务都围绕着具体的业务二构建,其能独立的开发,构建,发布和部署到类成产环境和生产环境,而不影响其它的依赖业务。微服务优点1.降低单个服务复杂度原来耦合在一起的复杂业务拆分为单个服务,规避了原本复杂度无止境的积累。每一个微服原创 2021-05-24 16:59:40 · 294 阅读 · 0 评论 -
springboot跨域配置
public class SzptbApplication implements WebMvcConfigurer { public static void main(String[] args){ SpringApplication.run(SzptbApplication.class, args); } @Override public void addCorsMappings(CorsRegistry registry) { reg原创 2021-04-27 14:00:06 · 140 阅读 · 0 评论 -
java 定时任务ip是否ping的通
@Scheduled(cron = "0/10 * * * * ?") public void gatewayConnect(){ boolean linux = System.getProperty("os.name").toLowerCase().contains("linux"); boolean windows = System.getProperty("os.name").toLowerCase().contains("windows");原创 2021-03-30 14:44:16 · 324 阅读 · 0 评论 -
IDEA开发热部署配置
添加依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional.原创 2021-01-26 22:16:12 · 494 阅读 · 0 评论 -
SqlServer MySQL 双配置 SpringBoot
server: port: 39010spring: datasource: first: username: sa password: root driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver jdbc-url: jdbc:sqlserver://HUANGQUANHE:1433;DatabaseName=wm second: usernam原创 2020-12-16 19:30:38 · 116 阅读 · 0 评论 -
springboot+shrio安全框架密码加密与校验
pom.xml文件<!-- hutool-crypto --> <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-crypto</artifactId> <version>5.4.4</version> </dependency&g原创 2020-10-22 16:00:58 · 244 阅读 · 0 评论 -
springboot后端websocket简单实现上下行数据传输
配置package com.mlfo.wmb.config;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.web.socket.server.standard.ServerEndpointExporter;@Configurationpublic class Wek原创 2020-10-22 16:01:52 · 530 阅读 · 0 评论 -
mybatis-plus自动填充注入器
package com.mlfo.wmb.config.mybatis;import com.mlfo.wmb.utils.MyConvertUtils;import org.apache.ibatis.executor.Executor;import org.apache.ibatis.mapping.MappedStatement;import org.apache.ibatis.mapping.SqlCommandType;import org.apache.ibatis.plugin.*原创 2020-10-22 16:02:13 · 609 阅读 · 1 评论