03 图书管理系统(SSM+LayUi)

创建ssm项目工程

3.1 创建maven工程

  • 1、打开IDEA->file->new->project
  • 2、选择Maven,勾选Create from archetype,
    选择org.apache.maven.archetypes:maven-archetype-webapp

3.2 使用自己安装的maven

  • 更改Maven home directory
  • 更改User settings file(maven/conf/settings.xml)
  • 添加Properties{archetypeCatalog:internal}

3.3 加入maven依赖jar包

在pom.xml中导入依赖坐标




  4.0.0

  com.gychen
  libraryManagerSystem
  1.0-SNAPSHOT
  war

  libraryManagerSystem Maven Webapp
  
  http://www.example.com

  
    UTF-8
    1.8
    1.8
    5.1.3.RELEASE
    1.6.6
    1.2.12
    8.0.20
    3.4.5
  

  

    
    
      org.aspectj
      aspectjweaver
      1.6.8
    

    
      org.springframework
      spring-aop
      ${spring.version}
    

    
      org.springframework
      spring-context
      ${spring.version}
    

    
      org.springframework
      spring-web
      ${spring.version}
    

    
      org.springframework
      spring-webmvc
      ${spring.version}
    

    
      org.springframework
      spring-test
      ${spring.version}
    

    
      org.springframework
      spring-tx
      ${spring.version}
    

    
      org.springframework
      spring-jdbc
      ${spring.version}
    

    
    
      junit
      junit
      4.12
      compile
    

    
    
      mysql
      mysql-connector-java
      ${mysql.version}
    

    
      javax.servlet
      servlet-api
      2.5
      provided
    

    
      javax.servlet.jsp
      jsp-api
      2.0
      provided
    

    
      jstl
      jstl
      1.2
    

    
    
      log4j
      log4j
      ${log4j.version}
    

    
      org.slf4j
      slf4j-api
      ${slf4j.version}
    

    
      org.slf4j
      slf4j-log4j12
      ${slf4j.version}
    
    

    
    
      org.mybatis
      mybatis
      ${mybatis.version}
    

    
      org.mybatis
      mybatis-spring
      1.3.0
    

    
      c3p0
      c3p0
      0.9.1.2
      jar
      compile
    


  

  
    libraryManagerSystem
    
      
        
          maven-clean-plugin
          3.1.0
        
        
        
          maven-resources-plugin
          3.0.2
        
        
          maven-compiler-plugin
          3.8.0
        
        
          maven-surefire-plugin
          2.22.1
        
        
          maven-war-plugin
          3.2.2
        
        
          maven-install-plugin
          2.5.2
        
        
          maven-deploy-plugin
          2.8.2
        
      
    
  


3.4 完善目录结构

  • 在main文件夹下新建java和resources目录
  • 分别右击选择Mark Directory as
  • 点击Sources Root和Resources Root

3.5 目录进行分层

在main.java文件夹中新建目录如下
  • com.gychen.controller
  • com.gychen.dao
  • com.gychen.po
  • com.gychen.service
  • com.gychen.util

你可能感兴趣的:(03 图书管理系统(SSM+LayUi))