Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder ‘druid.url’ in string value “${druid.url}”
在spring和mybatis整合的时候,将servlet层整合时,启动tomcat,出现下面这种错误,打开tomcat日志文件,找出caused by。
原因:dao层的数据库properties文件中定义了数据库连接的数据和前缀
而web层的配置文件没有前面的druid
统一两个地方的配置文件就好
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘user’ in ‘class com.qf.domain.User’
mybatis利用xml来完成dao的实现类的功能,出现这个错误是因为数据库语句没有写对
redis问题解决:Error condition on socket for SYNC: No route to host
检查bind后第二个IP地址是否正确
检查slaveof后的IP地址和端口号是否正确,
重启redis