你能推荐最好的jQuery multiselect插件吗?我需要预测搜索功能以及多选.预测搜索功能会很方便,因为下拉列表包含很长的值列表.
在尝试将消息发布到spring bean的init-method中的通道时,获取'Dispatcher没有订阅者'错误.请看下面的例子:
applicationContext.xml中
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:rmi="http://www.springframework.org/schema/integration/rmi"
xmlns:int="http://www.springframework.org/schema/integration"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/integration
http://www.springframework.org/schema/integration/spring-integration.xsd
http://www.springframework.org/schema/integration/rmi
http://www.springframework.org/schema/integration/rmi/spring-integration-rmi.xsd">
<bean id="currencyService" class="com.demo.CurrencyService" init-method="init"/>
<int:channel id="currencyChannel" />
<int:channel id="currencyReplyChannel">
<int:queue/>
</int:channel>
<rmi:outbound-gateway id="currencyServiceGateway"
request-channel="currencyChannel" remote-channel="currencyServiceChannel"
reply-channel="currencyReplyChannel" host="localhost" port="2197" />
</beans>
Run Code Online (Sandbox Code Playgroud)
Spring托管bean:
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.integration.Message;
import org.springframework.integration.MessageChannel;
import org.springframework.integration.core.MessagingTemplate;
import org.springframework.integration.core.PollableChannel;
import org.springframework.integration.message.GenericMessage;
public class CurrencyService {
@Autowired
private MessageChannel currencyChannel;
@Autowired
private PollableChannel currencyReplyChannel;
private CurrencyListBO currencyListBO;
public CurrencyListBO getCurrencyList() {
return currencyListBO;
}
public void init() {
CurrencyIN request = …Run Code Online (Sandbox Code Playgroud) 每次触发我的构建工作流程时,都会下载Maven依赖项。
Travis CI提供了一种缓存Maven存储库的方法。Github操作是否提供允许缓存Maven存储库的类似功能?
调用/actuator/auditevents端点时出现 404 错误。仔细观察,我发现可用端点列表不包括/auditevents端点。
pom.xml 依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
Run Code Online (Sandbox Code Playgroud)
application.properties
management.endpoints.web.exposure.include=*
http://localhost:8080/actuator 输出
{
"_links": {
"beans": {
"href": "http://localhost:8080/actuator/beans",
"templated": false
},
"caches": {
"href": "http://localhost:8080/actuator/caches",
"templated": false
},
"caches-cache": {
"href": "http://localhost:8080/actuator/caches/{cache}",
"templated": true
},
"conditions": {
"href": "http://localhost:8080/actuator/conditions",
"templated": false
},
"configprops": {
"href": "http://localhost:8080/actuator/configprops",
"templated": false
},
"env": {
"href": "http://localhost:8080/actuator/env",
"templated": false
},
"env-toMatch": {
"href": "http://localhost:8080/actuator/env/{toMatch}",
"templated": true
},
"health": {
"href": …Run Code Online (Sandbox Code Playgroud) 在谷歌代码上提供的ehcache-spring-annotations库中,可以使用配置选项"create-missing-caches"来动态创建动态缓存(未在ehcache.xml中定义缓存).纯弹簧ehcache抽象(Spring 3.1.1)中是否有类似的配置?或者有没有其他方法可以使用spring ehcache抽象创建动态缓存?
下面是我的nodejs代码
const express = require('express');
const app = express();
app.use('/', (req, res, next) => {
console.log("In interceptor");
next();
});
app.use('/users', (req, res, next) => {
console.log('In /users middleware');
res.send('<h1>From "/users" handler </h1>');
});
app.use('/', (req, res, next) => {
console.log("Default handler");
res.send('<h1>From default handler</h1>');
});
app.listen(3000);
Run Code Online (Sandbox Code Playgroud)
从浏览器(chrome 和 Edge)发出请求时的控制台输出
http://localhost:3000
******************
In interceptor
Default handler
In interceptor
Default handler
******************
http://localhost:3000/users
******************
In interceptor
In /users middleware
In interceptor
Default handler
******************
Run Code Online (Sandbox Code Playgroud)
但是当使用发出请求时curl,我没有看到多次调用
curl http://localhost:3000
******************
In interceptor …Run Code Online (Sandbox Code Playgroud)