栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

crowdFunding-RBAC练习(一)

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

crowdFunding-RBAC练习(一)

1. Maven项目只有pom类型可以被当做父项目继承。

  •  依赖父项目
    
        crowdFunding-parent
        com.my
        1.0-SNAPSHOT
        ../crowdFunding-parent/pom.xml
    
  •  依赖子项目
    
        com.my
        crowdFunding-common
        1.0-SNAPSHOT
    

2. classpath和classpath*区别

  • classpath:只会到class路径中查找文件,仅仅加载第一个classpath路径。
  • classpath*:不仅包含class路径,还会扫描所有这些JAR包及类路径下出现的同名文件。

3. web.xml配置命名时注意别搞混。

4. Maven项目war包运行时无法执行clean命令,需要先关闭tomcat或者任务管理器关闭进程。

Failed to clean project: Failed to delete D:CodedemocrowdFundingcrowdFunding-webtargetcrowdFunding-web-1.0-SNAPSHOTWEB-INFlibcrowdFunding-manager-1.0-SNAPSHOT.jar -> [Help 1]

5. mybatis报错:invalid types () or values ()

  • 实体类中的所有字段添加getter和setter方法。
  • 实体类需要无参的构造函数。
org.springframework.web.util.NestedServletException: Request processing failed; 
nested exception is org.mybatis.spring.MyBatisSystemException: 
nested exception is org.apache.ibatis.reflection.ReflectionException: 
Error instantiating class com.my.cf.bean.User with invalid types () or values (). 
Cause: java.lang.NoSuchMethodException: com.my.cf.bean.User.()

6. 路径以斜杠开头的相对路径,在不同的场景中,表示的相对位置会发生变化。

    例如:url : http://localhost:8080/webapp/test/test.html

        前台路径:;

                相当于=========相对服务器的根 : http://localhost:8080/sssss 

        后台路径:forward(”/user.jsp”)

                相当于=========相对web应用的根:http://localhost:8080/webapp/user.jsp

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/305563.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号