maven 的spring mvc项目,can not resolve class 'org.springframework.web.servlet.DispatcherServlet'

因为一次死机, 重启了电脑, 然后项目代码一直跑不了, 于是我觉得去git上拉下来项目。

项目是 maven 的spring mvc + mybatis项目, import进入idea后, 在web.xml文件里,org.springframework.web.servlet.DispatcherServlet 的这个标签一直是红色的找不到, 试过了maven clean , rebuild,都不好使,想问大家怎么解决。 POM.XML包没有报错,就是项目一直跑不起来, 在build的时候就有问题。
图片说明

4个回答

检查下settings.xml这个文件仓库地址设置是否可以正常拉包,pom看下包的配置是否有冲突?
用下面这个试试

<!-- https://mvnrepository.com/artifact/org.springframework/org.springframework.web.servlet -->
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>org.springframework.web.servlet</artifactId>
    <version>3.1.0.RELEASE</version>
</dependency>
maven仓库地址:https://mvnrepository.com/artifact/org.springframework/org.springframework.web.servlet/3.1.0.RELEASE
其他版本也可以试试。
weixin_41063318
weixin_41063318 好的谢谢 ,我发现是在pom.xml <project>标签上有个<xml>标签, 我删掉了xml就 可以自动导入了,不知道为什么。。。
4 个月之前 回复

pom下的包的版本是不是过低过着过高,以及本地仓库的问题

weixin_41063318
weixin_41063318 好的谢谢 ,我发现是在pom.xml <project>标签上有个<xml>标签, 我删掉了xml就 可以自动导入了,不知道为什么。。。
4 个月之前 回复

ide都报错了,说程序包不存在,那就是真的在编译时没找到这个包撒,要么就是你的这个包在本地仓库真的没有,要么就是你的< provide >runtime< /provide >是不是这样,这个属性很重要,设置错了,有可能就找不到包,具体该设什么值,网上有很多教程,另外一种可能就是包冲突,这种也是比较烦。

weixin_41063318
weixin_41063318 好的谢谢 ,我发现是在pom.xml <project>标签上有个<xml>标签, 我删掉了xml就 可以自动导入了,不知道为什么。。。
4 个月之前 回复

是在pom.xml 标签上有个标签, 我删掉了xml就 可以自动导入了,不知道为什么。。。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
maven搭建spring mvc项目
maven搭建spring mvc项目
maven + spring mvc + hibernate 项目
maven + spring mvc + hibernate 项目,本项目实现了数据库的增加、删除、修改、查询。还实现了用户登录、注册、分页等功能。非常适合刚学spring mvc3初学者和有一定基础的爱好者。
老提示:can not resolve symbol class Scanner
谁能告诉我为什么我用Scannerrn老提示:rncan not resolve symbol class Scannerrnrnrn是不是要导入什么东西?????????????rn
Spring无法加载问题:org.springframework.web.servlet.DispatcherServlet。。。
Spring版本为:spring-framework-3.2.2.RELEASErnrnrnrn错误信息如下:rnrnSEVERE: Servlet /CMS threw load() exceptionrnrnjava.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServletrnrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1664)rnrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)rnrn ......rnrnrnweb.xml文件中配置内容为:rnrnrnrn springServletrnrn org.springframework.web.servlet.DispatcherServletrnrn 1rnrn rnrn rnrn springServletrnrn *.htmlrnrn rnrnrnrn在网上搜了下原因,看到有的没有引入spring包,或者是否是类不存在的,我都仔细检查了,确实存在rnrnrn还有个说代理的问题,但是我不了解代理是什么意思,怎么检查呢?rnrnrn项目图如下:rn[img=http://img.my.csdn.net/uploads/201304/06/1365260171_3432.jpg][/img]rnrn
spring报错org.springframework.web.servlet.DispatcherServlet noHandlerFound
web.xml配置:rnrn rn vsitestrn org.springframework.web.servlet.DispatcherServletrn 1rn rn rn rn rn vsitestrn *.htmrn rnrnvsitest-servlet.xml配置:rnrnrnrn rn rn rn listUserControllerrn listUserControllerrn rn rn rnrn rnrn rn rn rn rn listUserrn checkLoginrn rn rn rn rn rn rnrn页面通过url /listUser.htm 一直报错rnrnrn2011-11-16 16:05:54 org.springframework.web.servlet.DispatcherServlet noHandlerFoundrn警告: No mapping for [/hy2/views/listUser.htm] in DispatcherServlet with name 'vsitest'
maven + spring mvc + hibernate 项目源码下载.zip
maven + spring mvc + hibernate 项目源码下载.zip
maven、spring mvc、hibernate 项目源码下载
maven、spring mvc、hibernate 项目源码下载
Intelij 2017 下基于maven 的 spring MVC项目
Intelij 2017 新建的maven项目,在pom.xml中配置相应的jar包,实现的简单的hello word项目
Spring MVC mybatis + maven 项目配置文件报错
[img=https://img-bbs.csdn.net/upload/201312/24/1387867430_621318.png][/img][img=https://img-bbs.csdn.net/upload/201312/24/1387867421_315198.png][/img]小弟小白, 看着网上的教程一步一步建完了项目结果配置文件报错了。。。求教啊。rnjunit测试也不通过。 教程上面都OK 我一步也没漏怎么就不行了馁。。。rn
用maven创建Spring mvc项目
一、前期准备 1.下载jdk1.8,并安装,配置环境变量 2.下载maven,(我用的版本是3.5.0 )并解压到文件夹下D:\java\apache-maven-3.5.0; 3.新建一个文件夹作为本地仓库:D:\java\repository 打开D:\java\apache-maven-3.5.0\conf下的setting.xml并进行修改: 1).新增 D:/java/repo
Can't resolve "Hello"...
我用JBuilder的EJB2.0 Designer产生一个名为Hello的Ejbrn(Stateless session bean),按照<>rn所示代码录入,然后用Client wizard产生客户端代码,rn却总是出现如题的错误提示;rn  另外,我按照Oreilly出版社的<>rn所示代码测试Ejb 1.X 也出现Can't rosolve...的提示;rn  我曾经在CSDN上咨询过,各位高手都提醒我查看rnweblogic-ejb-jar.xml中的jndi标签,但中的名字和rnlookup()对象名并没有错,我错在哪里呢?这个问题几个月来一直rn是我学习Ejb的拦路虎,help!!!rnrn我的环境:Win2000 SP3, JBuilder7.0 + Weblogic7
No one can resolve this Problem???
Dear sir/madam: rnI have written some codes to implement upload file with big size,but it can't work,why?please give me a hand,thanks anyway! rnrn/////////////////the code///////////////// http://support.microsoft.com/support/kb/articles/Q184/3/52.ASPrnrnPrivate Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" (ByVal sAgent As String, _ rnByVal lAccessType As Long, ByVal sProxyName As String, _ rnByVal sProxyBypass As String, ByVal lFlags As Long) As Long rnPrivate Declare Function InternetConnect Lib "wininet.dll" _ rnAlias "InternetConnectA" (ByVal hInternetSession As Long, _ rnByVal sServerName As String, ByVal nServerPort As Integer, _ rnByVal sUsername As String, ByVal sPassword As String, _ rnByVal lService As Long, ByVal lFlags As Long, _ rnByVal lContext As Long) As Long rnPrivate Declare Function HttpOpenRequest Lib "wininet.dll" Alias "HttpOpenRequestA" _ rn(ByVal hHttpSession As Long, ByVal sVerb As String, ByVal sObjectName As String, ByVal sVersion As String, _ rnByVal sReferer As String, ByVal something As Long, ByVal lFlags As Long, ByVal lContext As Long) As Long rnPrivate Declare Function HttpSendRequest Lib "wininet.dll" Alias "HttpSendRequestA" (ByVal _ rnhHttpRequest As Long, ByVal sHeaders As String, ByVal lHeadersLength As Long, ByVal sOptional As String, ByVal lOptionalLength As Long) As Integer rnrnPrivate Declare Function InternetWriteFile Lib "wininet.dll" _ rn(ByVal hFile As Long, ByVal sBuffer As Long, _ rnByVal lNumberOfBytesToRead As Long, _ rnlNumberOfBytesRead As Long) As Integer rnrnPrivate Const INTERNET_OPEN_TYPE_PRECONFIG = 0 rnPrivate Const INTERNET_OPEN_TYPE_DIRECT = 1 rnPrivate Const INTERNET_OPEN_TYPE_PROXY = 3 rnrnrnPrivate Const INTERNET_INVALID_PORT_NUMBER = 0 '// use the protocol-specific default rnrnPrivate Const INTERNET_DEFAULT_FTP_PORT = 21 ' // default for FTP servers rnPrivate Const INTERNET_DEFAULT_GOPHER_PORT = 70 ' // " " gopher " rnPrivate Const INTERNET_DEFAULT_HTTP_PORT = 80 ' // " " HTTP " rnPrivate Const INTERNET_DEFAULT_HTTPS_PORT = 443 rnrnPrivate Const INTERNET_SERVICE_URL = 0 rnPrivate Const INTERNET_SERVICE_FTP = 1 rnPrivate Const INTERNET_SERVICE_GOPHER = 2 rnPrivate Const INTERNET_SERVICE_HTTP = 3 rnrnPrivate Const INTERNET_FLAG_NO_CACHE_WRITE = &H4000000 rnrnrnPrivate Const HSR_ASYNC = &H1 ' // force async rnPrivate Const HSR_SYNC = &H4 ' // force sync rnPrivate Const HSR_USE_CONTEXT = &H8 rnPrivate Const HSR_INITIATE = &H8 ' // iterative operation (completed by HttpEndRequest) rnPrivate Const HSR_DOWNLOAD = &H10 ' // download to file rnPrivate Const HSR_CHUNKED = &H20 ' // operation is send of chunked data rnrnrnrnPrivate Const BUFFSIZE = 500 rnrnPrivate Type INTERNET_BUFFERS rndwStructSize As Long rnNext As Long rnlpcszHeader As Long rndwHeadersLength As Long rndwHeadersTotal As Long rnlpvBuffer As Long rndwBufferLength As Long rndwBufferTotal As Long rndwOffsetLow As Long rndwOffsetHigh As Long rnEnd Type rnrnPrivate Declare Function HttpSendRequestEx Lib "wininet.dll" Alias "HttpSendRequestExA" (ByVal hRequest As Long, ByVal lpBuffersIn As Long, ByVal lpBuffersOut As Long, ByVal dwFlags As Long, ByVal dwContext As Long) As Long rnPrivate Declare Function HttpEndRequest Lib "wininet.dll" Alias "HttpEndRequestA" (ByVal hRequest As Long, lpBuffersOut As Long, ByVal dwFlags As Long, ByVal dwContext As Long) As Long rnPrivate Declare Function InternetCloseHandle Lib "wininet.dll" (ByVal hInet As Long) As Long rnPrivate Declare Function FillMemory Lib "KERNEL32.DLL" Alias "RtlFillMemory" ( _ rnDestination As Any, _ rnByVal Length As Long, _ rnFill As Byte) As Long rnPrivate Type SECURITY_ATTRIBUTES rnnLength As Long rnlpSecurityDescriptor As Long rnbInheritHandle As Long rnEnd Type rnPrivate Declare Function CreateFile Lib "kernel32" _ rnAlias "CreateFileA" _ rn(ByVal lpFileName As String, _ rnByVal dwDesiredAccess As Long, _ rnByVal dwShareMode As Long, _ rnByVal lpSecurityAttributes As Long, _ rnByVal dwCreationDisposition As Long, _ rnByVal dwFlagsAndAttributes As Long, _ rnByVal hTemplateFile As Long) _ rnAs Long rnPrivate Const GENERIC_READ = &H80000000 rnPrivate Const FILE_SHARE_READ = &H1 rnrnPrivate Const OPEN_EXISTING = 3 rnrnPrivate Const FILE_ATTRIBUTE_NORMAL = &H80 rnrnPrivate Const INVALID_HANDLE_VALUE = -1 rnPrivate Declare Function GetFileSize Lib "kernel32" (ByVal hFile As Long, lpFileSizeHigh As Long) As Long rnPrivate Type OVERLAPPED rnInternal As Long rnInternalHigh As Long rnoffset As Long rnOffsetHigh As Long rnhEvent As Long rnEnd Type rnrnPrivate Declare Function ReadFile Lib "kernel32" (ByVal hFile As Long, lpBuffer As Any, ByVal nNumberOfBytesToRead As Long, lpNumberOfBytesRead As Long, ByVal lpOVERLAPPED As Long) As Long rnPrivate Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long rnrnrnrnPrivate Sub PostFile(strServer As String, strLocalFile As String, strURL As String, Optional strUser As String, Optional strPass As String) rnDim hSession, hConnect, hRequest As Long rnrnhSession = InternetOpen("HttpSendRequestEx", INTERNET_OPEN_TYPE_PRECONFIG, vbNullString, vbNullString, 0) rnIf hSession = 0 Then rnExit Sub rnEnd If rnhConnect = InternetConnect(hSession, strServer, INTERNET_DEFAULT_HTTP_PORT, strUser, strPass, INTERNET_SERVICE_HTTP, 0&, 0&) rnIf hConnect = 0 Then rnExit Sub rnEnd If rnhRequest = HttpOpenRequest(hConnect, "POST", strURL, vbNullString, vbNullString, 0&, INTERNET_FLAG_NO_CACHE_WRITE, 0) rnIf hRequest Then rnCall UseHttpSendReqEx(hRequest, strLocalFile) rnEnd If rnCall InternetCloseHandle(hRequest) rnCall InternetCloseHandle(hConnect) rnCall InternetCloseHandle(hSession) rnEnd Sub rnrnPrivate Function UseHttpSendReqEx(hRequest As Long, strUpFile As String) As Boolean rnrnDim BufferIn As INTERNET_BUFFERS rnDim BufferOut As INTERNET_BUFFERS rnDim pp As INTERNET_BUFFERS rnDim res As Long rnDim dwBytesWritten As Long rnDim MaxTimes As Integer rnDim pBuffer(1024) As Byte rnDim bRet As Boolean rnDim lngReservedSize As Long rnDim hFile As Long rnDim Sum As Long rnDim bRead As Long rnDim lpSA As SECURITY_ATTRIBUTES rnDim lpOVERLAPPED As OVERLAPPED rnDim lngFileSize As Long rnrnhFile = CreateFile(strUpFile, GENERIC_READ, FILE_SHARE_READ, 0&, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0&) rnrnrnIf hFile = INVALID_HANDLE_VALUE Then rnMsgBox "Error to open Upfile!" rnExit Function rnEnd If rnlngFileSize = GetFileSize(hFile, 0&) rnrnBufferIn.dwStructSize = Len(INTERNET_BUFFERS) rnBufferIn.dwBufferTotal = lngFileSize rnBufferIn.dwBufferLength = 0 rnBufferIn.dwHeadersLength = 0 rnBufferIn.dwHeadersTotal = 0 rnBufferIn.dwOffsetHigh = 0 rnBufferIn.dwOffsetLow = 0 rnBufferIn.lpcszHeader = 0& rnBufferIn.lpvBuffer = 0& rnBufferIn.Next = 0& rnrnres = HttpSendRequestEx(hRequest, VarPtr(BufferIn), VarPtr(BufferOut), HSR_INITIATE, 0&) rnIf res = 0 Then rnMsgBox "error to HttpSendRequestEx!" rnExit Function rnEnd If rnrnrnSum = 0 rnDo rnrnbRead = ReadFile(hFile, pBuffer(0), 1024, dwBytesRead, 0&) rnrnIf bRead = 0 Then rnMsgBox "Error Read File!" rnExit Function rnEnd If rnrnrnbRet = InternetWriteFile(hRequest, VarPtr(pBuffer(0)), dwBytesRead, dwBytesWritten) rnIf bRet = False Then rnMsgBox "Error InternetWrite File!" rnExit Function rnEnd If rnSum = Sum + dwBytesRead rnrnLoop Until Sum = lngFileSize rnrnCall CloseHandle(hFile) rnrnrnrnCall HttpEndRequest(hRequest, 0&, 0, 0) rnrnrnEnd Function rnrnPrivate Sub Command1_Click() rnCall PostFile("127.0.0.1", "c:\netlog.txt", "/test.htm") rnEnd Sub rnrnrn///////////////////////end of code/////// rnrnif you find the answer,please contact with me,my email is Qixh@neusoft.com,thanks again!rnrn
spring mvc 关于maven
最近在学spring mvc 想用maven搭建一个spring mvc 的框架 请问下rn搭建的时候用eclipse开发好 还是Myeclipse 开发好。rn如果用Myeclipse的话 该怎么搭建spring mvc的框架呢
Spring MVC maven第二例
NULL 博文链接:https://jiaozhiguang-126-com.iteye.com/blog/1843208
基于Maven的spring mvc
基于Maven搭建的spring mvc 标准配置,使用到拦截器等spring mvc的基本应用
maven与spring MVC
使用MAVEN 结合SPRING DWR hiberante validation
Spring MVC Maven
一个简单的SPRING MVC MAVEN 空框架,分享给大家一起用
SpringMVC项目显示:cannot resolve class PropertyPlaceholderConfigurer
我使用的是IntelliJ Idea,在配置SpringMVC项目时制作applicationContext.xml时候为读取properties配置了下面的:rn[code=xml] rnrn rn rn rn classpath:settings.propertiesrn rn rnrn[/code]rnIDE在PropertyPlaceholderConfigurer处显示红色提示:cannot resolve class 'PropertyPlaceholderConfigurer' ...rn并且ignoreUnresolvablePlaceholders显示红色rnlocations也显示红色,如下图:rn[img=https://img-bbs.csdn.net/upload/201810/22/1540222609_809673.png][/img]rn整个applicationContext.xml的代码如下:rn[code=xml]rnrnrnrnrn rn rn rn rn classpath:settings.propertiesrn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rnrnrn rn rn rn rn rnrnrn rn rn rn rn rnrn rn rn rn rn rnrn rn rn rn rn rn rnrn rn rn rnrn[/code]rn下面是我的pom.xml文件的所有代码:rn[code=xml]rnrnrn 4.0.0rnrn com.ccSoftrn gpmrn 1.0-SNAPSHOTrnrn rn rn 4.3.10.RELEASErn rnrn rn rn junitrn junitrn 3.8.1rn testrn rnrn rn rn org.springframeworkrn spring-beansrn $springframework.versionrn rnrn rn org.springframeworkrn spring-contextrn $springframework.versionrn rnrn rn rn org.springframeworkrn spring-webrn $springframework.versionrn rn rn org.springframeworkrn spring-webmvcrn $springframework.versionrn rn rn org.springframeworkrn spring-jdbcrn $springframework.versionrn rnrn rn rn org.mybatisrn mybatisrn 3.4.0rn rn rn org.mybatisrn mybatis-springrn 1.2.3rn rnrn rn rn com.alibabarn druidrn 1.0.20rn rnrn rn rn mysqlrn mysql-connector-javarn 5.1.30rn rnrn rn rn org.projectlombokrn lombokrn 1.16.12rn rnrn rn rn com.fasterxml.jackson.datatypern jackson-datatype-guavarn 2.5.3rn rnrnrn rn rn ch.qos.logbackrn logback-corern 1.1.8rn rn rn ch.qos.logbackrn logback-classicrn 1.1.8rn rn rn org.slf4jrn slf4j-apirn 1.7.22rn rnrn rnrnrn[/code]rnrn要说明的是文件settings.properties是有的,并且放在src/main/resources下,其中链接DB的参数配置是测试过的rn那么要如何解决问题?
第一次使用Spring MVC,找不到resolve的页面?
工程名叫SpringTest,用到spring框架和spring mvc,配置文件如下:rnrnweb.xmlrn[code=html]rnrnrn SpringTestrn rn rn springtestrn org.springframework.web.servlet.DispatcherServletrn 1rn rn rn rn contextConfigLocationrn rn classpath:springContext.xmlrn rn rn rn org.springframework.web.context.ContextLoaderListenerrn rnrnrn[/code]rnrnrnspringtest-servlet.xmlrnPS:这个文件还一直会提示rn[code=html]rnspringtest-servlet.xmlrnrnrn rn rn rn rn rn rn rn rnrn[/code]rnrn然后我建了个简单的测试页面和方法rn页面:home.jsp,直接放在WebContent目录下rn控制类:rn[code=java]rnpublic class WebControllerrn// @RequestMapping("/", "/home")rn// @RequestMapping(value="/", method=RequestMethod.GET)rn @RequestMapping(value="/")rn public String showHomePage(Model model)rn return "home";rn rnrn[/code]rn预想的结果是访问工程的默认路径,http://localhost:8080/SpringTest/,就应该可以跳转到home.jsp页面rn但是结果是一直找不到页面。。。rn新手诚心求解!
maven 搭建mvc项目
https://www.cnblogs.com/xiaoxiaoSMILE/p/6950542.html
spring jar包导入及找不到org.springframework.web.servlet.DispatcherServlet
在网上找到的spring的jar包全名是spring-3.2.0.M1.zip,解压后是个文件夹,目录如下rn[img=https://img-bbs.csdn.net/upload/201503/17/1426600909_161467.png][/img]rn我不知道怎么导入,就导入了libs目录下的所有jar包,如下rn[img=https://img-bbs.csdn.net/upload/201503/17/1426600977_899141.png][/img]rn是这么导入的吗?如果不是,文件夹格式的jar包要怎么导入呢?rnrnrn启动之后报错rnjava.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServletrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)rn at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:506)rn at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:488)rn at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:115)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1148)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5262)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5550)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnrn[img=https://img-bbs.csdn.net/upload/201503/17/1426601207_256978.png][/img]rn为什么会找不到这个类呢?是jar包没导对吗?rnrn附上web.xml代码rnrnrn rn springmvcrn rn org.springframework.web.servlet.DispatcherServletrn rn rn contextConfigLocationrn /WEB-INF/springmvc-servlet.xmlrn rn 1rn rn rn springmvcrn *.dorn rn
spring mvc中org.springframework.web.servlet.DispatcherServlet类的行文是怎么样的?
当在web.xml文件江.do后缀的请求交给org.springframework.web.servlet.DispatcherServlet后,他是怎样读取另外的xml文件还是有什么其他主要的行为,麻烦哪位仁兄给讲一下! 小弟感激涕零!
spring,spring mvc,mybatis,maven,mySql 项目框架
spring,spring mvc,mybatis,maven,mySql 项目框架
cannot resolve symbol :class
俺是JAVA新手 请大侠赐教:rn我的程序 运行报错rncannot resolve symbol :class Mainframernlocation: class .....rn好像是CLASSPATH有问题。rn我在LINUX下已经设定了 CLASSPATH ,其中有路径和rt.jat 和tools.jarrnrn我用:rnjavac -source Main.java rn出现以上错误rn
spring、 spring mvc、 mybatis、 maven、 mySql 项目框架
spring、 spring mvc、 mybatis、 maven、 mySql 项目框架
初学者的struts问题..提示can not resolve symbol:class MessageResourses
孙mm书上的第一个例子..在编译的时候出现一个错误rncan not resolve symbol:class MessageResoursesrn但我已经import org.apache.struts.util.MessageResources;rn第一次写struts,还请大家多多帮助rnrnpackage hello;rnrnimport javax.servlet.RequestDispatcher;rnimport javax.servlet.ServletException;rnimport javax.servlet.http.HttpServletRequest;rnimport javax.servlet.http.HttpSession;rnimport javax.servlet.http.HttpServletResponse;rnrnimport org.apache.struts.action.Action;rnimport org.apache.struts.action.ActionMessage;rnimport org.apache.struts.action.ActionMessages;rnimport org.apache.struts.action.ActionForm;rnimport org.apache.struts.action.ActionForward;rnimport org.apache.struts.action.ActionMapping;rnimport org.apache.struts.util.MessageResources;rnrnpublic final class HelloAction extends Actionrnrn public ActionForward execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response) throws Exceptionrn rn MessageResourses messages = getResources(request);rn ActionMessages errors = new ActionMessages();rn String userName = (String)((HelloForm)form).getUserName();rnrn String badUserName = "Monster";rnrn if(userName.equalsIgnoreCase(badUserName))rn rn errors.add("username",new ActionMessage("hello.dont.talk.to.monster",badUserName));rn saveErrors(request,errors);rn return(new ActionForward(mapping.getInput()));rn rnrn PersonBean pb = new PersonBean();rn pb.setUserName(userName);rn pb.saveToPersistentStore();rnrn request.setAttribute(Constants.PERSON_KEY,pb);rn request.removeAttribute(mapping.getAttribute());rnrn return (mapping.findForward("SayHello"));rn rn;
can not resolve symbol 错误(初学)
提示“can not resolve symbol”错误是有哪些地方出了问题啊?请指教,谢谢!
Who can resolve the issue?/ 100
input: 56/10/12 (DateTime)rnoutput 2056/10/12 (DateTime)rnno output: 1956/10/12;rnrnthanksrnrn
简单的spring mvc项目
spring mvc的简单地账号登陆及逻辑判断,涵盖了前台到后台以及配置文件的配置等。其中附有spring mvc的原理图。项目解压缩即可部署运行。
Spring MVC入门项目
这是学习Spring MVC时写的一个入门项目,初学者可以在eclipse上直接运行!
spring mvc项目
spring mvc 框架简答的一个项目,部署后可以直接运行(http://localhost:8080/springMVC/hello)
Spring MVC 项目Demo
用Spring MVC+MyBaits+Maven+Jetty+IntelliJ IDEA 12.0.4 +Mysql 搭建了一个项目。比较简单。供参考。
搭建 Spring MVC 项目
1、创建web项目 2、下载配置spring mvc的jar包 地址:https://repo.spring.io/libs-release-local/org/springframework/spring/  3、配置web.xml文档 &amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt; &amp;lt;web-app xmlns:xsi=&quot;h...
spring mvc项目启动报错
spring mvc 项目启动时候报这个错误rnjava.lang.NoSuchMethodError: org.springframework.web.context.support.XmlWebApplicationContext.getEnvironment()rnrnweb.xml的部分代码如下 rn[code=text] rn contextConfigLocation rn classpath*:config/beans.xml rn rn rn rn org.springframework.web.context.ContextLoaderListener rn rn rn org.springframework.web.context.ContextCleanupListener rn rn rn rn spring-mvc rn org.springframework.web.servlet.DispatcherServlet rn 1 rn rn rn spring-mvc rn / rn [/code] rnrnbeans.xml代码如下rn[code=text] rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn [/code]rnrn具体使用的jar包截图rn[img=https://img-bbs.csdn.net/upload/201409/01/1409555500_166122.png][/img]rnrn不知道是我引用的哪个包版本有问题,还是相关的xml文件配置写错了,求正解
Spring MVC超市项目
本资源是一个完整的超市订单系统的代码,并且有详细的注解。主要运用到SSM框架,以及MySQL数据库。
spring mvc项目总结
spring mvc aop
spring mvc 项目
一个简单的 spring mvc 项目,主要用于新手学习.本项目运用了spring mvc, mybatis,oracle相关技术
IDEA Spring MVC项目
IDEA配置好得Spring mvc 项目,下载导入可直接使用,谢谢下载!
spring mvc项目整合
最新 spring mybitates spring mvc
Spring MVC 项目快速搭建
Spring MVC 项目快速搭建 Spring MVC提供了一个DispatcherServlet来开发Web项目,在Servlet2.5及以下的时候,只要在web.xml中配置&amp;lt;servlet&amp;gt;元素即可。而Servlet3.0+在Spring MVC里实现WebApplicationInitializer接口便可实现等同于web.xml的配置。 下面将基于springBoot搭...
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池