- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
您好,我使用默认的 Jgroups-UDP 配置运行了 2 个 infinispan 服务器 6.0.0.CR1 实例,但没有看到集群形成。我更新了默认 Jgroups UDP 配置接口(interface)以指向计算机 IP,而不是环回地址。
<interface name="management">
<inet-address value="${jboss.bind.address.management:10.51.11.218}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:10.51.11.218}"/>
</interface>
来自 Machine1 的日志:
=========================================================================
JBoss Bootstrap Environment
JAVA_OPTS: -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=clustered.xml -Dsun.nio.ch.bugLevel=''
=========================================================================
09:53:33,218 INFO [org.jboss.modules] (main) JBoss Modules version 1.2.0.CR1
09:53:33,501 INFO [org.jboss.msc] (main) JBoss MSC version 1.0.4.GA
09:53:33,616 INFO [org.jboss.as] (MSC service thread 1-2) JBAS015899: JBoss Infinispan Server 6.0.0.CR1 (AS 7.2.0.Final) starting
09:53:35,570 INFO [org.xnio] (MSC service thread 1-1) XNIO Version 3.0.7.GA
09:53:35,582 INFO [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.0.7.GA
09:53:35,592 INFO [org.jboss.remoting] (MSC service thread 1-1) JBoss Remoting version 3.2.14.GA
09:53:35,572 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)
09:53:35,749 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 19) JBAS010280: Activating Infinispan subsystem.
09:53:35,769 INFO [org.jboss.as.clustering.jgroups] (ServerService Thread Pool -- 22) JBAS010260: Activating JGroups subsystem.
09:53:35,807 INFO [org.jboss.as.connector.logging] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.15.Final)
09:53:36,014 INFO [org.jboss.as.security] (ServerService Thread Pool -- 27) JBAS013171: Activating Security Subsystem
09:53:36,153 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 25) JBAS011800: Activating Naming Subsystem
09:53:36,288 INFO [org.jboss.as.security] (MSC service thread 1-4) JBAS013170: Current PicketBox version=4.0.15.Final
09:53:36,308 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 31) JBAS012605: Activated the following JSF Implementations: [main, 1.2]
09:53:36,367 INFO [org.jboss.as.naming] (MSC service thread 1-3) JBAS011802: Starting Naming Service
09:53:36,650 WARN [org.infinispan.configuration.global.TransportConfigurationBuilder] (MSC service thread 1-1) ISPN000254: The transport element's 'strictPeerToPeer' attribute is no longer in use.
09:53:36,970 INFO [org.apache.coyote.http11] (MSC service thread 1-4) JBWEB003001: Coyote HTTP/1.1 initializing on : http-/10.51.11.215:8080
09:53:37,111 INFO [org.apache.coyote.http11] (MSC service thread 1-4) JBWEB003000: Coyote HTTP/1.1 starting on: http-/10.51.11.215:8080
09:53:37,124 INFO [org.apache.coyote.ajp] (MSC service thread 1-2) JBWEB003046: Starting Coyote AJP/1.3 on ajp-/10.51.11.215:8089
09:53:37,355 INFO [org.infinispan.server.endpoint] (MSC service thread 1-3) JDGS010000: HotRodServer starting
09:53:37,356 INFO [org.infinispan.server.endpoint] (MSC service thread 1-4) JDGS010000: REST starting
09:53:37,431 INFO [org.infinispan.server.endpoint] (MSC service thread 1-3) JDGS010001: HotRodServer listening on 10.51.11.215:11222
09:53:37,431 INFO [org.infinispan.server.endpoint] (MSC service thread 1-1) JDGS010000: WebSocketServer starting
09:53:37,432 INFO [org.infinispan.server.endpoint] (MSC service thread 1-1) JDGS010001: WebSocketServer listening on 10.51.11.215:8181
09:53:37,836 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-2) ISPN000128: Infinispan version: Infinispan 'Infinium' 6.0.0.CR1
09:53:38,067 INFO [org.infinispan.server.endpoint] (MSC service thread 1-4) JDGS010002: REST mapped to /rest
09:53:38,089 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-3) ISPN000078: Starting JGroups Channel
09:53:38,145 WARN [org.jgroups.protocols.UDP] (MSC service thread 1-3) JGRP000015: the send buffer of socket DatagramSocket was set to 640KB, but the OS only allocated 131.07KB. This might lead to performance problems. Please set your max send buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
09:53:38,146 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-2) ISPN000031: MBeans were successfully registered to the platform MBean server.
09:53:38,146 WARN [org.jgroups.protocols.UDP] (MSC service thread 1-3) JGRP000015: the receive buffer of socket DatagramSocket was set to 20MB, but the OS only allocated 131.07KB. This might lead to performance problems. Please set your max receive buffer in the OS correctly (e.g. net.core.rmem_max on Linux)
09:53:38,147 WARN [org.jgroups.protocols.UDP] (MSC service thread 1-3) JGRP000015: the send buffer of socket MulticastSocket was set to 640KB, but the OS only allocated 131.07KB. This might lead to performance problems. Please set your max send buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
09:53:38,147 WARN [org.jgroups.protocols.UDP] (MSC service thread 1-3) JGRP000015: the receive buffer of socket MulticastSocket was set to 25MB, but the OS only allocated 131.07KB. This might lead to performance problems. Please set your max receive buffer in the OS correctly (e.g. net.core.rmem_max on Linux)
09:53:38,151 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-4) ISPN000031: MBeans were successfully registered to the platform MBean server.
09:53:38,155 INFO [stdout] (MSC service thread 1-3)
09:53:38,155 INFO [stdout] (MSC service thread 1-3) -------------------------------------------------------------------
09:53:38,155 INFO [stdout] (MSC service thread 1-3) GMS: address=lpv-ecisdev215/clustered, cluster=clustered, physical address=10.51.11.215:55200
09:53:38,156 INFO [stdout] (MSC service thread 1-3) -------------------------------------------------------------------
09:53:38,156 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-2) JBAS010281: Started jboss-web-policy cache from security container
09:53:38,157 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-4) JBAS010281: Started other cache from security container
09:53:38,259 INFO [org.jboss.modcluster.ModClusterService] (ServerService Thread Pool -- 32) Initializing mod_cluster 1.2.3.Final
09:53:38,279 INFO [org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl] (ServerService Thread Pool -- 32) Listening to proxy advertisements on 224.0.1.115:23,364
09:53:43,187 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-3) ISPN000094: Received new cluster view: [lpv-ecisdev215/clustered|0] [lpv-ecisdev215/clustered]
09:53:43,319 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-3) ISPN000079: Cache local address is lpv-ecisdev215/clustered, physical addresses are [10.51.11.215:55200]
09:53:43,373 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-2) ISPN000031: MBeans were successfully registered to the platform MBean server.
09:53:43,390 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-4) ISPN000031: MBeans were successfully registered to the platform MBean server.
09:53:43,395 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-2) JBAS010281: Started memcachedCache cache from clustered container
09:53:43,398 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-3) ISPN000031: MBeans were successfully registered to the platform MBean server.
09:53:43,401 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-4) JBAS010281: Started namedCache cache from clustered container
09:53:43,405 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-3) JBAS010281: Started default cache from clustered container
09:53:43,425 INFO [org.infinispan.server.endpoint] (MSC service thread 1-2) JDGS010000: MemcachedServer starting
09:53:43,426 INFO [org.infinispan.server.endpoint] (MSC service thread 1-2) JDGS010001: MemcachedServer listening on 10.51.11.215:11211
09:53:43,634 INFO [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on 10.51.11.215:9999
09:53:43,645 INFO [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on 10.51.11.215:4447
09:53:44,403 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-3) ISPN000031: MBeans were successfully registered to the platform MBean server.
09:53:44,433 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-3) JBAS010281: Started ___hotRodTopologyCache cache from clustered container
09:53:44,781 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://10.51.11.215:9990/management
09:53:44,784 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://10.51.11.215:9990
09:53:44,784 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss Infinispan Server 6.0.0.CR1 (AS 7.2.0.Final) started in 11981ms - Started 93 of 142 services (49 services are passive or on-demand)
09:53:54,327 WARN [org.jgroups.protocols.UDP] (TransferQueueBundler,shared=udp) null: no physical address for 71cc339a-27ad-278a-919e-b6c2e17e01db, dropping message
09:54:30,596 WARN [org.jgroups.protocols.UDP] (TransferQueueBundler,shared=udp) null: no physical address for 71cc339a-27ad-278a-919e-b6c2e17e01db, dropping message
09:55:25,051 WARN [org.jgroups.protocols.UDP] (TransferQueueBundler,shared=udp) null: no physical address for 71cc339a-27ad-278a-919e-b6c2e17e01db, dropping message
来自机器 2 的日志:
./clustered.sh -b 10.51.11.218
=========================================================================
JBoss Bootstrap Environment
JAVA_OPTS: -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=clustered.xml -Dsun.nio.ch.bugLevel=''
=========================================================================
09:48:25,167 INFO [org.jboss.modules] (main) JBoss Modules version 1.2.0.CR1
09:48:25,448 INFO [org.jboss.msc] (main) JBoss MSC version 1.0.4.GA
09:48:25,551 INFO [org.jboss.as] (MSC service thread 1-2) JBAS015899: JBoss Infinispan Server 6.0.0.CR1 (AS 7.2.0.Final) starting
09:48:27,469 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)
09:48:27,555 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 19) JBAS010280: Activating Infinispan subsystem.
09:48:27,570 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 31) JBAS012605: Activated the following JSF Implementations: [main, 1.2]
09:48:27,591 INFO [org.xnio] (MSC service thread 1-4) XNIO Version 3.0.7.GA
09:48:27,607 INFO [org.xnio.nio] (MSC service thread 1-4) XNIO NIO Implementation Version 3.0.7.GA
09:48:27,621 INFO [org.jboss.remoting] (MSC service thread 1-4) JBoss Remoting version 3.2.14.GA
09:48:27,665 INFO [org.jboss.as.clustering.jgroups] (ServerService Thread Pool -- 22) JBAS010260: Activating JGroups subsystem.
09:48:27,695 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 25) JBAS011800: Activating Naming Subsystem
09:48:27,924 INFO [org.jboss.as.security] (ServerService Thread Pool -- 27) JBAS013171: Activating Security Subsystem
09:48:27,972 INFO [org.jboss.as.security] (MSC service thread 1-2) JBAS013170: Current PicketBox version=4.0.15.Final
09:48:28,224 INFO [org.apache.coyote.ajp] (MSC service thread 1-4) JBWEB003046: Starting Coyote AJP/1.3 on ajp-/10.51.11.218:8089
09:48:28,302 INFO [org.jboss.as.connector.logging] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.15.Final)
09:48:28,385 INFO [org.apache.coyote.http11] (MSC service thread 1-3) JBWEB003001: Coyote HTTP/1.1 initializing on : http-/10.51.11.218:8080
09:48:28,446 INFO [org.apache.coyote.http11] (MSC service thread 1-3) JBWEB003000: Coyote HTTP/1.1 starting on: http-/10.51.11.218:8080
09:48:28,452 INFO [org.jboss.modcluster.ModClusterService] (ServerService Thread Pool -- 32) Initializing mod_cluster 1.2.3.Final
09:48:28,538 INFO [org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl] (ServerService Thread Pool -- 32) Listening to proxy advertisements on 224.0.1.115:23,364
09:48:28,628 INFO [org.jboss.as.naming] (MSC service thread 1-4) JBAS011802: Starting Naming Service
09:48:28,745 WARN [org.infinispan.configuration.global.TransportConfigurationBuilder] (MSC service thread 1-2) ISPN000254: The transport element's 'strictPeerToPeer' attribute is no longer in use.
09:48:28,963 INFO [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on 10.51.11.218:9999
09:48:28,973 INFO [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on 10.51.11.218:4447
09:48:29,339 INFO [org.infinispan.server.endpoint] (MSC service thread 1-1) JDGS010000: WebSocketServer starting
09:48:29,339 INFO [org.infinispan.server.endpoint] (MSC service thread 1-1) JDGS010001: WebSocketServer listening on 10.51.11.218:8181
09:48:29,355 INFO [org.infinispan.server.endpoint] (MSC service thread 1-3) JDGS010000: REST starting
09:48:29,563 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-4) ISPN000128: Infinispan version: Infinispan 'Infinium' 6.0.0.CR1
09:48:29,801 INFO [org.infinispan.server.endpoint] (MSC service thread 1-3) JDGS010002: REST mapped to /rest
09:48:29,803 INFO [org.infinispan.server.endpoint] (MSC service thread 1-3) JDGS010000: HotRodServer starting
09:48:29,803 INFO [org.infinispan.server.endpoint] (MSC service thread 1-3) JDGS010001: HotRodServer listening on 10.51.11.218:11222
09:48:29,829 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000078: Starting JGroups Channel
09:48:29,893 WARN [org.jgroups.protocols.UDP] (MSC service thread 1-1) JGRP000015: the receive buffer of socket DatagramSocket was set to 20MB, but the OS only allocated 4.19MB. This might lead to performance problems. Please set your max receive buffer in the OS correctly (e.g. net.core.rmem_max on Linux)
09:48:29,893 WARN [org.jgroups.protocols.UDP] (MSC service thread 1-1) JGRP000015: the receive buffer of socket MulticastSocket was set to 25MB, but the OS only allocated 4.19MB. This might lead to performance problems. Please set your max receive buffer in the OS correctly (e.g. net.core.rmem_max on Linux)
09:48:29,913 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-4) ISPN000031: MBeans were successfully registered to the platform MBean server.
09:48:29,924 INFO [stdout] (MSC service thread 1-1)
09:48:29,925 INFO [stdout] (MSC service thread 1-1) -------------------------------------------------------------------
09:48:29,925 INFO [stdout] (MSC service thread 1-1) GMS: address=lpv-ecisdev218/clustered, cluster=clustered, physical address=10.51.11.218:55200
09:48:29,925 INFO [stdout] (MSC service thread 1-1) -------------------------------------------------------------------
09:48:29,920 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-2) ISPN000031: MBeans were successfully registered to the platform MBean server.
09:48:29,931 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-4) JBAS010281: Started other cache from security container
09:48:29,931 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-2) JBAS010281: Started jboss-web-policy cache from security container
09:48:34,981 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000094: Received new cluster view: [lpv-ecisdev218/clustered|0] [lpv-ecisdev218/clustered]
09:48:35,133 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000079: Cache local address is lpv-ecisdev218/clustered, physical addresses are [10.51.11.218:55200]
09:48:35,214 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-2) ISPN000031: MBeans were successfully registered to the platform MBean server.
09:48:35,255 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-2) JBAS010281: Started namedCache cache from clustered container
09:48:35,262 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-2) ISPN000031: MBeans were successfully registered to the platform MBean server.
09:48:35,264 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-2) JBAS010281: Started memcachedCache cache from clustered container
09:48:35,264 INFO [org.infinispan.server.endpoint] (MSC service thread 1-2) JDGS010000: MemcachedServer starting
09:48:35,265 INFO [org.infinispan.server.endpoint] (MSC service thread 1-2) JDGS010001: MemcachedServer listening on 10.51.11.218:11211
09:48:35,269 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-1) ISPN000031: MBeans were successfully registered to the platform MBean server.
09:48:35,277 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-1) JBAS010281: Started default cache from clustered container
09:48:36,360 INFO [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-3) ISPN000031: MBeans were successfully registered to the platform MBean server.
09:48:36,391 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-3) JBAS010281: Started ___hotRodTopologyCache cache from clustered container
09:48:36,580 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://10.51.11.218:9990/management
09:48:36,580 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://10.51.11.218:9990
09:48:36,597 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss Infinispan Server 6.0.0.CR1 (AS 7.2.0.Final) started in 11856ms - Started 93 of 142 services (49 services are passive or on-demand)
来自第一台机器的 Ifconfig:
找不到命令
/sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:9D:50:89
inet addr:10.51.11.215 Bcast:10.51.11.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:341548 errors:0 dropped:0 overruns:0 frame:0
TX packets:474190 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:49619673 (47.3 MiB) TX bytes:108671222 (103.6 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:562 errors:0 dropped:0 overruns:0 frame:0
TX packets:562 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:176331 (172.1 KiB) TX bytes:176331 (172.1 KiB)
来自第二台机器的 Ifconfig:
eth0 Link encap:Ethernet HWaddr 00:50:56:9D:71:E3
inet addr:10.51.11.218 Bcast:10.51.11.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe9d:71e3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6202451 errors:0 dropped:0 overruns:0 frame:0
TX packets:1164337 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1805709659 (1.6 GiB) TX bytes:140887855 (134.3 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:45811520 errors:0 dropped:0 overruns:0 frame:0
TX packets:45811520 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:15389551121 (14.3 GiB) TX bytes:15389551121 (14.3 GiB)
最佳答案
检查这些计算机中的防火墙设置,它们可能会阻止 UDP 流量。您可以使用Wireshark验证 UDP 数据包是否确实离开计算机,或在 org.jgroups 包中启用 TRACE 日志记录。此外,路由器/交换机可以配置为不允许 UDP 流量。最后,如果无法使其工作,请更改为 TCP 作为主要传输协议(protocol),并使用 TCPPING 来发现节点,传入形成集群的两个节点的 IP 地址。切换到 TCP 很简单,只需传入 -Djboss.default.jgroups.stack=tcp
即可,但是需要在 standalone/configuration/clustered.xml
中切换 TCPPING 的 MPING 配置>:
<protocol type="TCPPING">
<property name="initial_hosts">10.51.11.215[7600],10.51.11.218[7600]</property>
</protocol>
关于java - 未通过 UDP 多播形成集群,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19711559/
我正在阅读 deduction guides在 C++17 中。假设我们有以下示例: template struct Custom { }; template struct Person {
我在我的 xamarin 表单项目中使用选项卡式页面。我正在尝试在 Android 的 MyTabsRenderer 类中使用 OnTabReselected 事件。但不会调用 OnTabSelect
我对 NSPredicate 有疑问。想不出一种写法,也找不到类似的东西。我有这个谓词: [NSPredicate predicateWithFormat:@"followedBy.username
我的模态中有一个小表单,如下所示: Name
我正在尝试制作用于表单验证的 jquery 插件(用于学习)。在此表单中,我无法获取类名称为“required”的所有表单字段。代码如下: (function( $ ) { $.fn.kValidat
在我的 Android 应用中,我从 Google Place API 获取附近餐馆的列表。 但不幸的是,这个列表没有给出餐厅的菜单。 我有 T_RESTAURANT 和 T_MENU 表。 假设我在
我正在尝试使用 angular.js 和 devise 设置登录。 这是我的表单 html: Email Password
谁能告诉我如何让生成的文档从表单中提取数据并将其作为标题?我已经查看了 Google Script 文档,但到目前为止我还没有找到任何可以回答我或向我展示类似示例的内容。到目前为止,我在这里找到了相关
当我有这样的表格时: “.”是什么意思?在行动中代表什么? 最佳答案 action 属性告诉表单将表单数据发布到哪里。 . 代表当前目录,所以我会说这是发布到当前目录中的默认文档。 相对路径有几
Mockito 似乎是一个非常漂亮的 Java stub /模拟框架。唯一的问题是我找不到任何关于使用他们的 API 的最佳方式的具体文档。测试中常用的方法包括: doXXX(???) : Stubb
我有 2 份表格。我从一种形式创建并展示了另一种形式。效果很好。但是,当我尝试从创建该表单的表单中关闭或处理该表单时,出现以下异常: Exception : Value Dispose() can
将我的应用程序上传到 TestFlight 时出现以下错误。 但是,我没有看到 missing 的任何位置Xamarin Assets 菜单中的图标。 (76x76、167x167 和 152x152
我的models.py文件看起来像这样 from django.db import models from django.template.defaultfilters import slugify
问题 学习 Xamarin 大学类(class) XAM120 .在将我的 IDial 实现添加到我的 UWP 项目时遇到障碍。出于某种原因,我的项目没有在我的系统上使用 PhoneCallManag
我在应用程序的列表页面上使用了 FloatingActionButton,我还想添加一个 searchBar。但我无法向他们展示该页面。我的代码和屏幕截图已关闭。如何显示搜索栏? FAB Github
实体产品和类别之间存在经典的多对多关系,其中一个产品可能包含在多个类别中。我们想在 UI 中使用带有 UITableViewController 或 UICollectionView 的 NSFetc
html 代码: js代码: function show(){ $.ajax({
我有一个用户列表。现在任何一个名字很长的用户都在搞乱排列/排列。 我认为通过为名称设置大小可以达到目的: .invitee .name{ height: 50px; width: 115px;
我正在使用 Flask 框架和 WTforms 库,我在更改选择字段中每个选项的颜色时遇到了问题,因为它总是显示为黑色而不是红色 我在模板中有下一个表单
Dugen Chen 写了一篇有用的文章,介绍如何将 HTML5 验证中的“required”属性添加到 Django 表单字段。 http://duganchen.ca/elegantly-addi
我是一名优秀的程序员,十分优秀!