看一下Cool-Meeting项目 (本项目是适合新手或者大学毕设共同学习,需要源码可以点赞,回复)
一共有6张表.
开始环境搭建.
建设项目后,我们首先把webapp 加进来.
然后修改xml位置
把刚才拷贝的地址粘贴到后面去,然后点确定
这时候在看项目结构 是web的项目了
下一步添加依赖,可以去官网去或者github去拿,这里也可以直接在idea里搜索. Alt+insert
上面这种方法,有的时候,搜索不到,最直接的时候,还是去外面找依赖.
下面来配置spring和springmvc的配置
配置web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
<!--把spring和springmvc的配置加进来-->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name