1.This application has no explicit mapping for /error, so you are seeing this as a fallback. 错误
springboot启动类位置放错,只能放在它子包下方可访问.否则404,路径找不到错误
2.Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'idempotentAspect': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'redissonClient' is expected to be of type 'org.redisson.api.RedissonClient' but was actually of type 'org.springframework.beans.factory.support.NullBean'
springboot连接不到redis.检查发现是虚拟机的问题.因虚拟机挂起后,无ip无法连接外网导致.
需要通过快照或者依次使用命令去执行
chkconfig NetworkManager off
chkconfig network on
service NetworkManager stop
service network start
/etc/init.d/network restart
最后通过ip addr 看到ip,也能ping通外网了。