首页 \ 问答 \ 使用2个JQuery版本(Use 2 JQuery versions)

使用2个JQuery版本(Use 2 JQuery versions)

我是Themeforest的作者,今天我从Envato收到一条消息,告诉我必须使用最新版本的jQuery才能获得我的html模板批准,但是当我使用最新版本的相机滑块时( http:// www.pixedelic.com/plugins/camera/ )消失了。 我能做什么 ? 我需要帮助谢谢


I'm an author in Themeforest, Today I got a message from Envato telling me that I have to use the latest version of jQuery to get my html template approved, but when I use the latest version The camera slider by ( http://www.pixedelic.com/plugins/camera/ ) disappears. What Can I do ? Please I need Help Thanks


原文:https://stackoverflow.com/questions/30233864
更新时间:2022-08-19 07:08

最满意答案

所以昨天我能够弄清楚这一点,我遇到了同样(或至少类似)的问题。

您在RabbitMQ URI中拥有的选项必须与创建交换的选项完全匹配。 例如,在我的配置中,我有一个称为tasks的交换,它是直接类型,持久且未配置为自动解除。 请注意,rabbitmq camel组件中autodelete选项的默认值为true 。 另外,我想用路由密钥camel获取消息。 这意味着我的rabbitmq URI需要看起来像:

rabbitmq:localhost:5672/tasks?username=guest&password=guest&autoDelete=false&routingKey=camel

另外,我想从一个名为task_queue的现有队列中读取,而不是让rabbitmq camel组件声明它自己的队列。 因此,我还需要添加一个额外的查询参数,所以我的rabbitmq URI是

rabbitmq:localhost:5672/tasks?username=guest&password=guest&autoDelete=false&routingKey=camel&queue=task_queue

这个配置对我有用。 下面,我从配置交换和队列的代码中添加了一些Java代码片段,并发送消息和我的Camel Route配置。

Exchange和队列配置:

rabbitConnFactory = new ConnectionFactory();
rabbitConnFactory.setHost("localhost");
final Connection conn = rabbitConnFactory.newConnection();
final Channel channel = conn.createChannel();

// declare a direct, durable, non autodelete exchange named 'tasks'    
channel.exchangeDeclare("tasks", "direct", true); 
// declare a durable, non exclusive, non autodelete queue named 'task_queue'
channel.queueDeclare("task_queue", true, false, false, null); 
// bind 'task_queue' to the 'tasks' exchange with the routing key 'camel'
channel.queueBind("task_queue", "tasks", "camel"); 

发送消息:

channel.basicPublish("tasks", "camel", MessageProperties.PERSISTENT_TEXT_PLAIN, "hello, world!".getBytes());

骆驼路线:

@Override
public void configure() throws Exception {
    from("rabbitmq:localhost:5672/tasks?username=guest&password=guest&autoDelete=false&routingKey=camel&queue=task_queue")
        .to("mock:result");
}

我希望这有帮助!


So I was able to figure this out yesterday, I had the same (or at least similar) problems you were having.

The options you have in the RabbitMQ URI must exactly match the options that your exchange was created with. For example, in my configuration, I had an exchange called tasks that was a direct type, was durable, and was not configured to autodelete. Note that the default value for the autodelete option in the rabbitmq camel component is true. Additionally, I wanted to get the messages with the routing key camel. That means my rabbitmq URI needed to look like:

rabbitmq:localhost:5672/tasks?username=guest&password=guest&autoDelete=false&routingKey=camel

Additionally, I wanted to read from an existing queue, called task_queue rather than have the rabbitmq camel component declare it's own queue. Therefore, I also needed to add an additional query parameter, so my rabbitmq URI was

rabbitmq:localhost:5672/tasks?username=guest&password=guest&autoDelete=false&routingKey=camel&queue=task_queue

This configuration worked for me. Below, I added some Java code snippets from the code that configures the exchange and queue and sends a message, and my Camel Route configuration.

Exchange and Queue configuration:

rabbitConnFactory = new ConnectionFactory();
rabbitConnFactory.setHost("localhost");
final Connection conn = rabbitConnFactory.newConnection();
final Channel channel = conn.createChannel();

// declare a direct, durable, non autodelete exchange named 'tasks'    
channel.exchangeDeclare("tasks", "direct", true); 
// declare a durable, non exclusive, non autodelete queue named 'task_queue'
channel.queueDeclare("task_queue", true, false, false, null); 
// bind 'task_queue' to the 'tasks' exchange with the routing key 'camel'
channel.queueBind("task_queue", "tasks", "camel"); 

Sending a message:

channel.basicPublish("tasks", "camel", MessageProperties.PERSISTENT_TEXT_PLAIN, "hello, world!".getBytes());

Camel Route:

@Override
public void configure() throws Exception {
    from("rabbitmq:localhost:5672/tasks?username=guest&password=guest&autoDelete=false&routingKey=camel&queue=task_queue")
        .to("mock:result");
}

I hope this helps!

相关问答

更多
  • Camel不仅允许您向主题发送消息,还可以非常轻松地从主题中读取消息并将其发送到您的某个POJO。 从主题中读取并将消息发送到POJO的路由如下所示: from("activemq:topic:Vadim_Topic").bean(ExampleBean.class); Camel将根据收到的消息类型以及可用的方法签名确定在POJO上调用哪种方法。 有关在骆驼路线中使用POJO的详细信息,请参阅此页面: https : //camel.apache.org/bean.html Camel not only ...
  • 使用RabbitMQ使用MassTransit发送消息时,默认情况下不会创建队列的绑定。 假设服务中的接收端点将创建队列和相关绑定。 要确保在发送消息时存在队列和绑定,您可以修改端点地址以包含一些其他查询字符串参数,如下所示: rabbitmq://localhost/vhost/exchange_name?bind=true&queue=queue_name 对于接收端点,交换名称和队列名称相同。 When you send messages with MassTransit using RabbitM ...
  • 我能够通过不使用RabbitMQ接口发布消息来解决这个问题。 我使用RabbitMQ教程中的Send.java应用程序发布消息,这样我可以确保所有队列和交换都是正确的,并且它有效。 I was able to fix this by not using the RabbitMQ interface to post a message. I used the Send.java app from the RabbitMQ tutorials to publish a message that way I co ...
  • 如果您正在使用当前未实现该功能的RabbitMQ Camel组件 。 如果您真的想要使用RabbitMQ和Camel的事务,则需要更改代码以允许组件执行此操作。 您需要修改的确切内容是channel.basicPublish()调用。 If you are using the current RabbitMQ Camel Component that feature is not implemented. If you really want to use transactions with RabbitM ...
  • 从官方文档 : AMQP消息也有一个有效负载(它们携带的数据),AMQP代理将其视为一个不透明的字节数组。 经纪人不会检查或修改有效载荷。 消息可能只包含属性而没有有效载荷。 使用JSON,Thrift,Protocol Buffers和MessagePack等序列化格式来序列化结构化数据以便将其发布为消息有效载荷是很常见的。 AMQP同伴通常使用“内容类型”和“内容编码”字段来传达这些信息,但这只是惯例而已。 所以基本上,RabbitMQ对JSON没有任何了解,所有的消息都只是它的字节数组 From th ...
  • 你的问题是你没有在服务端命名你的队列 基于camel apache rabbitmq文档 ,这意味着为该队列生成一个随机名称。 所以: 你有一个向交换机发送消息的发布者 那么你的每个服务都会创建一个带有随机名称的队列 ,并将其绑定到交换机上 绑定到同一交换所的每个拥有自己队列的服务将获得相同的消息。 为了避免这种情况,您需要提供一个队列名称,以便每个服务都将连接到同一个队列 ,这意味着他们将与其他服务实例共享消息使用。 The issue you have is that you're not naming ...
  • 所以昨天我能够弄清楚这一点,我遇到了同样(或至少类似)的问题。 您在RabbitMQ URI中拥有的选项必须与创建交换的选项完全匹配。 例如,在我的配置中,我有一个称为tasks的交换,它是直接类型,持久且未配置为自动解除。 请注意,rabbitmq camel组件中autodelete选项的默认值为true 。 另外,我想用路由密钥camel获取消息。 这意味着我的rabbitmq URI需要看起来像: rabbitmq:localhost:5672/tasks?username=guest&passwo ...
  • 请仔细阅读本文档的“与消费者互动”部分。 您还应该在RabbitMQ用户列表中搜索答案,或者在没有被问到的情况下在那里发布您的问题。 got the issue. problem was that I was not able to set x-max-priority using camel endpoints. Need to add it in queueArgsConfigurer option in queue. To do this we need to implement ArgsConfig ...
  • 问题与messageConverter bean有关: 已被取代
    from()生成rabbitMQ头。 除非您手动删除它们,否则它们将传递给您to() 。 这会在您的连接中造成不匹配。 最好是在from()之后删除兔子标题,这样它们就不会干扰你to() 。 The from() generates rabbitMQ headers. Unless you manually remove them, they are passed to your to(). This will create a mismatch in your connection. Best is to ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)