问题收集帖

问题:

Bean named 'fruitImpl' is expected to be of type 'org.music.impl.FruitImpl'
but was actually of type 'com.sun.proxy.$Proxy19'

错误分析:

出现该异常是由于使用了默认的jdk的自动动态代理,需要在<aop:aspectj-autoproxy中添加proxy-target-class="true"
如下:<aop:aspectj-autoproxy proxy-target-class="true"/> ,即表示使用AspectJ的支持。


问题:

expected single matching bean but found 2: fruitImpl,testFruit

错误分析:

这是由于我用testFruit去继承fruitImpl类,出现了自动装配上的错误,只要在自动装配的类上
加上一条注释:@Qualifier("fruitImpl")即可

问题:
/usr/local/webserver/mysql/bin/mysqld:
Can't create/write to file '/usr/local/webserver/mysql/mysql.pid'
(Errcode: 13 - Permission denied)

mysql没有权限向mysql这个文件夹写入,那么就需要给他设置权限
解决链接:https://blog.csdn.net/zhldt2008/article/details/54911714

配置mysql的环境,可以在任意地方输入命令执行mysql的命令
链接:https://www.cnblogs.com/luckycn/p/7289995.html

配置mysql下root的密码:
链接地址:https://zhidao.baidu.com/question/1605583523236548867.html

linux上配置软件环境:
https://www.cnblogs.com/lhbryant/p/6928894.html

linux上git缺失bin命令配置:
https://www.linuxidc.com/Linux/2012-07/66270.htm

猜你喜欢

转载自www.cnblogs.com/shigeng/p/9456611.html