package org.itrunner.heroes.config; import org.springframework.boot.SpringApplication; import org.springframework.boot.env.EnvironmentPostProcessor; import org.springframework.boot.env.OriginTrackedMapPropertySource; import org.springframework.boot.env.YamlPropertySourceLoader; import org.springframework.core....
package com.leyou.auth.config; import com.mon.auth.utils.RsaUtils; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import javax.annotation.PostConstruct; import java.security.PrivateKey; import java.security.PublicKey; @Data @ConfigurationProperties(prefix = ...
Java代码中使用了lombok注解,IDE需安装lombok插件。 Spring Boot 创建Spring Boot App 创建Spring Boot项目最简易的方式是使用SPRING INITIALIZR 输入Group、Artifact,选择Dependency(Web、JPA、Security、Actuator、H2、PostgreSQL、Lombok)后,点击Generate,会自动下载zip包。 解压zip包,可以发现Initializr工具为我们创建了基本...
package org.itrunner.heroes.config; import org.springframework.boot.SpringApplication; import org.springframework.boot.env.EnvironmentPostProcessor; import org.springframework.boot.env.OriginTrackedMapPropertySource; import org.springframework.boot.env.YamlPropertySourceLoader; import org.springframework.core....