<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[xhalg的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/xhalg</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; xhalg]]></copyright><item><title><![CDATA[Request processing failed； nested exception is java.lang.IllegalStateException: No instances availab]]></title><link>https://blog.youkuaiyun.com/xhalg/article/details/120694877</link><guid>https://blog.youkuaiyun.com/xhalg/article/details/120694877</guid><author>xhalg</author><pubDate>Mon, 11 Oct 2021 00:05:49 +0800</pubDate><description><![CDATA[利用spring-cloud的ribbon组件做应用的负载均衡，相关依赖包也都按照说明进行配置



结果服务启动以后，注册的多个服务在监控控制台上都可以看到，但是在通过负载进行调用的时候后台出异常，提示没有可用的服务，信息如下：

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is j]]></description><category></category></item><item><title><![CDATA[Bad RequestThis combination of host and port requires TLS.]]></title><link>https://blog.youkuaiyun.com/xhalg/article/details/120694748</link><guid>https://blog.youkuaiyun.com/xhalg/article/details/120694748</guid><author>xhalg</author><pubDate>Sun, 10 Oct 2021 23:46:43 +0800</pubDate><description><![CDATA[在springboot工程下面，创建了一个服务，想着是开发环境，在访问请求的时候直接用http协议访问服务，不想配置https协议请求的相关服务，觉得只要不配置443端口就行了 ，其它的配置项自动失效。



http协议转发的JAVA代码也注释掉



结果发现还是不行，利用http协议访问应用，提示以下错误信息：


Bad Request
This combination of host and port requires TLS.


最终经过调查才发现，要想关于ssl的相关配置信息不生效，就必..]]></description><category></category></item><item><title><![CDATA[springboot和springcloud的版本对应关系]]></title><link>https://blog.youkuaiyun.com/xhalg/article/details/120622437</link><guid>https://blog.youkuaiyun.com/xhalg/article/details/120622437</guid><author>xhalg</author><pubDate>Wed, 06 Oct 2021 11:10:03 +0800</pubDate><description><![CDATA[在springboot框架下应用springcloud搭建微服务时，避免不了要考虑版本对应的关系，否则就会导致在工程启动的时候出现异常。如下图，是我在最新的springboot2.5.5版本下，从以前的工程中拷贝的springcloud版本号

springboot：2.5.5

spingcloud:Greenwich.RC2



结果在项目启动的时候报以下异常：

org.springframework.beans.factory.BeanCreationException: Error creat.]]></description><category></category></item><item><title><![CDATA[not tests found with test runner ‘JUnit5‘]]></title><link>https://blog.youkuaiyun.com/xhalg/article/details/120584397</link><guid>https://blog.youkuaiyun.com/xhalg/article/details/120584397</guid><author>xhalg</author><pubDate>Sat, 02 Oct 2021 11:47:01 +0800</pubDate><description><![CDATA[利用JUnit做单元测试的时候，出现上述异常提示 ，经过摸索后发现解决如下：

1.问题

 not tests found with test runner 'JUnit5'



2.解决方案

1）代码用引用的是junit4的测试组件，然后maven默认应用的是junit5,导致不匹配，所以出现上述异常

2).将junit运行版本设置为junit4,设置方法如下。

在测试类中右键，选择run as.
	选择configurations...
	选择Test runner JUnit4
3...]]></description><category></category></item><item><title><![CDATA[微信小程序简单论坛实现demo,供参考。]]></title><link>https://blog.youkuaiyun.com/xhalg/article/details/111357145</link><guid>https://blog.youkuaiyun.com/xhalg/article/details/111357145</guid><author>xhalg</author><pubDate>Fri, 18 Dec 2020 22:22:28 +0800</pubDate><description><![CDATA[微信小程序设计UI

最近闲来无事学习微信小程序，自己做了一个demo，以下是笔记部分，时间有限，功能比较简单，做得也比较粗糙，欢迎各位提意见。

一.首页



1.广告轮播模块

采用的是swiper组件，定时切换。



2.主要功能模块

功能按钮默认有四个，采用弹性布局，等间隔排列



3.知识宣教模块

采用九宫格方式，弹性布局，每行两个元素排列



4.二手闲置模块

横置六个最新上架的二手闲置物品，可以左右滑动，采用的是movable-area组件实现



5.附近好房模块

展示附近]]></description><category></category></item><item><title><![CDATA[SpringBoot +thymeleaf 访问(static)静态资源的处理方法]]></title><link>https://blog.youkuaiyun.com/xhalg/article/details/110077294</link><guid>https://blog.youkuaiyun.com/xhalg/article/details/110077294</guid><author>xhalg</author><pubDate>Tue, 24 Nov 2020 15:08:07 +0800</pubDate><description><![CDATA[1.问题

最近使用SpringBoot框架+thymeleaf模板做一个简单网站，代码目录如下



项目启动之后，静态资源（css、js、图片）都不能访问，通过浏览器访问，加载开发工具控制台，得到如下404错误信息

GET http://localhost/css/buju.css net::ERR_ABORTED 404







2.分析问题

404错误，无非就是没找到资源，将http://localhost/css/buju.css拷贝到浏览器中访问，也无法访问到，百度了各种解决方案，..]]></description><category></category></item><item><title><![CDATA[SpringCloud 微服务注册中心启动之后报错，如何处理!]]></title><link>https://blog.youkuaiyun.com/xhalg/article/details/102816552</link><guid>https://blog.youkuaiyun.com/xhalg/article/details/102816552</guid><author>xhalg</author><pubDate>Wed, 30 Oct 2019 12:01:28 +0800</pubDate><description><![CDATA[Tip: It's the step after the last dot that caused this error, not those before it.
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either s...]]></description><category></category></item><item><title><![CDATA[各位大神，我的STS在编译的时候突然冒出来这个问题，各种查也没有解决，谁能帮我看看，十分感谢~]]></title><link>https://blog.youkuaiyun.com/xhalg/article/details/82936678</link><guid>https://blog.youkuaiyun.com/xhalg/article/details/82936678</guid><author>xhalg</author><pubDate>Thu, 04 Oct 2018 12:35:03 +0800</pubDate><description><![CDATA[Errors occurred during the build.
Errors running builder 'Java Builder' on project 'readinglist'.
org/eclipse/jdt/internal/core/CompilationUnitProblemFinder(wrong name: org/eclipse/jdt/internal/core/C...]]></description><category></category></item><item><title><![CDATA[关于龙卷风搜索引擎创建索引失败的解决方案]]></title><link>https://blog.youkuaiyun.com/xhalg/article/details/4338675</link><guid>https://blog.youkuaiyun.com/xhalg/article/details/4338675</guid><author>xhalg</author><pubDate>Fri, 10 Jul 2009 18:44:00 +0800</pubDate><description><![CDATA[在项目实施的过程中使用了龙卷风搜索引擎,该搜索引擎不能增量的创建索引.所以做了一个计划任务,让其在每天晚上三点的时候启动任务,对所有的文件进行重新创建索引.但是在近段时间现场反映索引创建失败,即使手动执行创建索引脚本也不行.反反复复弄好好长的时间也不行,更可气的是龙卷风公司的人都找不到,公司主页也访问不了,强烈谴责这些不负责任的公司.好在我手里还有相关的文档资料,发现通过龙卷风的控制台也可以建索引]]></description><category></category></item></channel></rss>