macrozheng/mall-learning

请问tiny06里的es是只能用6.2.2版本的嘛,我用的7.6.2启动项目的时候会报错

bzwwrd opened this issue · 1 comments

2022-03-27 23:21:45.815 INFO 63926 --- [ main] o.s.d.e.c.TransportClientFactoryBean : Adding transport node : 192.168.101.19:9300
2022-03-27 23:21:46.957 ERROR 63926 --- [ main] o.s.b.web.embedded.tomcat.TomcatStarter : Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'securityConfig': Unsatisfied dependency expressed through field 'adminService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'umsAdminServiceImpl': Unsatisfied dependency expressed through field 'adminMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'umsAdminMapper' defined in file [/Users/songyuning/Downloads/mall-learning-master 2/mall-tiny-06/target/classes/com/macro/mall/tiny/mbg/mapper/UmsAdminMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [/Users/songyuning/Downloads/mall-learning-master 2/mall-tiny-06/target/classes/com/macro/mall/tiny/mbg/mapper/PmsBrandMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [/Users/songyuning/Downloads/mall-learning-master 2/mall-tiny-06/target/classes/com/macro/mall/tiny/mbg/mapper/PmsBrandMapper.xml]'. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.macro.mall.tiny.mbg.mapper.PmsBrandMapper.BaseResultMap

坑点找到了,照着这个教程布的es http://www.macrozheng.com/#/deploy/mall_deploy_docker
然后在安装中文分词器的时候elasticsearch-plugin install命令会漏一个config文件夹
手动用nc传到docker就可以正常运行了