
spring
雪花雨点
努力奋斗的人
展开
-
springgateway+oauth+nacous网关支持https,后台微服务使用http
项目场景:微服务忽略https解决方案:/*** 忽略https证书*/private static void disableSslVerification() {try{// Create a trust manager that does not validate certificate chainsTrustManager[] trustAllCerts = new TrustManager[] {new X509TrustManager() {public java.secur原创 2021-12-03 16:31:35 · 254 阅读 · 0 评论 -
Unable to start reactive web server
项目场景:spring boot项目启动报错:cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start reactive web server; nested exception is java.lang.IllegalStateException: java.io.IOException: toDerInputStream rejects tag type 8原创 2021-12-03 14:25:41 · 1472 阅读 · 0 评论 -
SpringCloudGateway 支持https和http,微服务间http转发
项目场景:springcloudgateway 作为网关,支持http和https,服务间使用http问题解决:ssl文件生成方式:keytool -genkeypair -alias client -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore keystore.p12 -validity 3650springcloudgateway网关支持https,官网配置(实测可用):server:ssl:enabled: truekey原创 2021-11-22 10:12:12 · 5799 阅读 · 2 评论 -
nacos配置文件读取错误nacos configuration and get it based on dataId[null.properties] & group[DEFAULT_GROUP]
问题描述:nacos配置文件读取错误Ignore the empty nacos configuration and get it based on dataId[null.properties] & group[DEFAULT_GROUP]2021-09-22 14:16:51.507 INFO [-,] 15592 — [ restartedMain] b.c.PropertySourceBootstrapConfiguration : Located property source:原创 2021-09-22 16:43:38 · 4328 阅读 · 0 评论 -
Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.#问题根本原因没有成功加载配置文件##检查pom.xml配置检查打包方式 pom 修改为jar即可pom的打包方式为父工程做引用的默认不加载配置文件和代码如果上述正确,请继续检查application.properties需要以下配置:spring.datas原创 2021-07-12 15:54:42 · 104 阅读 · 0 评论