开发中关于IPv6的问题
问题:
报错信息如下
[root@kube-master iemp]# kubectl logs equipment-139404108-7mc14 -n iemp
2017-05-27 05:41:06,250 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: JCA - STABLE org.wildfly.swarm:jca:2017.4.0
2017-05-27 05:41:06,288 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Logging - STABLE org.wildfly.swarm:logging:2017.4.0
2017-05-27 05:41:06,288 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Bean Validation - STABLE org.wildfly.swarm:bean-validation:2017.4.0
2017-05-27 05:41:06,288 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: EJB - STABLE org.wildfly.swarm:ejb:2017.4.0
2017-05-27 05:41:06,288 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Transactions - STABLE org.wildfly.swarm:transactions:2017.4.0
2017-05-27 05:41:06,289 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: JAX-RS - STABLE org.wildfly.swarm:jaxrs:2017.4.0
2017-05-27 05:41:06,289 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: JPA - STABLE org.wildfly.swarm:jpa:2017.4.0
2017-05-27 05:41:06,289 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: CDI - STABLE org.wildfly.swarm:cdi:2017.4.0
2017-05-27 05:41:06,289 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: CDI Configuration - STABLE org.wildfly.swarm:cdi-config:2017.4.0
2017-05-27 05:41:06,289 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Datasources - STABLE org.wildfly.swarm:datasources:2017.4.0
2017-05-27 05:41:06,290 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Logstash - STABLE org.wildfly.swarm:logstash:2017.4.0
2017-05-27 05:41:06,290 INFO [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: Undertow - STABLE org.wildfly.swarm:undertow:2017.4.0
2017-05-27 05:41:08,318 INFO [org.wildfly.swarm.datasources] (main) WFSWARM1003: Auto-detected JDBC driver for h2
2017-05-27 05:41:08,326 INFO [org.wildfly.swarm.datasources] (main) WFSWARM1003: Auto-detected JDBC driver for mysql
2017-05-27 05:41:08,343 INFO [org.wildfly.swarm.datasources] (main) WFSWARM1003: Auto-detected JDBC driver for postgresql
2017-05-27 05:41:09,171 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
2017-05-27 05:41:09,267 INFO [org.jboss.as] (MSC service thread 1-5) WFLYSRV0049: WildFly Swarm 2017.4.0 (WildFly Core 2.2.1.Final) starting
2017-05-27 05:41:09,333 INFO [org.wildfly.swarm] (MSC service thread 1-5) WFSWARM0019: Install MSC service for command line args: []
2017-05-27 05:41:11,053 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 29) WFLYNAM0001: Activating Naming Subsystem
2017-05-27 05:41:11,045 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 27) WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique.
2017-05-27 05:41:11,058 INFO [org.jboss.as.security] (ServerService Thread Pool -- 21) WFLYSEC0002: Activating Security Subsystem
2017-05-27 05:41:11,077 INFO [org.jboss.as.security] (MSC service thread 1-1) WFLYSEC0001: Current PicketBox version=4.9.6.Final
2017-05-27 05:41:11,093 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 24) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors
2017-05-27 05:41:11,110 INFO [org.jboss.as.naming] (MSC service thread 1-2) WFLYNAM0003: Starting Naming Service
2017-05-27 05:41:11,210 INFO [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0003: Undertow 1.4.11.Final starting
2017-05-27 05:41:11,232 INFO [org.jboss.as.connector] (MSC service thread 1-3) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.3.4.Final)
2017-05-27 05:41:11,333 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 17) WFLYJCA0005: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
2017-05-27 05:41:11,339 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) WFLYJCA0018: Started Driver service with driver-name = com.mysql
2017-05-27 05:41:11,359 INFO [org.xnio] (MSC service thread 1-1) XNIO version 3.4.3.Final
2017-05-27 05:41:11,369 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 17) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.4)
2017-05-27 05:41:11,370 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 17) WFLYJCA0005: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
2017-05-27 05:41:11,370 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) WFLYJCA0018: Started Driver service with driver-name = mysql
2017-05-27 05:41:11,372 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) WFLYJCA0018: Started Driver service with driver-name = h2
2017-05-27 05:41:11,490 INFO [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.4.3.Final
2017-05-27 05:41:11,491 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 17) WFLYJCA0005: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.4)
2017-05-27 05:41:11,495 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = postgresql
2017-05-27 05:41:11,614 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0012: Started server default-server.
2017-05-27 05:41:11,750 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.undertow.listener.default: org.jboss.msc.service.StartException in service jboss.undertow.listener.default: WFLYUT0082: Could not start 'default' listener.
at org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:153)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.SocketException: Protocol family unavailable
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.xnio.nio.NioXnioWorker.createTcpConnectionServer(NioXnioWorker.java:171)
at org.xnio.XnioWorker.createStreamConnectionServer(XnioWorker.java:245)
at org.wildfly.extension.undertow.HttpListenerService.startListening(HttpListenerService.java:126)
at org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:142)
... 5 more
2017-05-27 05:41:11,880 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) WFLYJCA0001: Bound data source [java:jboss/datasources/EmDS]
2017-05-27 05:41:11,885 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "undertow"),
("server" => "default-server"),
("http-listener" => "default")
]) - failure description: {
"WFLYCTL0080: Failed services" => {"jboss.undertow.listener.default" => "org.jboss.msc.service.StartException in service jboss.undertow.listener.default: WFLYUT0082: Could not start 'default' listener.
Caused by: java.net.SocketException: Protocol family unavailable"},
"WFLYCTL0412: Required services that are not installed:" => ["jboss.undertow.listener.default"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
2017-05-27 05:41:11,968 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.undertow.listener.default: org.jboss.msc.service.StartException in service jboss.undertow.listener.default: WFLYUT0082: Could not start 'default' listener.
2017-05-27 05:41:12,113 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Swarm 2017.4.0 (WildFly Core 2.2.1.Final) started (with errors) in 2987ms - Started 141 of 156 services (1 services failed or missing dependencies, 28 services are lazy, passive or on-demand)
2017-05-27 05:41:12,128 ERROR [stderr] (main) java.lang.reflect.InvocationTargetException
2017-05-27 05:41:12,128 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-05-27 05:41:12,128 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2017-05-27 05:41:12,128 ERROR [stderr] (main) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2017-05-27 05:41:12,128 ERROR [stderr] (main) at java.lang.reflect.Method.invoke(Method.java:498)
2017-05-27 05:41:12,128 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
2017-05-27 05:41:12,129 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.run(Main.java:46)
2017-05-27 05:41:12,129 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.main(Main.java:37)
2017-05-27 05:41:12,129 ERROR [stderr] (main) Caused by: java.lang.RuntimeException: org.jboss.msc.service.StartException in service jboss.undertow.listener.default: WFLYUT0082: Could not start 'default' listener.
2017-05-27 05:41:12,129 ERROR [stderr] (main) at org.wildfly.swarm.spi.api.ClassLoading.withTCCL(ClassLoading.java:45)
2017-05-27 05:41:12,129 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.bootstrap(ServerBootstrapImpl.java:109)
2017-05-27 05:41:12,129 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.start(Swarm.java:369)
2017-05-27 05:41:12,129 ERROR [stderr] (main) at com.mayocase.iemp.em.Main.main(Main.java:39)
2017-05-27 05:41:12,130 ERROR [stderr] (main) ... 7 more
2017-05-27 05:41:12,130 ERROR [stderr] (main) Caused by: org.jboss.msc.service.StartException in service jboss.undertow.listener.default: WFLYUT0082: Could not start 'default' listener.
2017-05-27 05:41:12,130 ERROR [stderr] (main) at org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:153)
2017-05-27 05:41:12,130 ERROR [stderr] (main) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
2017-05-27 05:41:12,130 ERROR [stderr] (main) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
2017-05-27 05:41:12,130 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
2017-05-27 05:41:12,130 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
2017-05-27 05:41:12,131 ERROR [stderr] (main) at java.lang.Thread.run(Thread.java:745)
2017-05-27 05:41:12,131 ERROR [stderr] (main) Caused by: java.net.SocketException: Protocol family unavailable
2017-05-27 05:41:12,131 ERROR [stderr] (main) at sun.nio.ch.Net.bind0(Native Method)
2017-05-27 05:41:12,131 ERROR [stderr] (main) at sun.nio.ch.Net.bind(Net.java:433)
2017-05-27 05:41:12,131 ERROR [stderr] (main) at sun.nio.ch.Net.bind(Net.java:425)
2017-05-27 05:41:12,131 ERROR [stderr] (main) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
2017-05-27 05:41:12,131 ERROR [stderr] (main) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
2017-05-27 05:41:12,131 ERROR [stderr] (main) at org.xnio.nio.NioXnioWorker.createTcpConnectionServer(NioXnioWorker.java:171)
2017-05-27 05:41:12,131 ERROR [stderr] (main) at org.xnio.XnioWorker.createStreamConnectionServer(XnioWorker.java:245)
2017-05-27 05:41:12,132 ERROR [stderr] (main) at org.wildfly.extension.undertow.HttpListenerService.startListening(HttpListenerService.java:126)
2017-05-27 05:41:12,132 ERROR [stderr] (main) at org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:142)
2017-05-27 05:41:12,132 ERROR [stderr] (main) ... 5 more
2017-05-27 05:41:12,132 ERROR [stderr] (main) Exception in thread "main" java.lang.reflect.InvocationTargetException
2017-05-27 05:41:12,132 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-05-27 05:41:12,133 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2017-05-27 05:41:12,133 ERROR [stderr] (main) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2017-05-27 05:41:12,133 ERROR [stderr] (main) at java.lang.reflect.Method.invoke(Method.java:498)
2017-05-27 05:41:12,133 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
2017-05-27 05:41:12,133 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.run(Main.java:46)
2017-05-27 05:41:12,133 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.Main.main(Main.java:37)
2017-05-27 05:41:12,133 ERROR [stderr] (main) Caused by: java.lang.RuntimeException: org.jboss.msc.service.StartException in service jboss.undertow.listener.default: WFLYUT0082: Could not start 'default' listener.
2017-05-27 05:41:12,133 ERROR [stderr] (main) at org.wildfly.swarm.spi.api.ClassLoading.withTCCL(ClassLoading.java:45)
2017-05-27 05:41:12,134 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.bootstrap(ServerBootstrapImpl.java:109)
2017-05-27 05:41:12,134 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.start(Swarm.java:369)
2017-05-27 05:41:12,134 ERROR [stderr] (main) at com.mayocase.iemp.em.Main.main(Main.java:39)
2017-05-27 05:41:12,134 ERROR [stderr] (main) ... 7 more
2017-05-27 05:41:12,134 ERROR [stderr] (main) Caused by: org.jboss.msc.service.StartException in service jboss.undertow.listener.default: WFLYUT0082: Could not start 'default' listener.
2017-05-27 05:41:12,134 ERROR [stderr] (main) at org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:153)
2017-05-27 05:41:12,134 ERROR [stderr] (main) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
2017-05-27 05:41:12,134 ERROR [stderr] (main) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
2017-05-27 05:41:12,134 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
2017-05-27 05:41:12,135 ERROR [stderr] (main) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
2017-05-27 05:41:12,135 ERROR [stderr] (main) at java.lang.Thread.run(Thread.java:745)
2017-05-27 05:41:12,135 ERROR [stderr] (main) Caused by: java.net.SocketException: Protocol family unavailable
2017-05-27 05:41:12,135 ERROR [stderr] (main) at sun.nio.ch.Net.bind0(Native Method)
2017-05-27 05:41:12,135 ERROR [stderr] (main) at sun.nio.ch.Net.bind(Net.java:433)
2017-05-27 05:41:12,135 ERROR [stderr] (main) at sun.nio.ch.Net.bind(Net.java:425)
2017-05-27 05:41:12,135 ERROR [stderr] (main) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
2017-05-27 05:41:12,135 ERROR [stderr] (main) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
2017-05-27 05:41:12,136 ERROR [stderr] (main) at org.xnio.nio.NioXnioWorker.createTcpConnectionServer(NioXnioWorker.java:171)
2017-05-27 05:41:12,136 ERROR [stderr] (main) at org.xnio.XnioWorker.createStreamConnectionServer(XnioWorker.java:245)
2017-05-27 05:41:12,136 ERROR [stderr] (main) at org.wildfly.extension.undertow.HttpListenerService.startListening(HttpListenerService.java:126)
2017-05-27 05:41:12,136 ERROR [stderr] (main) at org.wildfly.extension.undertow.ListenerService.start(ListenerService.java:142)
2017-05-27 05:41:12,136 ERROR [stderr] (main) ... 5 more
使用以下命令:
java -D java.net.preferIPv4Stack=true TestHost.java
或者
在pom.xml配置文件中添加以下内容
<build>
<finalName>par</finalName>
<plugins>
<plugin>
<groupId>org.wildfly.swarm</groupId>
<artifactId>wildfly-swarm-plugin</artifactId>
<configuration>
<mainClass>com.ma.mp.pm.Main</mainClass>
<properties>
<java.net.preferIPv4Stack>true</java.net.preferIPv4Stack> #加上这条
</properties>
</configuration>
开发中关于IPv6的问题的更多相关文章
- 在 Linux 平台及 IPv4 环境中构建 IPv6局域网 测试环境
在 Linux 平台及 IPv4 环境中构建 IPv6 测试环境 1 IPv6简介 IPv6(Internet Protocol Version 6)作为 IPv4 的升级版本,它是作为一共软件升级安 ...
- Python Web开发中的WSGI协议简介
在Python Web开发中,我们一般使用Flask.Django等web框架来开发应用程序,生产环境中将应用部署到Apache.Nginx等web服务器时,还需要uWSGI或者Gunicorn.一个 ...
- TDD在Unity3D游戏项目开发中的实践
0x00 前言 关于TDD测试驱动开发的文章已经有很多了,但是在游戏开发尤其是使用Unity3D开发游戏时,却听不到特别多关于TDD的声音.那么本文就来简单聊一聊TDD如何在U3D项目中使用以及如何使 ...
- React在开发中的常用结构以及功能详解
一.React什么算法,什么虚拟DOM,什么核心内容网上一大堆,请自行google. 但是能把算法说清楚,虚拟DOM说清楚的聊聊无几.对开发又没卵用,还不如来点干货看看咋用. 二.结构如下: impo ...
- Android学习探索之Java 8 在Android 开发中的应用
前言: Java 8推出已经将近2年多了,引入很多革命性变化,加入了函数式编程的特征,使基于行为的编程成为可能,同时减化了各种设计模式的实现方式,是Java有史以来最重要的更新.但是Android上, ...
- Java开发中的23种设计模式详解
[放弃了原文访问者模式的Demo,自己写了一个新使用场景的Demo,加上了自己的理解] [源码地址:https://github.com/leon66666/DesignPattern] 一.设计模式 ...
- 总结iOS开发中的断点续传那些事儿
前言 断点续传概述 断点续传就是从文件赏赐中断的地方重新开始下载或者上传数据,而不是从头文件开始.当下载大文件的时候,如果没有实现断点续传功能,那么每次出现异常或者用户主动的暂停,都会从头下载,这样很 ...
- 【初码干货】使用阿里云对Web开发中的资源文件进行CDN加速的深入研究和实践
提示:阅读本文需提前了解的相关知识 1.阿里云(https://www.aliyun.com) 2.阿里云CDN(https://www.aliyun.com/product/cdn) 3.阿里云OS ...
- C#开发中使用配置文件对象简化配置的本地保存
C#开发中使用配置文件对象简化配置的本地保存 0x00 起因 程序的核心是数据和逻辑,开发过程中免不了要对操作的数据进行设置,而有些数据在程序执行过程中被用户或程序做出的修改是应该保存下来的,这样程序 ...
随机推荐
- JDK内置日志系统
1.Java应用中的日志功能 ================= 一般的Java应用程序中都有记录日志的需求,目前主流的记录日志的方法是在应用程序中引入log4j,用log4j来生成日志.其实,JDK ...
- Linux之定时任务
定时任务Crond介绍 Crond是linux系统中用来定期执行命令/脚本或指定程序任务的一种服务或软件,一般情况下,我们安装完Centos5/6 linux操作系统之后,默认便会启动Crond任务调 ...
- string___assign
#include <iostream> #include <iterator> #include <string> int main() { std::string ...
- PHP实现二维数组排序(按照数组中的某个字段)
亲测可行
- (jquery+ajax)省市区三级联动(封装和不封装两种方式)-----2017-05-14
首先,要实现如下图效果, 1.要理清思路: 先做出三个下拉菜单----根据第一个下拉菜单的value值获取第二个下拉列表的内容,第三个同理. 2.用到的数据库表:Chinastates表 规律:根据国 ...
- Maven学习-构建项目
创建项目 运行如下命令会创建一个简单的Maven项目. mvn archetype:create -DgroupId=com.netease.learn -DartifactId=simple -Dp ...
- React入门---属性(state)-7
state------>虚拟dom------>dom 这个过程是自动的,不需要触发其他事件来调用它. state中文理解:页面状态的的一个值,可以存储很多东西. 学习state的使用: ...
- Android studio 断点技巧
写代码不可避免有Bug,通常情况下除了日志最直接的调试手段就是debug:那么你的调试技术停留在哪一阶段呢?仅仅是下个断点单步执行吗?或者你知道 Evaluate Expression , 知道条件断 ...
- z-Tree-checkbox
引入z-Tree css/js/不要忘记excheck.js //html部分 <div> <input type="text" v-model="b ...
- jQuery插件ImgAreaSelect 实例讲解一(头像上传预览和裁剪功能)
上一节随笔中,我们已经知道了关于jQuery插件ImgAreaSelect基本的知识:那么现在看一下实例: 首先,要知道我们应该实现什么功能? (1)图片能够实现上传预览功能 (2)拖拽裁剪图片,使其 ...