{ "pages":[ "pages/userLogin/login", "pages/userRegist/regist", "pages/list/list", "pages/listFollow/listFollow", "pages/fast/fast", "pages/mine/mine", "pages/searchVideo/searchVideo", "pages/report/report", "pages/videoInfo/videoInfo", "pages/chooseBgm/chooseBgm", "pages/index/index" ], "window":{ "backgroundTextStyle":"light", "navigationBarBackgroundColor": "#fff", "navigationBarTitleText": "小慕短视频", "navigationBarTextStyle":"black" }, "debug": true }
{ "pages":[ "pages/index/index" /*, "pages/logs/logs" */ ], "window":{ "backgroundTextStyle":"light", "navigationBarBackgroundColor": "#fff", "navigationBarTitleText": "WeChat", "navigationBarTextStyle":"black" } }
const app = getApp()
这个app就是我们的全局对象。
Page({ /** * 页面的初始数据 */ data: { } })
这个是一个私有的Page对象,然后数据绑定里面目前是为空。
regist.js
// pages/userRegist/regist.js const app = getApp() Page({ /** * 页面的初始数据 */ data: { } })
regist.wxml页面我们就保留。
<!--pages/userRegist/regist.wxml--> <view> <view class='login-icon'> <image class='login-img' src='../resource/images/dsp.jpg'></image> </view> <view class='login-form'> <form bindsubmit='doRegist'> <!--账号--> <view class='inputView'> <image class='nameImage' src='../resource/images/username.png'></image> <label class='loginLabel'>账号</label> <input name="username" class='inputText' placeholder="请输入账号"></input> </view> <view class='line'></view> <!--密码--> <view class='inputView'> <image class='keyImage' src="../resource/images/password.png"></image> <label class='loginLabel'>密码</label> <input name="password" class='inputText' password='true' placeholder='请输入密码'/> </view> </form> </view> </view>
regist.wxss
/* pages/userRegist/regist.wxss */ page{ background-color: whitesmoke; } .login-img{ width: 750px; } /*表单内容*/ .inputView { background-color: white; line-height: 45px; } /*输入框*/ .nameImage, .keyImage { margin-left: 22px; width: 20px; height: 20px; } .loginLabel { margin: 15px 15px 15px 10px; color: gray; font-size: 15px; } .inputText { float: right; text-align: right; margin-right: 22px; margin-top: 11px; font-size: 15px; } .line { width: 100%; height : 1px; background-color: gainsboro; margin-top: 1px; } /*按钮*/ .loginBtn { width: 80%; margin-top: 35px; } .goLoginBtn { width: 80%; margin-top: 15px; }
{ "pages":[ "pages/userRegist/regist", "pages/userLogin/login", "pages/list/list", "pages/listFollow/listFollow", "pages/fast/fast", "pages/mine/mine", "pages/searchVideo/searchVideo", "pages/report/report", "pages/videoInfo/videoInfo", "pages/chooseBgm/chooseBgm", "pages/index/index" ], "window":{ "backgroundTextStyle":"light", "navigationBarBackgroundColor": "#fff", "navigationBarTitleText": "小慕短视频", "navigationBarTextStyle":"black" }, "debug": true }
补充完整regist.wxml
<!--pages/userRegist/regist.wxml--> <view> <view class='login-icon'> <image class='login-img' src='../resource/images/dsp.jpg'></image> </view> <view class='login-form'> <form bindsubmit='doRegist'> <!--账号--> <view class='inputView'> <image class='nameImage' src='../resource/images/username.png'></image> <label class='loginLabel'>账号</label> <input name="username" class='inputText' placeholder="请输入账号"></input> </view> <view class='line'></view> <!--密码--> <view class='inputView'> <image class='keyImage' src="../resource/images/password.png"></image> <label class='loginLabel'>密码</label> <input name="password" class='inputText' password='true' placeholder='请输入密码'/> </view> <!--按钮--> <view> <button class='loginBtn' type='primary' form-type='submit'>注册</button> </view> <view> <button class='goLoginBtn' type='warn' bindtap='goLoginPage'>返回登录</button> </view> </form> </view> </view>
同时修改一下app.json
{ "pages":[ "pages/userRegist/regist", "pages/userLogin/login", "pages/list/list", "pages/listFollow/listFollow", "pages/fast/fast", "pages/mine/mine", "pages/searchVideo/searchVideo", "pages/report/report", "pages/videoInfo/videoInfo", "pages/chooseBgm/chooseBgm", "pages/index/index" ], "window":{ "backgroundTextStyle":"light", "navigationBarBackgroundColor": "#fff", "navigationBarTitleText": "小慕短视频", "navigationBarTextStyle":"black" }, "debug": true }
这个video里面有很多的是它的额外的子工程,就是一个模块。把其他的一些子工程整合成了一个大的工程,那么这个就是一个聚合工程。
那么这些聚合工程彼此依赖在一起是什么样的关系呢?imooc/imooc-root/imooc-parent这三种都是代表它是一个聚合工程,然后我们通过一个model(模块)对它去一个一个添加子工程或者说是子模块。common包括枚举类、工具类等等,全部都可以放到我们的common工程里面去。放进去之后,这样的好处就是可以让其他的所有的工程全部都进行一个依赖,依赖完了之后就可以去调用,甚至common可以跨工程、跨项目去引用。pojo是所有的工程脱离出来的一层。dao层、service层、controller层我们都要去引用我们的pojo,所以我们会把pojo放在比较优先级靠上的。mapper(dao)层是我们的数据层。数据层要去和我们的数据库交互的时候,我们主要要使用到bean,就是我们的pojo类。我们需要让dao层和我们的pojo层进行一个依赖的关系。接下来我们就会有一个service层。service层就需要去引用到我们的dao层,同时我们的mapper层已经引用到了pojo层,那么我们可以在service层同时去调用我们的dao层和pojo类。里面所有的只要是有依赖关系,那么service层它之上的所有的工程我全部都可以在service里面去进行一个引入。最后一层是对外开放的一层,我们在这里定义为api层。api就是接口类,接口层。我们把接口层对外开放并且可以支持让我们的页面通过ajax去调用或者说让我们的手机端去调用,让我们手机端上的小程序去调用。这一层我们可以把它定义为api层。同样我们也可以有一些web层。比如说我们都是一些页面的跳转,跳转的形式并没有使用ajax,那么这样的web层也可以去依赖我们的service。不仅仅是api和web,可能还会有其他很多的层,比如说pojo网上的门户层,admin管理层。其实我们都可以去一层一层通过扩展一个额外的web层面去调用service,这样子就可以减少很多的代码,这样子会非常非常方便。这样的一个聚合工程就是我们下一节所要说的。
# Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost 0.0.0.0 account.jetbrains.com
<plugin type="tk.mybatis.mapper.generator.MapperPlugin"> <property name="mappers" value="com.imooc.utils.MyMapper"/> </plugin>
package com.imooc.utils; import tk.mybatis.mapper.common.Mapper; import tk.mybatis.mapper.common.MySqlMapper; public interface MyMapper<T> extends Mapper<T>, MySqlMapper<T> { //TODO //FIXME 特别注意,该接口不能被扫描到,否则会出错 }
<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost:3306/imooc-video-dev" userId="root" password="root"> </jdbcConnection>
<!-- 对应生成的pojo所在包 --> <javaModelGenerator targetPackage="com.imooc.pojo" targetProject="src/main/java"/> <!-- 对应生成的mapper所在目录 --> <sqlMapGenerator targetPackage="mapper" targetProject="src/main/resources"/> <!-- 配置mapper对应的java映射 --> <javaClientGenerator targetPackage="com.imooc.mapper" targetProject="src/main/java" type="XMLMAPPER"/>
<table tableName="bgm"></table> <table tableName="comments"></table> <table tableName="search_records"></table> <table tableName="users"></table> <table tableName="users_fans"></table> <table tableName="users_like_videos"></table> <table tableName="users_report"></table> <table tableName="videos"></table>
运行GeneratorDisplay
怪不得不行,原来项目还没有setup sdk。换Eclipse算了。
把imooc-videos-dev-mapper/src/main/java/com.imooc.mapper拷贝到imooc-videos-dev/imooc-videos-dev-mapper/src/main/java/com/imooc/mapper,imooc-videos-dev-pojo/src/main/java/com.imooc.pojo拷贝到imooc-videos-dev/imooc-videos-dev-pojo/src/main/java/com/imooc/pojo。
重新设计一次数据库表,上次设计的不全。
因为我们所有的Controller和手机端的小程序交互都是以一个JSON形式的转换。既然是一个JSON,我们在所有的Controller的上方用的注释叫@RestController而不是@Controller。
@RequestMapping("/regist"),POST和GET请求都可以。
package com.imooc.controller;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.imooc.pojo.Users;
import com.imooc.utils.IMoocJSONResult;
@RestController
public class RegistLoginController extends BasicController {
@PostMapping("/regist") public IMoocJSONResult regist(@RequestBody Users user) throws Exception { // 1. 判断用户名和密码必须不为空 if (StringUtils.isBlank(user.getUsername()) || StringUtils.isBlank(user.getPassword())) { return IMoocJSONResult.errorMsg("用户名和密码不能为空"); }
// 2. 判断用户名是否存在
// 3. 保存用户,注册信息
return IMoocJSONResult.ok();
}
}
Users是我们刚刚通过逆向工程所生成的一个用户对象类。前端小程序是可以直接把里面的相关的信息给传过来的。Users前面需要加一个@RequestBody,因为它是一个JSON对象。
@PostMapping("/regist") public IMoocJSONResult regist(@RequestBody Users user) throws Exception { return IMoocJSONResult.ok(); }
最简单的RegistLoginController写完了。
2. 判断用户名是否存在和3. 保存用户,注册信息这两块都是需要我们去调用数据层Service,所以新建一个UserService
package com.imooc.service; import com.imooc.pojo.Users; public interface UserService { /** * @Description: 判断用户名是否存在 */ public boolean queryUsernameIsExist(String username); /** * @Description: 保存用户(用户注册) */ public void saveUser(Users user); }
我们之前已经逆向生成了UserMapper,我们可以把UserMapper注入到我们当前的这个类UserServiceImpl里面来。
很多人都会使用自增的id,我们这里使用全局唯一的id。拷贝以前做过的SpringBoot项目的三个idworker插件的包到imooc-videos-dev-common下。
queryUsernameIsExist是一个查询操作,saveUser是一个保存操作。那么它们对于我们的一个事务来讲肯定也是需要的吧,那么我们可以采取一个声明式事务。
@Transactional(propagation = Propagation.SUPPORTS
对于我们的查询我们只需要使用SUPPORTS这样子的一个级别就可以了。
@Transactional(propagation = Propagation.REQUIRED)
对于新增、修改、删除我们可以使用REQUIRED。
UserServiceImpl写完了
package com.imooc.service.impl; import org.apache.commons.lang3.StringUtils; import org.n3r.idworker.Sid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.imooc.mapper.UsersMapper; import com.imooc.pojo.Users; import com.imooc.service.UserService; public class UserServiceImpl implements UserService { @Autowired private UsersMapper userMapper; @Autowired private Sid sid; @Transactional(propagation = Propagation.SUPPORTS) @Override public boolean queryUsernameIsExist(String username) { Users user = new Users(); user.setUsername(username); Users result = userMapper.selectOne(user); return result == null ? false : true; } @Transactional(propagation = Propagation.REQUIRED) @Override public void saveUser(Users user) { String userId = sid.nextShort(); user.setId(userId); userMapper.insert(user); } }
接下来RegistLoginController.java注入和调用/imooc-videos-dev-service/src/main/java/com/imooc/service/UserService.java
package com.imooc.controller; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import com.imooc.pojo.Users; import com.imooc.service.UserService; import com.imooc.utils.IMoocJSONResult; import com.imooc.utils.MD5Utils; @RestController public class RegistLoginController extends BasicController { @Autowired private UserService userService; @PostMapping("/regist") public IMoocJSONResult regist(@RequestBody Users user) throws Exception { // 1. 判断用户名和密码必须不为空 if (StringUtils.isBlank(user.getUsername()) || StringUtils.isBlank(user.getPassword())) { return IMoocJSONResult.errorMsg("用户名和密码不能为空"); } // 2. 判断用户名是否存在 boolean usernameIsExist = userService.queryUsernameIsExist(user.getUsername()); // 3. 保存用户,注册信息 if (!usernameIsExist) { user.setNickname(user.getUsername()); user.setPassword(MD5Utils.getMD5Str(user.getPassword())); user.setFansCounts(0); user.setReceiveLikeCounts(0); user.setFollowCounts(0); userService.saveUser(user); } else { return IMoocJSONResult.errorMsg("用户名已经存在,请换一个再试"); }
return IMoocJSONResult.ok(); } }
现在Service层和Controller层全部都编码完毕了。
我们现在已经开发完毕了一个用户注册的接口,但是我们并没有测试。swagger2它是可以构建一个非常强大的在线的restful API的文档。它也可以更加快速地进行开发,也可以更加便捷地部署。已经有很多公司在使用swagger2来进行敏捷开发。swagger2是一个非常好用的工具和插件。
它其实可以部署在内网,我们可以针对我们开放出来的文档做一些信息。如果我不是后端开发人员,我是一个前端的或者ios或者android开发者,我只要通过打开这样的一个网址就可以去看到后端人员所提供给我们的API接口。
要使用swagger2,必须要在/imooc-videos-dev-common/pom.xml文件里面引入这两个依赖。
<!-- swagger2 配置 --> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.4.0</version> </dependency> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId> <version>2.4.0</version> </dependency>
然后我们需要对我们的swagger2进行一个配置。我们先找到/imooc-videos-dev-mini-api/src/main/java/com/imooc/Application.java的同级目录,创建一个类Swagger2.java。
@Bean 在这里配置了一个Bean,这个Bean是为了可以让我们的Swagger2.java去扫描到我们的Controller,因为我们的一些文档是写在我们的Controller的上面的。我们是以一个注解的形式去写,写了之后我们的一些不同的团队的开发人员才可以去看到,所以在这里我们来配置一个basePackage叫com.imooc.controller,也就是我们所有controller所在的这一个包。
return new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo()).select() .apis(RequestHandlerSelectors.basePackage("com.imooc.controller"))
这个时候我们的Swagger2这样的配置就已经好了,我们并且在SpringBoot里面也已经是启用了。那么启用完了之后我们需要去对我们的接口进行一些编写。
package com.imooc.controller; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import com.imooc.pojo.Users; import com.imooc.service.UserService; import com.imooc.utils.IMoocJSONResult; import com.imooc.utils.MD5Utils; @RestController @Api(value="用户注册登录的接口", tags= {"注册和登录的controller"}) public class RegistLoginController extends BasicController { @Autowired private UserService userService; @ApiOperation(value="用户注册", notes="用户注册的接口") @PostMapping("/regist") public IMoocJSONResult regist(@RequestBody Users user) throws Exception { // 1. 判断用户名和密码必须不为空 if (StringUtils.isBlank(user.getUsername()) || StringUtils.isBlank(user.getPassword())) { return IMoocJSONResult.errorMsg("用户名和密码不能为空"); } // 2. 判断用户名是否存在 boolean usernameIsExist = userService.queryUsernameIsExist(user.getUsername()); // 3. 保存用户,注册信息 if (!usernameIsExist) { user.setNickname(user.getUsername()); user.setPassword(MD5Utils.getMD5Str(user.getPassword())); user.setFansCounts(0); user.setReceiveLikeCounts(0); user.setFollowCounts(0); userService.saveUser(user); } else { return IMoocJSONResult.errorMsg("用户名已经存在,请换一个再试"); }
return IMoocJSONResult.ok(); } }
但是对于我们的一些用户参数我们并没有做一些限制,因为我们用户的参数是:user.getUsername()和user.getPassword(),所以对于我们的这两个字段/参数我们也是需要去做一些设置。
Users是一个实体,所以定义它为@ApiModel(value="用户对象",description="这是用户对象")
/** * 用户名 */ private String username; /** * 密码 */ private String password;
这两个参数才是我们真正从前端传入过来的,所以我们还是要对它们加一个注解。name就是对应它的一个字段名,example是一个示例,相当于是一个占位符,它是一个必填项,我们可以加一个required=true。
还有一个地方是一个细节性的问题,就是说Users对象的参数,例如id、faceImage、nickname对于我们的一个前端用户来讲他并不需要去传入,也不需要去显示,所以我们可以给这些属性加上@ApiModelProperty(hidden=true)。nickname不加hidden,可以做一个区别演示。
package com.imooc.pojo; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import javax.persistence.*; @ApiModel(value="用户对象",description="这是用户对象") public class Users { @ApiModelProperty(hidden=true) @Id private String id; /** * 用户名 */ @ApiModelProperty(value="用户名", name="username", example="imoocuser", required=true) private String username; /** * 密码 */ @ApiModelProperty(value="密码", name="password", example="123456", required=true) private String password; /** * 我的头像,如果没有默认给一张 */ @ApiModelProperty(hidden=true) @Column(name = "face_image") private String faceImage; /** * 昵称 */ private String nickname; /** * 我的粉丝数量 */ @ApiModelProperty(hidden=true) @Column(name = "fans_counts") private Integer fansCounts; /** * 我关注的人总数 */ @ApiModelProperty(hidden=true) @Column(name = "follow_counts") private Integer followCounts; /** * 我接受到的赞美/收藏 的数量 */ @ApiModelProperty(hidden=true) @Column(name = "receive_like_counts") private Integer receiveLikeCounts; /** * @return id */ public String getId() { return id; } /** * @param id */ public void setId(String id) { this.id = id; } /** * 获取用户名 * * @return username - 用户名 */ public String getUsername() { return username; } /** * 设置用户名 * * @param username 用户名 */ public void setUsername(String username) { this.username = username; } /** * 获取密码 * * @return password - 密码 */ public String getPassword() { return password; } /** * 设置密码 * * @param password 密码 */ public void setPassword(String password) { this.password = password; } /** * 获取我的头像,如果没有默认给一张 * * @return face_image - 我的头像,如果没有默认给一张 */ public String getFaceImage() { return faceImage; } /** * 设置我的头像,如果没有默认给一张 * * @param faceImage 我的头像,如果没有默认给一张 */ public void setFaceImage(String faceImage) { this.faceImage = faceImage; } /** * 获取昵称 * * @return nickname - 昵称 */ public String getNickname() { return nickname; } /** * 设置昵称 * * @param nickname 昵称 */ public void setNickname(String nickname) { this.nickname = nickname; } /** * 获取我的粉丝数量 * * @return fans_counts - 我的粉丝数量 */ public Integer getFansCounts() { return fansCounts; } /** * 设置我的粉丝数量 * * @param fansCounts 我的粉丝数量 */ public void setFansCounts(Integer fansCounts) { this.fansCounts = fansCounts; } /** * 获取我关注的人总数 * * @return follow_counts - 我关注的人总数 */ public Integer getFollowCounts() { return followCounts; } /** * 设置我关注的人总数 * * @param followCounts 我关注的人总数 */ public void setFollowCounts(Integer followCounts) { this.followCounts = followCounts; } /** * 获取我接受到的赞美/收藏 的数量 * * @return receive_like_counts - 我接受到的赞美/收藏 的数量 */ public Integer getReceiveLikeCounts() { return receiveLikeCounts; } /** * 设置我接受到的赞美/收藏 的数量 * * @param receiveLikeCounts 我接受到的赞美/收藏 的数量 */ public void setReceiveLikeCounts(Integer receiveLikeCounts) { this.receiveLikeCounts = receiveLikeCounts; } }
package com.imooc.service.impl; import org.apache.commons.lang3.StringUtils; import org.n3r.idworker.Sid; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; import com.imooc.mapper.UsersMapper; import com.imooc.pojo.Users; import com.imooc.service.UserService; @Service public class UserServiceImpl implements UserService { @Autowired private UsersMapper userMapper; @Autowired private Sid sid; @Transactional(propagation = Propagation.SUPPORTS) @Override public boolean queryUsernameIsExist(String username) { Users user = new Users(); user.setUsername(username); Users result = userMapper.selectOne(user); return result == null ? false : true; } @Transactional(propagation = Propagation.REQUIRED) @Override public void saveUser(Users user) { String userId = sid.nextShort(); user.setId(userId); userMapper.insert(user); } }
和刚才的情况是不一样的,刚才是UserServiceImpl没有加注解,SpringBoot扫描的时候扫描不到。现在是UsersMapper没有被配置,所以需要找到/imooc-videos-dev-mini-api/src/main/java/com/imooc/Application.java,在这里对所有的Mapper进行扫描。
@MapperScan(basePackages="com.imooc.mapper") basePackages是设置我们要扫描mybatis的一些路径。
因为我们是额外引入了一个id,idworker是用来生成id的,所以复制包org.n3r.idworker把它作为我们的一个component去扫描。
@ComponentScan(basePackages= {"com.imooc", "org.n3r.idworker"})
package com.imooc; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ComponentScan; import tk.mybatis.spring.annotation.MapperScan; @SpringBootApplication @MapperScan(basePackages="com.imooc.mapper") @ComponentScan(basePackages= {"com.imooc", "org.n3r.idworker"}) public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); } }
启动项目,第一步还是imooc-videos-dev右键Run As->Maven install,
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] 微信小程序-短视频实战 [INFO] imooc-videos-dev-common [INFO] imooc-videos-dev-pojo [INFO] imooc-videos-dev-mapper [INFO] imooc-videos-dev-service [INFO] imooc-videos-dev-mini-api [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building 微信小程序-短视频实战 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版pom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev .0.1-SNAPSHOTimooc-videos-dev-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-common 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2 [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-common --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ imooc-videos-dev-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ imooc-videos-dev-common --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ imooc-videos-dev-common --- Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.18.1/maven-surefire-common-2.18.1.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.18.1/maven-surefire-common-2.18.1.pom (7 KB at 5.6 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-annotations/3.3/maven-plugin-annotations-3.3.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-annotations/3.3/maven-plugin-annotations-3.3.pom (2 KB at 4.6 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-tools/3.3/maven-plugin-tools-3.3.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-tools/3.3/maven-plugin-tools-3.3.pom (13 KB at 34.5 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/2.18.1/surefire-api-2.18.1.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/2.18.1/surefire-api-2.18.1.pom (3 KB at 6.6 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.18.1/surefire-booter-2.18.1.pom Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.18.1/surefire-booter-2.18.1.pom (3 KB at 8.3 KB/sec) Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.18.1/maven-surefire-common-2.18.1.jar Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.18.1/surefire-booter-2.18.1.jar Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/2.18.1/surefire-api-2.18.1.jar Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-annotations/3.3/maven-plugin-annotations-3.3.jar Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-annotations/3.3/maven-plugin-annotations-3.3.jar (14 KB at 26.6 KB/sec) Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-booter/2.18.1/surefire-booter-2.18.1.jar (39 KB at 66.5 KB/sec) Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-api/2.18.1/surefire-api-2.18.1.jar (145 KB at 159.0 KB/sec) Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/maven-surefire-common/2.18.1/maven-surefire-common-2.18.1.jar (269 KB at 221.1 KB/sec) [INFO] [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ imooc-videos-dev-common --- [INFO] Building jar: H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-common argetimooc-videos-dev-common-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev-common --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-common argetimooc-videos-dev-common-0.0.1-SNAPSHOT.jar to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-common .0.1-SNAPSHOTimooc-videos-dev-common-0.0.1-SNAPSHOT.jar [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-commonpom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-common .0.1-SNAPSHOTimooc-videos-dev-common-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-pojo 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-pojo --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-pojo --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 12 source files to H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-pojo argetclasses [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] 微信小程序-短视频实战 ....................................... SUCCESS [0.494s] [INFO] imooc-videos-dev-common ........................... SUCCESS [10.917s] [INFO] imooc-videos-dev-pojo ............................. FAILURE [0.374s] [INFO] imooc-videos-dev-mapper ........................... SKIPPED [INFO] imooc-videos-dev-service .......................... SKIPPED [INFO] imooc-videos-dev-mini-api ......................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12.877s [INFO] Finished at: Wed Oct 24 02:12:57 CST 2018 [INFO] Final Memory: 27M/350M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project imooc-videos-dev-pojo: Fatal error compiling: 无效的目标发行版: 1.8 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :imooc-videos-dev-pojo
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] 微信小程序-短视频实战 [INFO] imooc-videos-dev-common [INFO] imooc-videos-dev-pojo [INFO] imooc-videos-dev-mapper [INFO] imooc-videos-dev-service [INFO] imooc-videos-dev-mini-api [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building 微信小程序-短视频实战 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版pom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev .0.1-SNAPSHOTimooc-videos-dev-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-common 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2 [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-common --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ imooc-videos-dev-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ imooc-videos-dev-common --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ imooc-videos-dev-common --- [INFO] [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ imooc-videos-dev-common --- [INFO] Building jar: H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-common argetimooc-videos-dev-common-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev-common --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-common argetimooc-videos-dev-common-0.0.1-SNAPSHOT.jar to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-common .0.1-SNAPSHOTimooc-videos-dev-common-0.0.1-SNAPSHOT.jar [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-commonpom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-common .0.1-SNAPSHOTimooc-videos-dev-common-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-pojo 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-pojo --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-pojo --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ imooc-videos-dev-pojo --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ imooc-videos-dev-pojo --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ imooc-videos-dev-pojo --- [INFO] [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ imooc-videos-dev-pojo --- [INFO] Building jar: H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-pojo argetimooc-videos-dev-pojo-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev-pojo --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-pojo argetimooc-videos-dev-pojo-0.0.1-SNAPSHOT.jar to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-pojo .0.1-SNAPSHOTimooc-videos-dev-pojo-0.0.1-SNAPSHOT.jar [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-pojopom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-pojo .0.1-SNAPSHOTimooc-videos-dev-pojo-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-mapper 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-mapper --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-mapper --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 8 source files to H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mapper argetclasses [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] 微信小程序-短视频实战 ....................................... SUCCESS [0.469s] [INFO] imooc-videos-dev-common ........................... SUCCESS [4.510s] [INFO] imooc-videos-dev-pojo ............................. SUCCESS [0.379s] [INFO] imooc-videos-dev-mapper ........................... FAILURE [0.260s] [INFO] imooc-videos-dev-service .......................... SKIPPED [INFO] imooc-videos-dev-mini-api ......................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.596s [INFO] Finished at: Wed Oct 24 02:47:56 CST 2018 [INFO] Final Memory: 27M/350M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project imooc-videos-dev-mapper: Fatal error compiling: 无效的目标发行版: 1.8 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :imooc-videos-dev-mapper
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] 微信小程序-短视频实战 [INFO] imooc-videos-dev-common [INFO] imooc-videos-dev-pojo [INFO] imooc-videos-dev-mapper [INFO] imooc-videos-dev-service [INFO] imooc-videos-dev-mini-api [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building 微信小程序-短视频实战 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版pom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev .0.1-SNAPSHOTimooc-videos-dev-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-common 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2 [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-common --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ imooc-videos-dev-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ imooc-videos-dev-common --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ imooc-videos-dev-common --- [INFO] [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ imooc-videos-dev-common --- [INFO] Building jar: H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-common argetimooc-videos-dev-common-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev-common --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-common argetimooc-videos-dev-common-0.0.1-SNAPSHOT.jar to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-common .0.1-SNAPSHOTimooc-videos-dev-common-0.0.1-SNAPSHOT.jar [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-commonpom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-common .0.1-SNAPSHOTimooc-videos-dev-common-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-pojo 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-pojo --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-pojo --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ imooc-videos-dev-pojo --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ imooc-videos-dev-pojo --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ imooc-videos-dev-pojo --- [INFO] [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ imooc-videos-dev-pojo --- [INFO] Building jar: H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-pojo argetimooc-videos-dev-pojo-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev-pojo --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-pojo argetimooc-videos-dev-pojo-0.0.1-SNAPSHOT.jar to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-pojo .0.1-SNAPSHOTimooc-videos-dev-pojo-0.0.1-SNAPSHOT.jar [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-pojopom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-pojo .0.1-SNAPSHOTimooc-videos-dev-pojo-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-mapper 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-mapper --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-mapper --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ imooc-videos-dev-mapper --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ imooc-videos-dev-mapper --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ imooc-videos-dev-mapper --- [INFO] [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ imooc-videos-dev-mapper --- [INFO] Building jar: H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mapper argetimooc-videos-dev-mapper-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev-mapper --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mapper argetimooc-videos-dev-mapper-0.0.1-SNAPSHOT.jar to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-mapper .0.1-SNAPSHOTimooc-videos-dev-mapper-0.0.1-SNAPSHOT.jar [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mapperpom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-mapper .0.1-SNAPSHOTimooc-videos-dev-mapper-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-service 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-service --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-service --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 7 source files to H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-service argetclasses [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] 微信小程序-短视频实战 ....................................... SUCCESS [0.452s] [INFO] imooc-videos-dev-common ........................... SUCCESS [3.423s] [INFO] imooc-videos-dev-pojo ............................. SUCCESS [0.401s] [INFO] imooc-videos-dev-mapper ........................... SUCCESS [0.796s] [INFO] imooc-videos-dev-service .......................... FAILURE [0.247s] [INFO] imooc-videos-dev-mini-api ......................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.307s [INFO] Finished at: Wed Oct 24 02:50:12 CST 2018 [INFO] Final Memory: 28M/220M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project imooc-videos-dev-service: Fatal error compiling: 无效的目标发行版: 1.8 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :imooc-videos-dev-service
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] 微信小程序-短视频实战 [INFO] imooc-videos-dev-common [INFO] imooc-videos-dev-pojo [INFO] imooc-videos-dev-mapper [INFO] imooc-videos-dev-service [INFO] imooc-videos-dev-mini-api [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building 微信小程序-短视频实战 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版pom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev .0.1-SNAPSHOTimooc-videos-dev-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-common 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2 [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-common --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ imooc-videos-dev-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ imooc-videos-dev-common --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ imooc-videos-dev-common --- [INFO] [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ imooc-videos-dev-common --- [INFO] Building jar: H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-common argetimooc-videos-dev-common-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev-common --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-common argetimooc-videos-dev-common-0.0.1-SNAPSHOT.jar to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-common .0.1-SNAPSHOTimooc-videos-dev-common-0.0.1-SNAPSHOT.jar [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-commonpom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-common .0.1-SNAPSHOTimooc-videos-dev-common-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-pojo 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-pojo --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-pojo --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ imooc-videos-dev-pojo --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ imooc-videos-dev-pojo --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ imooc-videos-dev-pojo --- [INFO] [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ imooc-videos-dev-pojo --- [INFO] Building jar: H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-pojo argetimooc-videos-dev-pojo-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev-pojo --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-pojo argetimooc-videos-dev-pojo-0.0.1-SNAPSHOT.jar to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-pojo .0.1-SNAPSHOTimooc-videos-dev-pojo-0.0.1-SNAPSHOT.jar [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-pojopom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-pojo .0.1-SNAPSHOTimooc-videos-dev-pojo-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-mapper 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-mapper --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-mapper --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ imooc-videos-dev-mapper --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ imooc-videos-dev-mapper --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ imooc-videos-dev-mapper --- [INFO] [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ imooc-videos-dev-mapper --- [INFO] Building jar: H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mapper argetimooc-videos-dev-mapper-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev-mapper --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mapper argetimooc-videos-dev-mapper-0.0.1-SNAPSHOT.jar to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-mapper .0.1-SNAPSHOTimooc-videos-dev-mapper-0.0.1-SNAPSHOT.jar [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mapperpom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-mapper .0.1-SNAPSHOTimooc-videos-dev-mapper-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-service 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-service --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-service --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ imooc-videos-dev-service --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ imooc-videos-dev-service --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ imooc-videos-dev-service --- [INFO] [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ imooc-videos-dev-service --- [INFO] Building jar: H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-service argetimooc-videos-dev-service-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev-service --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-service argetimooc-videos-dev-service-0.0.1-SNAPSHOT.jar to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-service .0.1-SNAPSHOTimooc-videos-dev-service-0.0.1-SNAPSHOT.jar [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-servicepom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-service .0.1-SNAPSHOTimooc-videos-dev-service-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-mini-api 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-mini-api --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 11 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-mini-api --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 16 source files to H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mini-api argetclasses [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] 微信小程序-短视频实战 ....................................... SUCCESS [0.459s] [INFO] imooc-videos-dev-common ........................... SUCCESS [3.488s] [INFO] imooc-videos-dev-pojo ............................. SUCCESS [0.407s] [INFO] imooc-videos-dev-mapper ........................... SUCCESS [0.295s] [INFO] imooc-videos-dev-service .......................... SUCCESS [1.035s] [INFO] imooc-videos-dev-mini-api ......................... FAILURE [0.306s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.956s [INFO] Finished at: Wed Oct 24 02:51:08 CST 2018 [INFO] Final Memory: 29M/349M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project imooc-videos-dev-mini-api: Fatal error compiling: 无效的目标发行版: 1.8 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :imooc-videos-dev-mini-api
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] 微信小程序-短视频实战 [INFO] imooc-videos-dev-common [INFO] imooc-videos-dev-pojo [INFO] imooc-videos-dev-mapper [INFO] imooc-videos-dev-service [INFO] imooc-videos-dev-mini-api [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building 微信小程序-短视频实战 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版pom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev .0.1-SNAPSHOTimooc-videos-dev-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-common 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2 [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-common --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ imooc-videos-dev-common --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ imooc-videos-dev-common --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ imooc-videos-dev-common --- [INFO] [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ imooc-videos-dev-common --- [INFO] Building jar: H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-common argetimooc-videos-dev-common-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev-common --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-common argetimooc-videos-dev-common-0.0.1-SNAPSHOT.jar to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-common .0.1-SNAPSHOTimooc-videos-dev-common-0.0.1-SNAPSHOT.jar [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-commonpom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-common .0.1-SNAPSHOTimooc-videos-dev-common-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-pojo 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-pojo --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-pojo --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ imooc-videos-dev-pojo --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ imooc-videos-dev-pojo --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ imooc-videos-dev-pojo --- [INFO] [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ imooc-videos-dev-pojo --- [INFO] Building jar: H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-pojo argetimooc-videos-dev-pojo-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev-pojo --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-pojo argetimooc-videos-dev-pojo-0.0.1-SNAPSHOT.jar to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-pojo .0.1-SNAPSHOTimooc-videos-dev-pojo-0.0.1-SNAPSHOT.jar [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-pojopom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-pojo .0.1-SNAPSHOTimooc-videos-dev-pojo-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-mapper 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-mapper --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-mapper --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ imooc-videos-dev-mapper --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ imooc-videos-dev-mapper --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ imooc-videos-dev-mapper --- [INFO] [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ imooc-videos-dev-mapper --- [INFO] Building jar: H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mapper argetimooc-videos-dev-mapper-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev-mapper --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mapper argetimooc-videos-dev-mapper-0.0.1-SNAPSHOT.jar to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-mapper .0.1-SNAPSHOTimooc-videos-dev-mapper-0.0.1-SNAPSHOT.jar [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mapperpom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-mapper .0.1-SNAPSHOTimooc-videos-dev-mapper-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-service 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-service --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-service --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ imooc-videos-dev-service --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ imooc-videos-dev-service --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ imooc-videos-dev-service --- [INFO] [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ imooc-videos-dev-service --- [INFO] Building jar: H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-service argetimooc-videos-dev-service-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev-service --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-service argetimooc-videos-dev-service-0.0.1-SNAPSHOT.jar to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-service .0.1-SNAPSHOTimooc-videos-dev-service-0.0.1-SNAPSHOT.jar [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-servicepom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-service .0.1-SNAPSHOTimooc-videos-dev-service-0.0.1-SNAPSHOT.pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building imooc-videos-dev-mini-api 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imooc-videos-dev-mini-api --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 11 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ imooc-videos-dev-mini-api --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ imooc-videos-dev-mini-api --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ imooc-videos-dev-mini-api --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ imooc-videos-dev-mini-api --- [INFO] [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ imooc-videos-dev-mini-api --- [INFO] Building jar: H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mini-api argetimooc-videos-dev-mini-api-0.0.1-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ imooc-videos-dev-mini-api --- [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mini-api argetimooc-videos-dev-mini-api-0.0.1-SNAPSHOT.jar to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-mini-api .0.1-SNAPSHOTimooc-videos-dev-mini-api-0.0.1-SNAPSHOT.jar [INFO] Installing H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mini-apipom.xml to C:UsersHONGZHENHUA.m2 epositorycomimoocimooc-videos-dev-mini-api .0.1-SNAPSHOTimooc-videos-dev-mini-api-0.0.1-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] 微信小程序-短视频实战 ....................................... SUCCESS [0.458s] [INFO] imooc-videos-dev-common ........................... SUCCESS [3.393s] [INFO] imooc-videos-dev-pojo ............................. SUCCESS [0.459s] [INFO] imooc-videos-dev-mapper ........................... SUCCESS [0.319s] [INFO] imooc-videos-dev-service .......................... SUCCESS [0.348s] [INFO] imooc-videos-dev-mini-api ......................... SUCCESS [0.434s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.475s [INFO] Finished at: Wed Oct 24 02:52:04 CST 2018 [INFO] Final Memory: 29M/348M [INFO] ------------------------------------------------------------------------
运行Applicaton.java,看看整个工程有没有什么问题,有没有报错。解决了/mybatis-generatorConfig/src/main/resources/mapper/CommentsMapper.xml和/imooc-videos-dev-mini-api/src/main/resources/mapper/CommentsMapper.xml有重复代码的问题,重新运行Application.java还是报错了
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.imooc.mapper.CommentsMapper"> <!-- <resultMap id="BaseResultMap" type="com.imooc.pojo.Comments"> --> <!-- WARNING - @mbg.generated --> <!-- <id column="id" jdbcType="VARCHAR" property="id" /> <result column="father_comment_id" jdbcType="VARCHAR" property="fatherCommentId" /> <result column="to_user_id" jdbcType="VARCHAR" property="toUserId" /> <result column="video_id" jdbcType="VARCHAR" property="videoId" /> <result column="from_user_id" jdbcType="VARCHAR" property="fromUserId" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="comment" jdbcType="LONGVARCHAR" property="comment" /> </resultMap> --> <resultMap id="BaseResultMap" type="com.imooc.pojo.Comments"> <!-- WARNING - @mbg.generated --> <id column="id" jdbcType="VARCHAR" property="id" /> <result column="father_comment_id" jdbcType="VARCHAR" property="fatherCommentId" /> <result column="to_user_id" jdbcType="VARCHAR" property="toUserId" /> <result column="video_id" jdbcType="VARCHAR" property="videoId" /> <result column="from_user_id" jdbcType="VARCHAR" property="fromUserId" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="comment" jdbcType="LONGVARCHAR" property="comment" /> </resultMap> </mapper>
提示UserService有两个实现类UserServiceImpl和UserServiceImpl_final
. ____ _ __ _ _ /\ / ___'_ __ _ _(_)_ __ __ _ ( ( )\___ | '_ | '_| | '_ / _` | \/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v1.5.12.RELEASE) 2018-10-24 07:25:12,849 [main] [org.springframework.boot.StartupInfoLogger.logStarting(StartupInfoLogger.java:48)] - [INFO] Starting Application on DESKTOP-S07DGSI with PID 16468 (started by ZHONGZHENHUA in H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mini-api) 2018-10-24 07:25:12,855 [main] [org.springframework.boot.SpringApplication.logStartupProfileInfo(SpringApplication.java:593)] - [INFO] No active profile set, falling back to default profiles: default 2018-10-24 07:25:13,568 [main] [org.springframework.context.support.AbstractApplicationContext.prepareRefresh(AbstractApplicationContext.java:583)] - [INFO] Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2f490758: startup date [Wed Oct 24 07:25:13 CST 2018]; root of context hierarchy 2018-10-24 07:25:13,779 [background-preinit] [org.hibernate.validator.internal.util.Version.<clinit>(Version.java:30)] - [INFO] HV000001: Hibernate Validator 5.3.6.Final 2018-10-24 07:25:15,991 [main] [org.springframework.data.repository.config.RepositoryConfigurationDelegate.multipleStoresDetected(RepositoryConfigurationDelegate.java:165)] - [INFO] Multiple Spring Data modules found, entering strict repository configuration mode! 2018-10-24 07:25:17,066 [main] [org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization(PostProcessorRegistrationDelegate.java:327)] - [INFO] Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$81f7e25a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-10-24 07:25:18,284 [main] [org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:92)] - [INFO] Tomcat initialized with port(s): 8081 (http) 十月 24, 2018 7:25:18 上午 org.apache.catalina.core.StandardService startInternal 信息: Starting service [Tomcat] 十月 24, 2018 7:25:18 上午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/8.5.29 十月 24, 2018 7:25:18 上午 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring embedded WebApplicationContext 2018-10-24 07:25:18,655 [localhost-startStop-1] [org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.prepareEmbeddedWebApplicationContext(EmbeddedWebApplicationContext.java:276)] - [INFO] Root WebApplicationContext: initialization completed in 5092 ms 2018-10-24 07:25:19,134 [localhost-startStop-1] [org.springframework.boot.web.servlet.ServletRegistrationBean.onStartup(ServletRegistrationBean.java:190)] - [INFO] Mapping servlet: 'dispatcherServlet' to [/] 2018-10-24 07:25:19,137 [localhost-startStop-1] [org.springframework.boot.web.servlet.ServletRegistrationBean.onStartup(ServletRegistrationBean.java:190)] - [INFO] Mapping servlet: 'statViewServlet' to [/druid/*] 2018-10-24 07:25:19,145 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'characterEncodingFilter' to: [/*] 2018-10-24 07:25:19,147 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'hiddenHttpMethodFilter' to: [/*] 2018-10-24 07:25:19,147 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'httpPutFormContentFilter' to: [/*] 2018-10-24 07:25:19,172 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'requestContextFilter' to: [/*] 2018-10-24 07:25:19,175 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:271)] - [INFO] Mapping filter: 'webStatFilter' to urls: [/*] 2018-10-24 07:25:21,325 [main] [org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)] - [WARN] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'registLoginController': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'com.imooc.service.UserService' available: expected single matching bean but found 2: userServiceImpl,userServiceImpl_final 十月 24, 2018 7:25:21 上午 org.apache.catalina.core.StandardService stopInternal 信息: Stopping service [Tomcat] 2018-10-24 07:25:21,450 [main] [org.springframework.boot.autoconfigure.logging.AutoConfigurationReportLoggingInitializer.logAutoConfigurationReport(AutoConfigurationReportLoggingInitializer.java:101)] - [INFO] Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2018-10-24 07:25:21,474 [main] [org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter.report(LoggingFailureAnalysisReporter.java:42)] - [ERROR] *************************** APPLICATION FAILED TO START *************************** Description: Field userService in com.imooc.controller.RegistLoginController required a single bean, but 2 were found: - userServiceImpl: defined in file [H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-service argetclassescomimoocserviceimplUserServiceImpl.class] - userServiceImpl_final: defined in file [H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-service argetclassescomimoocserviceimplUserServiceImpl_final.class] Action: Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
解决之后还是报错,提示有两个regist方法
. ____ _ __ _ _ /\ / ___'_ __ _ _(_)_ __ __ _ ( ( )\___ | '_ | '_| | '_ / _` | \/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v1.5.12.RELEASE) 2018-10-24 07:26:50,474 [main] [org.springframework.boot.StartupInfoLogger.logStarting(StartupInfoLogger.java:48)] - [INFO] Starting Application on DESKTOP-S07DGSI with PID 2628 (started by ZHONGZHENHUA in H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mini-api) 2018-10-24 07:26:50,478 [main] [org.springframework.boot.SpringApplication.logStartupProfileInfo(SpringApplication.java:593)] - [INFO] No active profile set, falling back to default profiles: default 2018-10-24 07:26:51,094 [main] [org.springframework.context.support.AbstractApplicationContext.prepareRefresh(AbstractApplicationContext.java:583)] - [INFO] Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2f490758: startup date [Wed Oct 24 07:26:51 CST 2018]; root of context hierarchy 2018-10-24 07:26:51,408 [background-preinit] [org.hibernate.validator.internal.util.Version.<clinit>(Version.java:30)] - [INFO] HV000001: Hibernate Validator 5.3.6.Final 2018-10-24 07:26:53,722 [main] [org.springframework.data.repository.config.RepositoryConfigurationDelegate.multipleStoresDetected(RepositoryConfigurationDelegate.java:165)] - [INFO] Multiple Spring Data modules found, entering strict repository configuration mode! 2018-10-24 07:26:55,224 [main] [org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization(PostProcessorRegistrationDelegate.java:327)] - [INFO] Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$de0383d2] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-10-24 07:26:56,428 [main] [org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:92)] - [INFO] Tomcat initialized with port(s): 8081 (http) 十月 24, 2018 7:26:56 上午 org.apache.catalina.core.StandardService startInternal 信息: Starting service [Tomcat] 十月 24, 2018 7:26:56 上午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/8.5.29 十月 24, 2018 7:26:56 上午 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring embedded WebApplicationContext 2018-10-24 07:26:56,780 [localhost-startStop-1] [org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.prepareEmbeddedWebApplicationContext(EmbeddedWebApplicationContext.java:276)] - [INFO] Root WebApplicationContext: initialization completed in 5701 ms 2018-10-24 07:26:57,179 [localhost-startStop-1] [org.springframework.boot.web.servlet.ServletRegistrationBean.onStartup(ServletRegistrationBean.java:190)] - [INFO] Mapping servlet: 'dispatcherServlet' to [/] 2018-10-24 07:26:57,183 [localhost-startStop-1] [org.springframework.boot.web.servlet.ServletRegistrationBean.onStartup(ServletRegistrationBean.java:190)] - [INFO] Mapping servlet: 'statViewServlet' to [/druid/*] 2018-10-24 07:26:57,191 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'characterEncodingFilter' to: [/*] 2018-10-24 07:26:57,193 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'hiddenHttpMethodFilter' to: [/*] 2018-10-24 07:26:57,193 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'httpPutFormContentFilter' to: [/*] 2018-10-24 07:26:57,194 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'requestContextFilter' to: [/*] 2018-10-24 07:26:57,194 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:271)] - [INFO] Mapping filter: 'webStatFilter' to urls: [/*] 2018-10-24 07:27:01,031 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/bgm/list],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.BgmController.list() 2018-10-24 07:27:01,039 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/hello]}" onto public java.lang.String com.imooc.controller.HelloWorldController.Hello() 2018-10-24 07:27:01,040 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/regist],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController.regist(com.imooc.pojo.Users) throws java.lang.Exception 2018-10-24 07:27:01,043 [main] [org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)] - [WARN] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'documentationPluginsBootstrapper' defined in URL [jar:file:/C:/Users/ZHONGZHENHUA/.m2/repository/io/springfox/springfox-spring-web/2.4.0/springfox-spring-web-2.4.0.jar!/springfox/documentation/spring/web/plugins/DocumentationPluginsBootstrapper.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webMvcRequestHandlerProvider' defined in URL [jar:file:/C:/Users/ZHONGZHENHUA/.m2/repository/io/springfox/springfox-spring-web/2.4.0/springfox-spring-web-2.4.0.jar!/springfox/documentation/spring/web/plugins/WebMvcRequestHandlerProvider.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'registLoginController_final' method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController_final.regist(com.imooc.pojo.Users) throws java.lang.Exception to {[/regist],methods=[POST]}: There is already 'registLoginController' bean method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController.regist(com.imooc.pojo.Users) throws java.lang.Exception mapped. 十月 24, 2018 7:27:01 上午 org.apache.catalina.core.StandardService stopInternal 信息: Stopping service [Tomcat] 2018-10-24 07:27:01,119 [main] [org.springframework.boot.autoconfigure.logging.AutoConfigurationReportLoggingInitializer.logAutoConfigurationReport(AutoConfigurationReportLoggingInitializer.java:101)] - [INFO] Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2018-10-24 07:27:01,133 [main] [org.springframework.boot.SpringApplication.reportFailure(SpringApplication.java:771)] - [ERROR] Application startup failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'documentationPluginsBootstrapper' defined in URL [jar:file:/C:/Users/ZHONGZHENHUA/.m2/repository/io/springfox/springfox-spring-web/2.4.0/springfox-spring-web-2.4.0.jar!/springfox/documentation/spring/web/plugins/DocumentationPluginsBootstrapper.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webMvcRequestHandlerProvider' defined in URL [jar:file:/C:/Users/ZHONGZHENHUA/.m2/repository/io/springfox/springfox-spring-web/2.4.0/springfox-spring-web-2.4.0.jar!/springfox/documentation/spring/web/plugins/WebMvcRequestHandlerProvider.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'registLoginController_final' method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController_final.regist(com.imooc.pojo.Users) throws java.lang.Exception to {[/regist],methods=[POST]}: There is already 'registLoginController' bean method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController.regist(com.imooc.pojo.Users) throws java.lang.Exception mapped. at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1197) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) at com.imooc.Application.main(Application.java:15) Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webMvcRequestHandlerProvider' defined in URL [jar:file:/C:/Users/ZHONGZHENHUA/.m2/repository/io/springfox/springfox-spring-web/2.4.0/springfox-spring-web-2.4.0.jar!/springfox/documentation/spring/web/plugins/WebMvcRequestHandlerProvider.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'registLoginController_final' method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController_final.regist(com.imooc.pojo.Users) throws java.lang.Exception to {[/regist],methods=[POST]}: There is already 'registLoginController' bean method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController.regist(com.imooc.pojo.Users) throws java.lang.Exception mapped. at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1197) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1316) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1282) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1180) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1096) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741) ... 19 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'registLoginController_final' method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController_final.regist(com.imooc.pojo.Users) throws java.lang.Exception to {[/regist],methods=[POST]}: There is already 'registLoginController' bean method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController.regist(com.imooc.pojo.Users) throws java.lang.Exception mapped. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1630) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1316) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1282) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1180) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1096) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741) ... 36 more Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'registLoginController_final' method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController_final.regist(com.imooc.pojo.Users) throws java.lang.Exception to {[/regist],methods=[POST]}: There is already 'registLoginController' bean method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController.regist(com.imooc.pojo.Users) throws java.lang.Exception mapped. at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.assertUniqueMethodMapping(AbstractHandlerMethodMapping.java:576) at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:540) at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.registerHandlerMethod(AbstractHandlerMethodMapping.java:264) at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.detectHandlerMethods(AbstractHandlerMethodMapping.java:250) at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.initHandlerMethods(AbstractHandlerMethodMapping.java:214) at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.afterPropertiesSet(AbstractHandlerMethodMapping.java:184) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.afterPropertiesSet(RequestMappingHandlerMapping.java:127) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1626) ... 50 more
看来改RegistLoginController_final的regist方法名不行
. ____ _ __ _ _ /\ / ___'_ __ _ _(_)_ __ __ _ ( ( )\___ | '_ | '_| | '_ / _` | \/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v1.5.12.RELEASE) 2018-10-24 07:29:39,483 [main] [org.springframework.boot.StartupInfoLogger.logStarting(StartupInfoLogger.java:48)] - [INFO] Starting Application on DESKTOP-S07DGSI with PID 16132 (started by ZHONGZHENHUA in H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mini-api) 2018-10-24 07:29:39,488 [main] [org.springframework.boot.SpringApplication.logStartupProfileInfo(SpringApplication.java:593)] - [INFO] No active profile set, falling back to default profiles: default 2018-10-24 07:29:40,181 [main] [org.springframework.context.support.AbstractApplicationContext.prepareRefresh(AbstractApplicationContext.java:583)] - [INFO] Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2f490758: startup date [Wed Oct 24 07:29:40 CST 2018]; root of context hierarchy 2018-10-24 07:29:40,263 [background-preinit] [org.hibernate.validator.internal.util.Version.<clinit>(Version.java:30)] - [INFO] HV000001: Hibernate Validator 5.3.6.Final 2018-10-24 07:29:42,887 [main] [org.springframework.data.repository.config.RepositoryConfigurationDelegate.multipleStoresDetected(RepositoryConfigurationDelegate.java:165)] - [INFO] Multiple Spring Data modules found, entering strict repository configuration mode! 2018-10-24 07:29:43,964 [main] [org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization(PostProcessorRegistrationDelegate.java:327)] - [INFO] Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$de0383d2] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-10-24 07:29:45,155 [main] [org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:92)] - [INFO] Tomcat initialized with port(s): 8081 (http) 十月 24, 2018 7:29:45 上午 org.apache.catalina.core.StandardService startInternal 信息: Starting service [Tomcat] 十月 24, 2018 7:29:45 上午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/8.5.29 十月 24, 2018 7:29:45 上午 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring embedded WebApplicationContext 2018-10-24 07:29:45,489 [localhost-startStop-1] [org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.prepareEmbeddedWebApplicationContext(EmbeddedWebApplicationContext.java:276)] - [INFO] Root WebApplicationContext: initialization completed in 5314 ms 2018-10-24 07:29:45,963 [localhost-startStop-1] [org.springframework.boot.web.servlet.ServletRegistrationBean.onStartup(ServletRegistrationBean.java:190)] - [INFO] Mapping servlet: 'dispatcherServlet' to [/] 2018-10-24 07:29:45,965 [localhost-startStop-1] [org.springframework.boot.web.servlet.ServletRegistrationBean.onStartup(ServletRegistrationBean.java:190)] - [INFO] Mapping servlet: 'statViewServlet' to [/druid/*] 2018-10-24 07:29:45,979 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'characterEncodingFilter' to: [/*] 2018-10-24 07:29:45,980 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'hiddenHttpMethodFilter' to: [/*] 2018-10-24 07:29:45,980 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'httpPutFormContentFilter' to: [/*] 2018-10-24 07:29:45,981 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'requestContextFilter' to: [/*] 2018-10-24 07:29:45,981 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:271)] - [INFO] Mapping filter: 'webStatFilter' to urls: [/*] 2018-10-24 07:29:49,625 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/bgm/list],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.BgmController.list() 2018-10-24 07:29:49,630 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/hello]}" onto public java.lang.String com.imooc.controller.HelloWorldController.Hello() 2018-10-24 07:29:49,633 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/regist],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController.regist(com.imooc.pojo.Users) throws java.lang.Exception 2018-10-24 07:29:49,638 [main] [org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)] - [WARN] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'documentationPluginsBootstrapper' defined in URL [jar:file:/C:/Users/ZHONGZHENHUA/.m2/repository/io/springfox/springfox-spring-web/2.4.0/springfox-spring-web-2.4.0.jar!/springfox/documentation/spring/web/plugins/DocumentationPluginsBootstrapper.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webMvcRequestHandlerProvider' defined in URL [jar:file:/C:/Users/ZHONGZHENHUA/.m2/repository/io/springfox/springfox-spring-web/2.4.0/springfox-spring-web-2.4.0.jar!/springfox/documentation/spring/web/plugins/WebMvcRequestHandlerProvider.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'registLoginController_final' method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController_final.regist_final(com.imooc.pojo.Users) throws java.lang.Exception to {[/regist],methods=[POST]}: There is already 'registLoginController' bean method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController.regist(com.imooc.pojo.Users) throws java.lang.Exception mapped. 十月 24, 2018 7:29:49 上午 org.apache.catalina.core.StandardService stopInternal 信息: Stopping service [Tomcat] 2018-10-24 07:29:49,701 [main] [org.springframework.boot.autoconfigure.logging.AutoConfigurationReportLoggingInitializer.logAutoConfigurationReport(AutoConfigurationReportLoggingInitializer.java:101)] - [INFO] Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2018-10-24 07:29:49,713 [main] [org.springframework.boot.SpringApplication.reportFailure(SpringApplication.java:771)] - [ERROR] Application startup failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'documentationPluginsBootstrapper' defined in URL [jar:file:/C:/Users/ZHONGZHENHUA/.m2/repository/io/springfox/springfox-spring-web/2.4.0/springfox-spring-web-2.4.0.jar!/springfox/documentation/spring/web/plugins/DocumentationPluginsBootstrapper.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webMvcRequestHandlerProvider' defined in URL [jar:file:/C:/Users/ZHONGZHENHUA/.m2/repository/io/springfox/springfox-spring-web/2.4.0/springfox-spring-web-2.4.0.jar!/springfox/documentation/spring/web/plugins/WebMvcRequestHandlerProvider.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'registLoginController_final' method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController_final.regist_final(com.imooc.pojo.Users) throws java.lang.Exception to {[/regist],methods=[POST]}: There is already 'registLoginController' bean method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController.regist(com.imooc.pojo.Users) throws java.lang.Exception mapped. at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1197) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) at com.imooc.Application.main(Application.java:15) Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webMvcRequestHandlerProvider' defined in URL [jar:file:/C:/Users/ZHONGZHENHUA/.m2/repository/io/springfox/springfox-spring-web/2.4.0/springfox-spring-web-2.4.0.jar!/springfox/documentation/spring/web/plugins/WebMvcRequestHandlerProvider.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'registLoginController_final' method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController_final.regist_final(com.imooc.pojo.Users) throws java.lang.Exception to {[/regist],methods=[POST]}: There is already 'registLoginController' bean method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController.regist(com.imooc.pojo.Users) throws java.lang.Exception mapped. at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1197) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1316) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1282) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1180) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1096) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741) ... 19 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'registLoginController_final' method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController_final.regist_final(com.imooc.pojo.Users) throws java.lang.Exception to {[/regist],methods=[POST]}: There is already 'registLoginController' bean method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController.regist(com.imooc.pojo.Users) throws java.lang.Exception mapped. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1630) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1316) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1282) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1180) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1096) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:835) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741) ... 36 more Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'registLoginController_final' method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController_final.regist_final(com.imooc.pojo.Users) throws java.lang.Exception to {[/regist],methods=[POST]}: There is already 'registLoginController' bean method public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController.regist(com.imooc.pojo.Users) throws java.lang.Exception mapped. at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.assertUniqueMethodMapping(AbstractHandlerMethodMapping.java:576) at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:540) at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.registerHandlerMethod(AbstractHandlerMethodMapping.java:264) at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.detectHandlerMethods(AbstractHandlerMethodMapping.java:250) at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.initHandlerMethods(AbstractHandlerMethodMapping.java:214) at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.afterPropertiesSet(AbstractHandlerMethodMapping.java:184) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.afterPropertiesSet(RequestMappingHandlerMapping.java:127) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1688) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1626) ... 50 more
那就注释掉/imooc-videos-dev-mini-api/src/main/java/com/imooc/controller/RegistLoginController_final.java的@PostMapping("/regist")这一行吧,还是继续报错
. ____ _ __ _ _ /\ / ___'_ __ _ _(_)_ __ __ _ ( ( )\___ | '_ | '_| | '_ / _` | \/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v1.5.12.RELEASE) 2018-10-24 07:33:53,741 [main] [org.springframework.boot.StartupInfoLogger.logStarting(StartupInfoLogger.java:48)] - [INFO] Starting Application on DESKTOP-S07DGSI with PID 15348 (started by ZHONGZHENHUA in H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mini-api) 2018-10-24 07:33:53,744 [main] [org.springframework.boot.SpringApplication.logStartupProfileInfo(SpringApplication.java:593)] - [INFO] No active profile set, falling back to default profiles: default 2018-10-24 07:33:54,431 [main] [org.springframework.context.support.AbstractApplicationContext.prepareRefresh(AbstractApplicationContext.java:583)] - [INFO] Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2f490758: startup date [Wed Oct 24 07:33:54 CST 2018]; root of context hierarchy 2018-10-24 07:33:54,616 [background-preinit] [org.hibernate.validator.internal.util.Version.<clinit>(Version.java:30)] - [INFO] HV000001: Hibernate Validator 5.3.6.Final 2018-10-24 07:33:56,676 [main] [org.springframework.data.repository.config.RepositoryConfigurationDelegate.multipleStoresDetected(RepositoryConfigurationDelegate.java:165)] - [INFO] Multiple Spring Data modules found, entering strict repository configuration mode! 2018-10-24 07:33:57,709 [main] [org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization(PostProcessorRegistrationDelegate.java:327)] - [INFO] Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$f9e742d1] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-10-24 07:33:58,860 [main] [org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:92)] - [INFO] Tomcat initialized with port(s): 8081 (http) 十月 24, 2018 7:33:58 上午 org.apache.catalina.core.StandardService startInternal 信息: Starting service [Tomcat] 十月 24, 2018 7:33:58 上午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/8.5.29 十月 24, 2018 7:33:59 上午 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring embedded WebApplicationContext 2018-10-24 07:33:59,220 [localhost-startStop-1] [org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.prepareEmbeddedWebApplicationContext(EmbeddedWebApplicationContext.java:276)] - [INFO] Root WebApplicationContext: initialization completed in 4794 ms 2018-10-24 07:33:59,682 [localhost-startStop-1] [org.springframework.boot.web.servlet.ServletRegistrationBean.onStartup(ServletRegistrationBean.java:190)] - [INFO] Mapping servlet: 'dispatcherServlet' to [/] 2018-10-24 07:33:59,686 [localhost-startStop-1] [org.springframework.boot.web.servlet.ServletRegistrationBean.onStartup(ServletRegistrationBean.java:190)] - [INFO] Mapping servlet: 'statViewServlet' to [/druid/*] 2018-10-24 07:33:59,697 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'characterEncodingFilter' to: [/*] 2018-10-24 07:33:59,698 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'hiddenHttpMethodFilter' to: [/*] 2018-10-24 07:33:59,700 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'httpPutFormContentFilter' to: [/*] 2018-10-24 07:33:59,700 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'requestContextFilter' to: [/*] 2018-10-24 07:33:59,701 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:271)] - [INFO] Mapping filter: 'webStatFilter' to urls: [/*] 2018-10-24 07:34:03,424 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/bgm/list],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.BgmController.list() 2018-10-24 07:34:03,431 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/hello]}" onto public java.lang.String com.imooc.controller.HelloWorldController.Hello() 2018-10-24 07:34:03,432 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/regist],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController.regist(com.imooc.pojo.Users) throws java.lang.Exception 2018-10-24 07:34:03,434 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/login],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController_final.login(com.imooc.pojo.Users) throws java.lang.Exception 2018-10-24 07:34:03,435 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/logout],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController_final.logout(java.lang.String) throws java.lang.Exception 2018-10-24 07:34:03,443 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/user/query],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserController.query(java.lang.String,java.lang.String) throws java.lang.Exception 2018-10-24 07:34:03,445 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/user/beyourfans],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserController.beyourfans(java.lang.String,java.lang.String) throws java.lang.Exception 2018-10-24 07:34:03,446 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/user/reportUser],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserController.reportUser(com.imooc.pojo.UsersReport) throws java.lang.Exception 2018-10-24 07:34:03,447 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/user/dontbeyourfans],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserController.dontbeyourfans(java.lang.String,java.lang.String) throws java.lang.Exception 2018-10-24 07:34:03,448 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/user/queryPublisher],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserController.queryPublisher(java.lang.String,java.lang.String,java.lang.String) throws java.lang.Exception 2018-10-24 07:34:03,449 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/user/uploadFace],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserController.uploadFace(java.lang.String,org.springframework.web.multipart.MultipartFile[]) throws java.lang.Exception 2018-10-24 07:34:03,452 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/crud/update]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserCRUDController.update() 2018-10-24 07:34:03,453 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/crud/save]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserCRUDController.save() 2018-10-24 07:34:03,455 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/crud/update2]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserCRUDController.update2() 2018-10-24 07:34:03,456 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/crud/delUser]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserCRUDController.delUser() 2018-10-24 07:34:03,475 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/uploadCover],methods=[POST],consumes=[multipart/form-data]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.uploadCover(java.lang.String,java.lang.String,org.springframework.web.multipart.MultipartFile) throws java.lang.Exception 2018-10-24 07:34:03,477 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/upload],methods=[POST],consumes=[multipart/form-data]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.upload(java.lang.String,java.lang.String,double,int,int,java.lang.String,org.springframework.web.multipart.MultipartFile) throws java.lang.Exception 2018-10-24 07:34:03,478 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/showAll],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.showAll(com.imooc.pojo.Videos,java.lang.Integer,java.lang.Integer,java.lang.Integer) throws java.lang.Exception 2018-10-24 07:34:03,479 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/getVideoComments],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.getVideoComments(java.lang.String,java.lang.Integer,java.lang.Integer) throws java.lang.Exception 2018-10-24 07:34:03,481 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/showMyFollow],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.showMyFollow(java.lang.String,java.lang.Integer) throws java.lang.Exception 2018-10-24 07:34:03,495 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/showMyLike],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.showMyLike(java.lang.String,java.lang.Integer,java.lang.Integer) throws java.lang.Exception 2018-10-24 07:34:03,496 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/userLike],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.userLike(java.lang.String,java.lang.String,java.lang.String) throws java.lang.Exception 2018-10-24 07:34:03,497 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/userUnLike],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.userUnLike(java.lang.String,java.lang.String,java.lang.String) throws java.lang.Exception 2018-10-24 07:34:03,498 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/hot],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.hot() throws java.lang.Exception 2018-10-24 07:34:03,499 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/saveComment],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.saveComment(com.imooc.pojo.Comments,java.lang.String,java.lang.String) throws java.lang.Exception 2018-10-24 07:34:03,501 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/v2/api-docs],methods=[GET],produces=[application/json || application/hal+json]}" onto public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest) 2018-10-24 07:34:03,509 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/configuration/security]}" onto org.springframework.http.ResponseEntity<springfox.documentation.swagger.web.SecurityConfiguration> springfox.documentation.swagger.web.ApiResourceController.securityConfiguration() 2018-10-24 07:34:03,511 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/swagger-resources]}" onto org.springframework.http.ResponseEntity<java.util.List<springfox.documentation.swagger.web.SwaggerResource>> springfox.documentation.swagger.web.ApiResourceController.swaggerResources() 2018-10-24 07:34:03,513 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/configuration/ui]}" onto org.springframework.http.ResponseEntity<springfox.documentation.swagger.web.UiConfiguration> springfox.documentation.swagger.web.ApiResourceController.uiConfiguration() 2018-10-24 07:34:03,518 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 2018-10-24 07:34:03,519 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 2018-10-24 07:34:04,052 [main] [org.apache.curator.utils.Compatibility.<clinit>(Compatibility.java:41)] - [INFO] Running in ZooKeeper 3.4.x compatibility mode 2018-10-24 07:34:04,111 [main] [org.apache.curator.CuratorZookeeperClient.<init>(CuratorZookeeperClient.java:120)] - [WARN] session timeout [10000] is less than connection timeout [15000] 2018-10-24 07:34:04,146 [main] [org.apache.curator.framework.imps.CuratorFrameworkImpl.start(CuratorFrameworkImpl.java:284)] - [INFO] Starting 2018-10-24 07:34:13,235 [main] [org.apache.zookeeper.Environment.logEnv(Environment.java:100)] - [INFO] Client environment:zookeeper.version=3.4.11-37e277162d567b55a07d1755f0b31c32e93c01a0, built on 11/01/2017 18:06 GMT 2018-10-24 07:34:13,235 [main] [org.apache.zookeeper.Environment.logEnv(Environment.java:100)] - [INFO] Client environment:host.name=DESKTOP-S07DGSI 2018-10-24 07:34:13,235 [main] [org.apache.zookeeper.Environment.logEnv(Environment.java:100)] - [INFO] Client environment:java.version=1.8.0_144 2018-10-24 07:34:13,236 [main] [org.apache.zookeeper.Environment.logEnv(Environment.java:100)] - [INFO] Client environment:java.vendor=Oracle Corporation 2018-10-24 07:34:13,236 [main] [org.apache.zookeeper.Environment.logEnv(Environment.java:100)] - [INFO] Client environment:java.home=C:Program FilesJavajdk1.8.0_144jre 2018-10-24 07:34:13,236 [main] [org.apache.zookeeper.Environment.logEnv(Environment.java:100)] - [INFO] Client environment:java.class.path=H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mini-api argetclasses;H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-service argetclasses;H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mapper argetclasses;H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-pojo argetclasses;H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-common argetclasses;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkootspring-boot-starter1.5.12.RELEASEspring-boot-starter-1.5.12.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkootspring-boot1.5.12.RELEASEspring-boot-1.5.12.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkspring-context4.3.16.RELEASEspring-context-4.3.16.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkootspring-boot-autoconfigure1.5.12.RELEASEspring-boot-autoconfigure-1.5.12.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkspring-core4.3.16.RELEASEspring-core-4.3.16.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgyamlsnakeyaml1.17snakeyaml-1.17.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkootspring-boot-starter-log4j1.3.8.RELEASEspring-boot-starter-log4j-1.3.8.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgslf4jjcl-over-slf4j1.7.25jcl-over-slf4j-1.7.25.jar;C:UsersHONGZHENHUA.m2 epositoryorgslf4jjul-to-slf4j1.7.25jul-to-slf4j-1.7.25.jar;C:UsersHONGZHENHUA.m2 epositoryorgslf4jslf4j-log4j121.7.25slf4j-log4j12-1.7.25.jar;C:UsersHONGZHENHUA.m2 epositorylog4jlog4j1.2.17log4j-1.2.17.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkootspring-boot-starter-aop1.5.12.RELEASEspring-boot-starter-aop-1.5.12.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkspring-aop4.3.16.RELEASEspring-aop-4.3.16.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkspring-beans4.3.16.RELEASEspring-beans-4.3.16.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgaspectjaspectjweaver1.8.13aspectjweaver-1.8.13.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkootspring-boot-starter-web1.5.12.RELEASEspring-boot-starter-web-1.5.12.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkootspring-boot-starter-tomcat1.5.12.RELEASEspring-boot-starter-tomcat-1.5.12.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgapache omcatembed omcat-embed-core8.5.29 omcat-embed-core-8.5.29.jar;C:UsersHONGZHENHUA.m2 epositoryorgapache omcat omcat-annotations-api8.5.29 omcat-annotations-api-8.5.29.jar;C:UsersHONGZHENHUA.m2 epositoryorgapache omcatembed omcat-embed-el8.5.29 omcat-embed-el-8.5.29.jar;C:UsersHONGZHENHUA.m2 epositoryorgapache omcatembed omcat-embed-websocket8.5.29 omcat-embed-websocket-8.5.29.jar;C:UsersHONGZHENHUA.m2 epositoryorghibernatehibernate-validator5.3.6.Finalhibernate-validator-5.3.6.Final.jar;C:UsersHONGZHENHUA.m2 epositoryjavaxvalidationvalidation-api1.1.0.Finalvalidation-api-1.1.0.Final.jar;C:UsersHONGZHENHUA.m2 epositoryorgjbossloggingjboss-logging3.3.2.Finaljboss-logging-3.3.2.Final.jar;C:UsersHONGZHENHUA.m2 epositorycomfasterxmljacksoncorejackson-databind2.8.11.1jackson-databind-2.8.11.1.jar;C:UsersHONGZHENHUA.m2 epositorycomfasterxmljacksoncorejackson-annotations2.8.0jackson-annotations-2.8.0.jar;C:UsersHONGZHENHUA.m2 epositorycomfasterxmljacksoncorejackson-core2.8.11jackson-core-2.8.11.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkspring-web4.3.16.RELEASEspring-web-4.3.16.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkspring-webmvc4.3.16.RELEASEspring-webmvc-4.3.16.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkspring-expression4.3.16.RELEASEspring-expression-4.3.16.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkootspring-boot-starter-thymeleaf1.5.12.RELEASEspring-boot-starter-thymeleaf-1.5.12.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorg hymeleaf hymeleaf-spring42.1.6.RELEASE hymeleaf-spring4-2.1.6.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorg hymeleaf hymeleaf2.1.6.RELEASE hymeleaf-2.1.6.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryognlognl3.0.8ognl-3.0.8.jar;C:UsersHONGZHENHUA.m2 epositoryorgjavassistjavassist3.21.0-GAjavassist-3.21.0-GA.jar;C:UsersHONGZHENHUA.m2 epositoryorgunbescapeunbescape1.1.0.RELEASEunbescape-1.1.0.RELEASE.jar;C:UsersHONGZHENHUA.m2 epository z etultraq hymeleaf hymeleaf-layout-dialect1.4.0 hymeleaf-layout-dialect-1.4.0.jar;C:UsersHONGZHENHUA.m2 epositoryorgcodehausgroovygroovy2.4.15groovy-2.4.15.jar;C:UsersHONGZHENHUA.m2 epositorycomalibabadruid1.1.0druid-1.1.0.jar;C:UsersHONGZHENHUA.m2 epositorycomalibabadruid-spring-boot-starter1.1.0druid-spring-boot-starter-1.1.0.jar;C:UsersHONGZHENHUA.m2 epositorymysqlmysql-connector-java5.1.46mysql-connector-java-5.1.46.jar;C:UsersHONGZHENHUA.m2 epositoryorgmybatisspringootmybatis-spring-boot-starter1.3.1mybatis-spring-boot-starter-1.3.1.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkootspring-boot-starter-jdbc1.5.12.RELEASEspring-boot-starter-jdbc-1.5.12.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgapache omcat omcat-jdbc8.5.29 omcat-jdbc-8.5.29.jar;C:UsersHONGZHENHUA.m2 epositoryorgapache omcat omcat-juli8.5.29 omcat-juli-8.5.29.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkspring-jdbc4.3.16.RELEASEspring-jdbc-4.3.16.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgmybatisspringootmybatis-spring-boot-autoconfigure1.3.1mybatis-spring-boot-autoconfigure-1.3.1.jar;C:UsersHONGZHENHUA.m2 epositoryorgmybatismybatis3.4.5mybatis-3.4.5.jar;C:UsersHONGZHENHUA.m2 epositoryorgmybatismybatis-spring1.3.1mybatis-spring-1.3.1.jar;C:UsersHONGZHENHUA.m2 epository kmybatismapper-spring-boot-starter1.2.4mapper-spring-boot-starter-1.2.4.jar;C:UsersHONGZHENHUA.m2 epository kmybatismapper-spring-boot-autoconfigure1.2.4mapper-spring-boot-autoconfigure-1.2.4.jar;C:UsersHONGZHENHUA.m2 epository kmybatismapper3.5.3mapper-3.5.3.jar;C:UsersHONGZHENHUA.m2 epositoryjavaxpersistencepersistence-api1.0persistence-api-1.0.jar;C:UsersHONGZHENHUA.m2 epositorycomgithubpagehelperpagehelper-spring-boot-starter1.2.3pagehelper-spring-boot-starter-1.2.3.jar;C:UsersHONGZHENHUA.m2 epositorycomgithubpagehelperpagehelper-spring-boot-autoconfigure1.2.3pagehelper-spring-boot-autoconfigure-1.2.3.jar;C:UsersHONGZHENHUA.m2 epositorycomgithubpagehelperpagehelper5.1.2pagehelper-5.1.2.jar;C:UsersHONGZHENHUA.m2 epositorycomgithubjsqlparserjsqlparser1.0jsqlparser-1.0.jar;C:UsersHONGZHENHUA.m2 epositorycommons-codeccommons-codec1.10commons-codec-1.10.jar;C:UsersHONGZHENHUA.m2 epositoryorgapachecommonscommons-lang33.4commons-lang3-3.4.jar;C:UsersHONGZHENHUA.m2 epositorycommons-iocommons-io1.3.2commons-io-1.3.2.jar;C:UsersHONGZHENHUA.m2 epositoryiospringfoxspringfox-swagger22.4.0springfox-swagger2-2.4.0.jar;C:UsersHONGZHENHUA.m2 epositoryioswaggerswagger-annotations1.5.6swagger-annotations-1.5.6.jar;C:UsersHONGZHENHUA.m2 epositoryioswaggerswagger-models1.5.6swagger-models-1.5.6.jar;C:UsersHONGZHENHUA.m2 epositoryiospringfoxspringfox-spi2.4.0springfox-spi-2.4.0.jar;C:UsersHONGZHENHUA.m2 epositoryiospringfoxspringfox-core2.4.0springfox-core-2.4.0.jar;C:UsersHONGZHENHUA.m2 epositoryiospringfoxspringfox-schema2.4.0springfox-schema-2.4.0.jar;C:UsersHONGZHENHUA.m2 epositoryiospringfoxspringfox-swagger-common2.4.0springfox-swagger-common-2.4.0.jar;C:UsersHONGZHENHUA.m2 epositoryiospringfoxspringfox-spring-web2.4.0springfox-spring-web-2.4.0.jar;C:UsersHONGZHENHUA.m2 epositorycomgoogleguavaguava18.0guava-18.0.jar;C:UsersHONGZHENHUA.m2 epositorycomfasterxmlclassmate1.3.4classmate-1.3.4.jar;C:UsersHONGZHENHUA.m2 epositoryorgslf4jslf4j-api1.7.25slf4j-api-1.7.25.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkpluginspring-plugin-core1.2.0.RELEASEspring-plugin-core-1.2.0.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkpluginspring-plugin-metadata1.2.0.RELEASEspring-plugin-metadata-1.2.0.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryiospringfoxspringfox-swagger-ui2.4.0springfox-swagger-ui-2.4.0.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkootspring-boot-starter-data-redis1.5.12.RELEASEspring-boot-starter-data-redis-1.5.12.RELEASE.jar;C:UsersHONGZHENHUA.m2 epository edisclientsjedis2.9.0jedis-2.9.0.jar;C:UsersHONGZHENHUA.m2 epositoryorgapachecommonscommons-pool22.4.3commons-pool2-2.4.3.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkdataspring-data-redis1.8.11.RELEASEspring-data-redis-1.8.11.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkdataspring-data-keyvalue1.2.11.RELEASEspring-data-keyvalue-1.2.11.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkdataspring-data-commons1.13.11.RELEASEspring-data-commons-1.13.11.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkspring-tx4.3.16.RELEASEspring-tx-4.3.16.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkspring-oxm4.3.16.RELEASEspring-oxm-4.3.16.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgspringframeworkspring-context-support4.3.16.RELEASEspring-context-support-4.3.16.RELEASE.jar;C:UsersHONGZHENHUA.m2 epositoryorgapachecuratorcurator-framework4.0.0curator-framework-4.0.0.jar;C:UsersHONGZHENHUA.m2 epositoryorgapachecuratorcurator-client4.0.0curator-client-4.0.0.jar;C:UsersHONGZHENHUA.m2 epositoryorgapachezookeeperzookeeper3.4.11zookeeper-3.4.11.jar;C:UsersHONGZHENHUA.m2 epositoryjlinejline .9.94jline-0.9.94.jar;C:UsersHONGZHENHUA.m2 epositoryjunitjunit4.12junit-4.12.jar;C:UsersHONGZHENHUA.m2 epositoryorghamcresthamcrest-core1.3hamcrest-core-1.3.jar;C:UsersHONGZHENHUA.m2 epositoryorgapacheyetusaudience-annotations .5.0audience-annotations-0.5.0.jar;C:UsersHONGZHENHUA.m2 epositoryio etty etty3.10.5.Final etty-3.10.5.Final.jar;C:UsersHONGZHENHUA.m2 epositoryorgapachecuratorcurator-recipes4.0.0curator-recipes-4.0.0.jar 2018-10-24 07:34:13,268 [main] [org.apache.zookeeper.Environment.logEnv(Environment.java:100)] - [INFO] Client environment:java.library.path=C:Program FilesJavajdk1.8.0_144in;C:WINDOWSSunJavain;C:WINDOWSsystem32;C:WINDOWS;C:/Program Files/Java/jre1.8.0_144/bin/server;C:/Program Files/Java/jre1.8.0_144/bin;C:/Program Files/Java/jre1.8.0_144/lib/amd64;C:Program FilesNVIDIA GPU Computing ToolkitCUDAv8.0in;C:Program FilesNVIDIA GPU Computing ToolkitCUDAv8.0libnvvp;C:Program FilesNVIDIA GPU Computing ToolkitCUDAv9.0in;C:Program FilesNVIDIA GPU Computing ToolkitCUDAv9.0libnvvp;C:Program FilesNVIDIA GPU Computing ToolkitCUDAv9.2in;C:Program FilesNVIDIA GPU Computing ToolkitCUDAv9.2libnvvp;C:ProgramDataOracleJavajavapath;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;D:BaiduNetdiskDownloadadt-bundle-windows-x86_64_20140101adt-bundle-windows-x86_64_20140101sdkplatform-tools;D:BaiduNetdiskDownloadadt-bundle-windows-x86_64_20140101adt-bundle-windows-x86_64_20140101sdkplatform-tools;C:Program FilesJavajdk1.8.0_144in;C:Program FilesJavajdk1.8.0_144jrein;I:数据库数据库3mysql-5.7.21-winx64mysql-5.7.21-winx64in;H:NDKandroid-ndk-r9d-windows-x86_64android-ndk-r9d;D:UsersHONGZHENHUAAnaconda3;C:Program FilesGitcmd;C:Program Files odejs;C:UsersHONGZHENHUAServermavenapache-maven-3.5.2in;C:Program FilesTortoiseGitin;C:WINDOWSSystem32OpenSSH;C:Program Files (x86)NVIDIA CorporationPhysXCommon;C:Program FilesNVIDIA GPU Computing Toolkitcudnnin;D:UsersHONGZHENHUAAnaconda3Scripts;C:Program FilesNVIDIA GPU Computing Toolkitcudnnin;C:ProgramDataNVIDIA GPU Computing Toolkitv9.0;C:UsersHONGZHENHUA.dnxin;C:Program FilesMicrosoft DNXDnvm;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:ProgramDataNVIDIA GPU Computing Toolkitv8.0;C:UsersHONGZHENHUAAppDataLocalMicrosoftWindowsApps;C:UsersHONGZHENHUAAppDataRoaming pm;D:WindWind.NET.ClientWindNETin;C:Program FilesNVIDIA GPU Computing Toolkitcudnnin;;C:UsersHONGZHENHUADesktopeclipse-jee-kepler-SR2-win32-x86_64eclipse;;. 2018-10-24 07:34:13,269 [main] [org.apache.zookeeper.Environment.logEnv(Environment.java:100)] - [INFO] Client environment:java.io.tmpdir=C:UsersHONGZ~1AppDataLocalTemp 2018-10-24 07:34:13,269 [main] [org.apache.zookeeper.Environment.logEnv(Environment.java:100)] - [INFO] Client environment:java.compiler=<NA> 2018-10-24 07:34:13,269 [main] [org.apache.zookeeper.Environment.logEnv(Environment.java:100)] - [INFO] Client environment:os.name=Windows 10 2018-10-24 07:34:13,269 [main] [org.apache.zookeeper.Environment.logEnv(Environment.java:100)] - [INFO] Client environment:os.arch=amd64 2018-10-24 07:34:13,269 [main] [org.apache.zookeeper.Environment.logEnv(Environment.java:100)] - [INFO] Client environment:os.version=10.0 2018-10-24 07:34:13,269 [main] [org.apache.zookeeper.Environment.logEnv(Environment.java:100)] - [INFO] Client environment:user.name=ZHONGZHENHUA 2018-10-24 07:34:13,270 [main] [org.apache.zookeeper.Environment.logEnv(Environment.java:100)] - [INFO] Client environment:user.home=C:UsersHONGZHENHUA 2018-10-24 07:34:13,270 [main] [org.apache.zookeeper.Environment.logEnv(Environment.java:100)] - [INFO] Client environment:user.dir=H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mini-api 2018-10-24 07:34:13,271 [main] [org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:441)] - [INFO] Initiating client connection, connectString=192.168.1.210:2181 sessionTimeout=10000 watcher=org.apache.curator.ConnectionState@63e5b8aa 2018-10-24 07:34:13,342 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:34:13,346 [main] [org.apache.curator.framework.imps.CuratorFrameworkImpl.start(CuratorFrameworkImpl.java:326)] - [INFO] Default schema 2018-10-24 07:34:13,990 [main] [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache(RequestMappingHandlerAdapter.java:534)] - [INFO] Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2f490758: startup date [Wed Oct 24 07:33:54 CST 2018]; root of context hierarchy 2018-10-24 07:34:14,149 [main] [org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:362)] - [INFO] Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2018-10-24 07:34:14,149 [main] [org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:362)] - [INFO] Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2018-10-24 07:34:14,249 [main] [org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:362)] - [INFO] Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2018-10-24 07:34:14,351 [main] [org.springframework.boot.autoconfigure.thymeleaf.AbstractTemplateResolverConfiguration.checkTemplateLocationExists(AbstractTemplateResolverConfiguration.java:60)] - [WARN] Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 2018-10-24 07:34:15,935 [main] [org.springframework.jmx.export.MBeanExporter.afterSingletonsInstantiated(MBeanExporter.java:431)] - [INFO] Registering beans for JMX exposure on startup 2018-10-24 07:34:15,938 [main] [org.springframework.jmx.export.MBeanExporter.autodetect(MBeanExporter.java:918)] - [INFO] Bean with name 'dataSource' has been autodetected for JMX exposure 2018-10-24 07:34:15,949 [main] [org.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:672)] - [INFO] Located MBean 'dataSource': registering with JMX server as MBean [com.alibaba.druid.pool:name=dataSource,type=DruidDataSource] 2018-10-24 07:34:15,968 [main] [springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper.onApplicationEvent(DocumentationPluginsBootstrapper.java:84)] - [INFO] Context refreshed 2018-10-24 07:34:16,038 [main] [springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper.onApplicationEvent(DocumentationPluginsBootstrapper.java:87)] - [INFO] Found 1 custom documentation plugin(s) 2018-10-24 07:34:16,072 [main] [springfox.documentation.spring.web.scanners.ApiListingReferenceScanner.scan(ApiListingReferenceScanner.java:44)] - [INFO] Scanning for api listing references 2018-10-24 07:34:16,417 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:34:16,445 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:34:16,472 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:34:16,660 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:34:16,661 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:34:16,661 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:34:16,662 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:34:16,664 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:34:16,664 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:34:16,669 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:34:16,669 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:34:16,800 [main] [org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:216)] - [INFO] Tomcat started on port(s): 8081 (http) 2018-10-24 07:34:16,824 [main] [org.springframework.boot.StartupInfoLogger.logStarted(StartupInfoLogger.java:57)] - [INFO] Started Application in 23.668 seconds (JVM running for 24.528) 2018-10-24 07:34:23,347 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 10012ms for sessionid 0x0 2018-10-24 07:34:23,347 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 10012ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:34:24,450 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:34:33,450 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 10001ms for sessionid 0x0 2018-10-24 07:34:33,450 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 10001ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:34:34,554 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:34:43,554 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 10000ms for sessionid 0x0 2018-10-24 07:34:43,554 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 10000ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:34:44,655 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:34:53,655 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 10000ms for sessionid 0x0 2018-10-24 07:34:53,655 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 10000ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:34:54,756 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:35:03,756 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 10000ms for sessionid 0x0 2018-10-24 07:35:03,756 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 10000ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:35:04,857 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:35:14,859 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 11002ms for sessionid 0x0 2018-10-24 07:35:14,859 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 11002ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:35:15,960 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:35:24,960 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 10000ms for sessionid 0x0 2018-10-24 07:35:24,960 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 10000ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:35:26,061 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:35:36,063 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 11002ms for sessionid 0x0 2018-10-24 07:35:36,063 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 11002ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:35:37,164 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:35:46,164 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 10000ms for sessionid 0x0 2018-10-24 07:35:46,164 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 10000ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:35:46,266 [Curator-PathChildrenCache-0] [org.apache.curator.framework.imps.CuratorFrameworkImpl.logError(CuratorFrameworkImpl.java:664)] - [ERROR] Ensure path threw exception org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /admin at org.apache.zookeeper.KeeperException.create(KeeperException.java:102) at org.apache.zookeeper.KeeperException.create(KeeperException.java:54) at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1105) at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1133) at org.apache.curator.utils.ZKPaths.mkdirs(ZKPaths.java:274) at org.apache.curator.framework.imps.NamespaceImpl$1.call(NamespaceImpl.java:90) at org.apache.curator.connection.StandardConnectionHandlingPolicy.callWithRetry(StandardConnectionHandlingPolicy.java:64) at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:100) at org.apache.curator.framework.imps.NamespaceImpl.fixForNamespace(NamespaceImpl.java:83) at org.apache.curator.framework.imps.CuratorFrameworkImpl.fixForNamespace(CuratorFrameworkImpl.java:701) at org.apache.curator.framework.imps.ExistsBuilderImpl.forPath(ExistsBuilderImpl.java:187) at org.apache.curator.framework.imps.ExistsBuilderImpl.forPath(ExistsBuilderImpl.java:35) at org.apache.curator.framework.imps.CuratorFrameworkImpl.createContainers(CuratorFrameworkImpl.java:241) at org.apache.curator.framework.EnsureContainers.internalEnsure(EnsureContainers.java:69) at org.apache.curator.framework.EnsureContainers.ensure(EnsureContainers.java:53) at org.apache.curator.framework.recipes.cache.PathChildrenCache.ensurePath(PathChildrenCache.java:574) at org.apache.curator.framework.recipes.cache.PathChildrenCache.refresh(PathChildrenCache.java:487) at org.apache.curator.framework.recipes.cache.RefreshOperation.invoke(RefreshOperation.java:35) at org.apache.curator.framework.recipes.cache.PathChildrenCache$9.run(PathChildrenCache.java:771) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 2018-10-24 07:35:47,265 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:35:57,267 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 11002ms for sessionid 0x0 2018-10-24 07:35:57,267 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 11002ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:35:58,368 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:36:07,368 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 10000ms for sessionid 0x0 2018-10-24 07:36:07,368 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 10000ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:36:08,469 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:36:17,468 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 10000ms for sessionid 0x0 2018-10-24 07:36:17,468 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 10000ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:36:18,570 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:36:27,570 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 10000ms for sessionid 0x0 2018-10-24 07:36:27,570 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 10000ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:36:28,672 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:36:37,671 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 10000ms for sessionid 0x0 2018-10-24 07:36:37,671 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 10000ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:36:38,772 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:36:47,772 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 10000ms for sessionid 0x0 2018-10-24 07:36:47,772 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 10000ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:36:48,873 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:36:57,873 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 10000ms for sessionid 0x0 2018-10-24 07:36:57,873 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 10000ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:36:57,974 [Curator-PathChildrenCache-0] [org.apache.curator.framework.recipes.cache.PathChildrenCache.handleException(PathChildrenCache.java:569)] - [ERROR] org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /admin at org.apache.zookeeper.KeeperException.create(KeeperException.java:102) at org.apache.zookeeper.KeeperException.create(KeeperException.java:54) at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1105) at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1133) at org.apache.curator.utils.ZKPaths.mkdirs(ZKPaths.java:274) at org.apache.curator.framework.imps.ExistsBuilderImpl$2.call(ExistsBuilderImpl.java:230) at org.apache.curator.framework.imps.ExistsBuilderImpl$2.call(ExistsBuilderImpl.java:224) at org.apache.curator.connection.StandardConnectionHandlingPolicy.callWithRetry(StandardConnectionHandlingPolicy.java:64) at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:100) at org.apache.curator.framework.imps.ExistsBuilderImpl.pathInForeground(ExistsBuilderImpl.java:221) at org.apache.curator.framework.imps.ExistsBuilderImpl.forPath(ExistsBuilderImpl.java:206) at org.apache.curator.framework.imps.ExistsBuilderImpl.forPath(ExistsBuilderImpl.java:35) at org.apache.curator.framework.imps.CuratorFrameworkImpl.createContainers(CuratorFrameworkImpl.java:241) at org.apache.curator.framework.EnsureContainers.internalEnsure(EnsureContainers.java:69) at org.apache.curator.framework.EnsureContainers.ensure(EnsureContainers.java:53) at org.apache.curator.framework.recipes.cache.PathChildrenCache.ensurePath(PathChildrenCache.java:574) at org.apache.curator.framework.recipes.cache.PathChildrenCache.refresh(PathChildrenCache.java:487) at org.apache.curator.framework.recipes.cache.RefreshOperation.invoke(RefreshOperation.java:35) at org.apache.curator.framework.recipes.cache.PathChildrenCache$9.run(PathChildrenCache.java:771) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 2018-10-24 07:36:58,974 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:37:08,976 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 11002ms for sessionid 0x0 2018-10-24 07:37:08,976 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 11002ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:37:10,077 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:37:20,079 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 11002ms for sessionid 0x0 2018-10-24 07:37:20,079 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 11002ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:37:21,180 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:37:31,182 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 11002ms for sessionid 0x0 2018-10-24 07:37:31,182 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 11002ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:37:32,284 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:37:42,286 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 11004ms for sessionid 0x0 2018-10-24 07:37:42,286 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 11004ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:37:43,388 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:37:53,390 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 11002ms for sessionid 0x0 2018-10-24 07:37:53,390 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 11002ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:37:54,491 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:38:04,493 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 11002ms for sessionid 0x0 2018-10-24 07:38:04,493 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 11002ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:38:05,594 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:38:15,597 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 11003ms for sessionid 0x0 2018-10-24 07:38:15,597 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 11003ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:38:16,698 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:38:26,700 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 11002ms for sessionid 0x0 2018-10-24 07:38:26,700 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 11002ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:38:27,801 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error) 2018-10-24 07:38:37,804 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1111)] - [WARN] Client session timed out, have not heard from server in 11003ms for sessionid 0x0 2018-10-24 07:38:37,804 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1159)] - [INFO] Client session timed out, have not heard from server in 11003ms for sessionid 0x0, closing socket connection and attempting reconnect 2018-10-24 07:38:38,905 [main-SendThread(192.168.1.210:2181)] [org.apache.zookeeper.ClientCnxn$SendThread.logStartConnect(ClientCnxn.java:1035)] - [INFO] Opening socket connection to server 192.168.1.210/192.168.1.210:2181. Will not attempt to authenticate using SASL (unknown error)
把/imooc-videos-dev-mini-api/src/main/java/com/imooc/controller/RegistLoginController_final.java的@PostMapping("/regist")改为@PostMapping("/regist_final")之后还是报错,干脆删了/imooc-videos-dev-mini-api/src/main/java/com/imooc/WebMvcConfig和ZKCuratorClient这两个类,结果还是报错
. ____ _ __ _ _ /\ / ___'_ __ _ _(_)_ __ __ _ ( ( )\___ | '_ | '_| | '_ / _` | \/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v1.5.12.RELEASE) 2018-10-24 07:55:24,835 [main] [org.springframework.boot.StartupInfoLogger.logStarting(StartupInfoLogger.java:48)] - [INFO] Starting Application on DESKTOP-S07DGSI with PID 17172 (started by ZHONGZHENHUA in H:抖音源码imooc-videos-dev 20180530 精简版imooc-videos-dev 20180530 精简版imooc-videos-dev-mini-api) 2018-10-24 07:55:24,838 [main] [org.springframework.boot.SpringApplication.logStartupProfileInfo(SpringApplication.java:593)] - [INFO] No active profile set, falling back to default profiles: default 2018-10-24 07:55:25,544 [main] [org.springframework.context.support.AbstractApplicationContext.prepareRefresh(AbstractApplicationContext.java:583)] - [INFO] Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2f490758: startup date [Wed Oct 24 07:55:25 CST 2018]; root of context hierarchy 2018-10-24 07:55:25,729 [background-preinit] [org.hibernate.validator.internal.util.Version.<clinit>(Version.java:30)] - [INFO] HV000001: Hibernate Validator 5.3.6.Final 2018-10-24 07:55:27,948 [main] [org.springframework.data.repository.config.RepositoryConfigurationDelegate.multipleStoresDetected(RepositoryConfigurationDelegate.java:165)] - [INFO] Multiple Spring Data modules found, entering strict repository configuration mode! 2018-10-24 07:55:29,132 [main] [org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization(PostProcessorRegistrationDelegate.java:327)] - [INFO] Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$8253a032] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-10-24 07:55:30,204 [main] [org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:92)] - [INFO] Tomcat initialized with port(s): 8081 (http) 十月 24, 2018 7:55:30 上午 org.apache.catalina.core.StandardService startInternal 信息: Starting service [Tomcat] 十月 24, 2018 7:55:30 上午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/8.5.29 十月 24, 2018 7:55:30 上午 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring embedded WebApplicationContext 2018-10-24 07:55:30,592 [localhost-startStop-1] [org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.prepareEmbeddedWebApplicationContext(EmbeddedWebApplicationContext.java:276)] - [INFO] Root WebApplicationContext: initialization completed in 5052 ms 2018-10-24 07:55:31,056 [localhost-startStop-1] [org.springframework.boot.web.servlet.ServletRegistrationBean.onStartup(ServletRegistrationBean.java:190)] - [INFO] Mapping servlet: 'dispatcherServlet' to [/] 2018-10-24 07:55:31,058 [localhost-startStop-1] [org.springframework.boot.web.servlet.ServletRegistrationBean.onStartup(ServletRegistrationBean.java:190)] - [INFO] Mapping servlet: 'statViewServlet' to [/druid/*] 2018-10-24 07:55:31,068 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'characterEncodingFilter' to: [/*] 2018-10-24 07:55:31,069 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'hiddenHttpMethodFilter' to: [/*] 2018-10-24 07:55:31,070 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'httpPutFormContentFilter' to: [/*] 2018-10-24 07:55:31,070 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:258)] - [INFO] Mapping filter: 'requestContextFilter' to: [/*] 2018-10-24 07:55:31,071 [localhost-startStop-1] [org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure(AbstractFilterRegistrationBean.java:271)] - [INFO] Mapping filter: 'webStatFilter' to urls: [/*] 2018-10-24 07:55:34,983 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/bgm/list],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.BgmController.list() 2018-10-24 07:55:34,987 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/hello]}" onto public java.lang.String com.imooc.controller.HelloWorldController.Hello() 2018-10-24 07:55:34,991 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/regist],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController.regist(com.imooc.pojo.Users) throws java.lang.Exception 2018-10-24 07:55:34,994 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/regist_final],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController_final.regist_final(com.imooc.pojo.Users) throws java.lang.Exception 2018-10-24 07:55:34,995 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/login],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController_final.login(com.imooc.pojo.Users) throws java.lang.Exception 2018-10-24 07:55:34,995 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/logout],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.RegistLoginController_final.logout(java.lang.String) throws java.lang.Exception 2018-10-24 07:55:35,000 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/user/query],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserController.query(java.lang.String,java.lang.String) throws java.lang.Exception 2018-10-24 07:55:35,001 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/user/reportUser],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserController.reportUser(com.imooc.pojo.UsersReport) throws java.lang.Exception 2018-10-24 07:55:35,002 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/user/queryPublisher],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserController.queryPublisher(java.lang.String,java.lang.String,java.lang.String) throws java.lang.Exception 2018-10-24 07:55:35,003 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/user/beyourfans],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserController.beyourfans(java.lang.String,java.lang.String) throws java.lang.Exception 2018-10-24 07:55:35,011 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/user/dontbeyourfans],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserController.dontbeyourfans(java.lang.String,java.lang.String) throws java.lang.Exception 2018-10-24 07:55:35,012 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/user/uploadFace],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserController.uploadFace(java.lang.String,org.springframework.web.multipart.MultipartFile[]) throws java.lang.Exception 2018-10-24 07:55:35,014 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/crud/update]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserCRUDController.update() 2018-10-24 07:55:35,016 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/crud/save]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserCRUDController.save() 2018-10-24 07:55:35,017 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/crud/update2]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserCRUDController.update2() 2018-10-24 07:55:35,019 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/crud/delUser]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.UserCRUDController.delUser() 2018-10-24 07:55:35,031 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/upload],methods=[POST],consumes=[multipart/form-data]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.upload(java.lang.String,java.lang.String,double,int,int,java.lang.String,org.springframework.web.multipart.MultipartFile) throws java.lang.Exception 2018-10-24 07:55:35,032 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/userUnLike],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.userUnLike(java.lang.String,java.lang.String,java.lang.String) throws java.lang.Exception 2018-10-24 07:55:35,033 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/uploadCover],methods=[POST],consumes=[multipart/form-data]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.uploadCover(java.lang.String,java.lang.String,org.springframework.web.multipart.MultipartFile) throws java.lang.Exception 2018-10-24 07:55:35,037 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/showMyLike],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.showMyLike(java.lang.String,java.lang.Integer,java.lang.Integer) throws java.lang.Exception 2018-10-24 07:55:35,039 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/getVideoComments],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.getVideoComments(java.lang.String,java.lang.Integer,java.lang.Integer) throws java.lang.Exception 2018-10-24 07:55:35,046 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/userLike],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.userLike(java.lang.String,java.lang.String,java.lang.String) throws java.lang.Exception 2018-10-24 07:55:35,048 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/hot],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.hot() throws java.lang.Exception 2018-10-24 07:55:35,049 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/showMyFollow],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.showMyFollow(java.lang.String,java.lang.Integer) throws java.lang.Exception 2018-10-24 07:55:35,050 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/saveComment],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.saveComment(com.imooc.pojo.Comments,java.lang.String,java.lang.String) throws java.lang.Exception 2018-10-24 07:55:35,051 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/video/showAll],methods=[POST]}" onto public com.imooc.utils.IMoocJSONResult com.imooc.controller.VideoController.showAll(com.imooc.pojo.Videos,java.lang.Integer,java.lang.Integer,java.lang.Integer) throws java.lang.Exception 2018-10-24 07:55:35,053 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/v2/api-docs],methods=[GET],produces=[application/json || application/hal+json]}" onto public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest) 2018-10-24 07:55:35,060 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/configuration/ui]}" onto org.springframework.http.ResponseEntity<springfox.documentation.swagger.web.UiConfiguration> springfox.documentation.swagger.web.ApiResourceController.uiConfiguration() 2018-10-24 07:55:35,062 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/swagger-resources]}" onto org.springframework.http.ResponseEntity<java.util.List<springfox.documentation.swagger.web.SwaggerResource>> springfox.documentation.swagger.web.ApiResourceController.swaggerResources() 2018-10-24 07:55:35,066 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/configuration/security]}" onto org.springframework.http.ResponseEntity<springfox.documentation.swagger.web.SecurityConfiguration> springfox.documentation.swagger.web.ApiResourceController.securityConfiguration() 2018-10-24 07:55:35,070 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 2018-10-24 07:55:35,071 [main] [org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register(AbstractHandlerMethodMapping.java:543)] - [INFO] Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 2018-10-24 07:55:35,933 [main] [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache(RequestMappingHandlerAdapter.java:534)] - [INFO] Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2f490758: startup date [Wed Oct 24 07:55:25 CST 2018]; root of context hierarchy 2018-10-24 07:55:36,064 [main] [org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:362)] - [INFO] Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2018-10-24 07:55:36,065 [main] [org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:362)] - [INFO] Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2018-10-24 07:55:36,188 [main] [org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:362)] - [INFO] Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2018-10-24 07:55:36,272 [main] [org.springframework.boot.autoconfigure.thymeleaf.AbstractTemplateResolverConfiguration.checkTemplateLocationExists(AbstractTemplateResolverConfiguration.java:60)] - [WARN] Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 2018-10-24 07:55:37,705 [main] [org.springframework.jmx.export.MBeanExporter.afterSingletonsInstantiated(MBeanExporter.java:431)] - [INFO] Registering beans for JMX exposure on startup 2018-10-24 07:55:37,709 [main] [org.springframework.jmx.export.MBeanExporter.autodetect(MBeanExporter.java:918)] - [INFO] Bean with name 'dataSource' has been autodetected for JMX exposure 2018-10-24 07:55:37,718 [main] [org.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:672)] - [INFO] Located MBean 'dataSource': registering with JMX server as MBean [com.alibaba.druid.pool:name=dataSource,type=DruidDataSource] 2018-10-24 07:55:37,736 [main] [springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper.onApplicationEvent(DocumentationPluginsBootstrapper.java:84)] - [INFO] Context refreshed 2018-10-24 07:55:37,794 [main] [springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper.onApplicationEvent(DocumentationPluginsBootstrapper.java:87)] - [INFO] Found 1 custom documentation plugin(s) 2018-10-24 07:55:37,814 [main] [springfox.documentation.spring.web.scanners.ApiListingReferenceScanner.scan(ApiListingReferenceScanner.java:44)] - [INFO] Scanning for api listing references 2018-10-24 07:55:38,230 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:55:38,259 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:55:38,294 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:55:38,456 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:55:38,456 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:55:38,457 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:55:38,457 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:55:38,458 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:55:38,458 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:55:38,464 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:55:38,465 [main] [springfox.documentation.swagger.readers.operation.OperationImplicitParameterReader.maybeGetModelRef(OperationImplicitParameterReader.java:88)] - [WARN] Coercing to be of type string. This may not even be a scalar type in actuality 2018-10-24 07:55:38,714 [main] [org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:216)] - [INFO] Tomcat started on port(s): 8081 (http) 2018-10-24 07:55:38,727 [main] [org.springframework.boot.StartupInfoLogger.logStarted(StartupInfoLogger.java:57)] - [INFO] Started Application in 14.49 seconds (JVM running for 15.368)