@Autowired
private RealNameAppleDao realNameAppleDao;
加上这两句话编译就报错
package com.newlife.service.impl;
import com.newlife.dao.RealNameAppleDao;
import com.newlife.model.RealNameApple;
import com.newlife.service.RealNameAppleService;
import org.apache.tomcat.util.http.fileupload.FileUtils;
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 org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import java.io.*;
import java.util.List;
/**
// @Override
public String addModel(RealNameApple realNameApple,MultipartFile file1,MultipartFile file2) {}
}
报错信息:Caused by: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1696)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
... 33 more
[2016-07-26 10:55:49,558] Artifact Gradle : newlife:NewLife : newlife.war: Error during artifact deployment. See server log for details.
26-Jul-2016 10:55:50.630 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\xiangmu\gongju\apache-tomcat-8.0.36\webapps\manager
26-Jul-2016 10:55:50.702 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\xiangmu\gongju\apache-tomcat-8.0.36\webapps\manager has finished in 71 ms
项目创建Dao对象时编译报错
@Autowired
privateRealNameAppleDaorealNameAppleDao;
加上这两句话编译就报错
packagecom.newlife.service.impl;
importcom.newlife.dao.RealNameAppleDao;
importcom.newlife.model.RealNameApple;
importcom.newlife.service.RealNameAppleService;
importorg.apache.tomcat.util.http.fileupload.FileUtils;
importorg.springframework.beans.factory.annotation.Autowired;
importorg.springframework.stereotype.Service;
importorg.springframework.transaction.annotation.Propagation;
importorg.springframework.transaction.annotation.Transactional;
importorg.springframework.web.bind.annotation.RequestMapping;
importorg.springframework.web.bind.annotation.RequestMethod;
importorg.springframework.web.multipar
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。