项目相关的坑【记录】

项目相关的坑【记录】

1.idea导入maven项目(ClassNotFoundException 也按照这个走一遍试试)

  • 确定依赖(项目很有可能依赖没写到pom文件中,要确认!)
  • 将少的依赖添加到pom里
  • install对应依赖
  • Reimport All Maven Projects
  • install本model

2.tomcat和其他文件夹一定不要有中文字符或者空格!!!!容易引起幽灵BUG!
tomcat没报错,但程序就是起不来,例子:

2018-1-29 16:49:35 org.apache.coyote.http11.Http11AprProtocol pause
未检测到unity_config.properties
信息: Pausing Coyote HTTP/1.1 on http-8081
2018-1-29 16:49:35 org.apache.coyote.ajp.AjpAprProtocol pause
信息: Pausing Coyote AJP/1.3 on ajp-8009
2018-1-29 16:49:36 org.apache.catalina.core.StandardService stop
INFO - Closing WebApplicationContext for namespace 'appServlet-servlet': startup date [Mon Jan 29 16:49:32 CST 2018]; parent: Root WebApplicationContext
INFO - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@dffe1: defining beans [org.springframework.web.servlet.config.viewControllerHandlerMapping,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,mainAction,sendPageAction,restfullRPCAction,protocolAction,timeTaskAction,outSideLoginAction,loginAction,regAction,logoutAction,lastMsgAction,blackRosterAction,cacheAction,ssoSysAction,attachmentFilesAction,restfullAttachmentAction,attachmentRegisterAction,uploadMediaAction,attachmentStoreAction,logModelDetailAction,logModelAction,restfullAuditAction,logOperationAction,auditController,auditRuleController,dictPubAction,dataItemAction,restfullDictAction,dataCateAction,restfullFundsAction,fundsTestAction,fundsAdminAction,pubSortInfoAction,pubOperateInfoAction,adminAction,restfullInfoAction,pubMetadataAction,restfullSeqAction,seqAction,restfullWcmAction,manuscriptAction,channelAction,memberController,memberRoleController,memberTypeController,memberWebController,restfullMemberAction,actAction,deptAction,lockAction,orgAction,restfullUctAction,roleAction,sysAction,uctAdminAction,userActAction,userAction,flowAutoTaskAction,restfullNetAction,restfullSbmAction,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.sprin

3.IDEA 的中文乱码

tomcat输出中文乱码可以调整tomcat的VM options

-Dfile.encoding=UTF-8

maven的中文乱码
在File->Setting->Maven->Runner 中,调整VM options

-Dfile.encoding=GB2312

你可能感兴趣的:(项目相关)