jjzjj

Resolved

全部标签

java - Spring MVC : No handler found for correctly resolved JSP

我编写了一个简单的SpringMVC应用程序,它有一个映射到URL的Controller方法:@RequestMapping(method=RequestMethod.GET,value="/person_list")publicModelAndViewgetPersonList(){//getthelistofallpersonsfromthedatabaseandsetthisastheonlymemberofourmodelmapListpersonList=personDao.list();Mapmodel=newHashMap();model.put("person_list

java - 获取以下构建错误 : "the type {---} cannot be resolved. it is indirectly referenced from required .class files"

因此,我在Eclipse(Java)中进行了以下设置:我有一个项目(我们称之为“项目1”),它提供了一个接口(interface)(包私有(private))我有另一个项目(“项目2”),其中包含项目1的包...此包中的类扩展了“项目1”中的包私有(private)接口(interface),并提供了一个很好的公共(public)接口(interface)。现在,我有引用“项目2”的“项目3”。项目3然后使用项目2中提供的公共(public)对象。在项目3中调用项目2的构造函数后,我得到以下信息:“无法解析类型{---}。它是从所需的.class文件中间接引用的”如果我从项目3添加对项

java - 碧 Jade 报告 : JRBeanCollectionDataSource cannot be resolved to a type

我在iReports中构建图表,当我在Eclipse中编译时出现以下错误:net.sf.jasperreports.engine.JRException:Errorswereencounteredwhencompilingreportexpressionsclassfile:1.net.sf.jasperreports.engine.JRBeanCollectionDataSourcecannotberesolvedtoatypevalue=newnet.sf.jasperreports.engine.JRBeanCollectionDataSource(((java.lang.Str

java - Java 导入语句错误 "The import javax.validation.constraints.NotNull cannot be resolved"

在开发Springroo项目后,发现类中有如下错误:Theimportjavax.validation.constraints.NotNullcannotberesolvedNotNullcannotberesolvedtoatype我正在使用STS3.1.0.RELEASE如何解决这个问题? 最佳答案 我遇到了同样的问题。我发现最新版本的SpringBoot需要单独的验证依赖项。我尝试在pom.xml文件中添加以下依赖项并且它起作用了。org.springframework.bootspring-boot-starter-vali

java - 为什么我会收到错误 "File cannot be resolved to a type"?

这是我的部分代码try{BufferedReaderin=newBufferedReader(newInputStreamReader(System.in));while((line=in.readLine())!="exit"){System.out.println("Entercommand");line=in.readLine();CommandcurrentCommand=newCommand(line);FilecurrentFile=newFile(currentCommand.getLsPath());currentCommand.getLsPath()方法返回一个字符串

java - 在 spring java 程序中获取消息 "The type org.aopalliance.aop.Advice cannot be resolved."

我正在尝试从此页面设置springAOP示例:http://www.javabeat.net/articles/51-introduction-to-springs-aspect-oriented-programminga-4.html我使用EclipseIndigo作为我的开发环境。在这些方面:publicclassLogAfterThrowsAdviceimplementsThrowsAdvice{publicclassLogAfterReturningAdviceimplementsAfterReturningAdvice{publicclassLogBeforeCallAdvi

java - "Import cannot be resolved"与 JSP

我正在尝试从JSP页面调用Java类。我使用JDeveloper创建了项目。我收到一条错误消息,提示“无法解析导入”。我在WEB-INF根目录下添加了Class文件,尝试编译,还是报同样的错误。代码如下: 最佳答案 您应该为您的类(class)提供完全合格的名称。(包名.类名)喜欢: 关于java-"Importcannotberesolved"与JSP,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com

java - 我需要在 Eclipse 项目中配置什么来修复不正确的 “The import XXX cannot be resolved”

我正在关注这个ContractfirstusingCXF教程。一切进展顺利,包括使用build-helper-maven-plugin从WSDL生成源代码,但到了“实现服务”的时候,即移动生成的RegistryResourceImpl。java到正常的源文件夹src/main/java,Eclipse开始提示一些符号(比如接口(interface)RegistryResource)没有被识别。意识到正常的src/main/java文件夹被分配了一个不同的包名称,我只是在RegistryResourceImpl.java中添加了包的导入,其中RegistryResource.java属于

java - 切换到 4.0.1 版本后 "JavaMailSenderImpl cannot be resolved to a type"

我用3.1.1框架版本开发了SpringMVC应用,现在我想切换到4.0.1。我正在使用Maven来处理所有依赖项。因此,当我更改pom.xml中的版本时,出现编译错误JavaMailSenderImplcouldnotberesolvedtotype。此外,我无法在jars中找到包org.springframework.mail.javamail.JavaMailSenderImpl。但是从文档看来,这个包在最新版本中没有被删除。我尝试再次清理项目和建筑,但没有帮助我。那么知道我在这里做错了什么吗?ThisistheURLtodocs下面是pom.xml的部分-4.1.3.Final

java - JPA 多对多关系 "JoinColumn cannot be resolved to a type"错误

我正在使用Springboot并尝试在用户和技能之间实现多对多关系。我有一个包含user_id和skill_id列的users_skills表。尝试实现关系时,我在STS中的@JoinColumn注释中不断收到“JoinColumn无法解析为类型”错误。下面是我的用户类@Entity@Table(name="users")publicclassUser{@Id@GeneratedValue(strategy=GenerationType.IDENTITY)privatelongid;privateStringemail;privateStringfirstName;privateStr