AsWinds / superman-base

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

superman

Architecture

后端架构图

  • codi-base
  • Servlet 3.0
  • Tomcat 8.5.39
  • Redis
  • MySQL
  • Spring
  • SpringMVC
  • Spring-Session

Developer Usage

  • pom.xml
<dependency>
    <groupId>com.codi</groupId>
    <artifactId>superman-base</artifactId>
    <version>x.x.x</version>
</dependency>
  • 执行SQLsql/superman-base.sql sql/superman-base-init.sql
  • 配置springmvc.xml 扫描controller
<context:component-scan base-package="com.codi.superman.*.controller" use-default-filters="false">
  • spring-application.xml 扫描mybatis文件
    <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
        <property name="dataSource" ref="dataSource"/>
        <property name="typeAliasesPackage" value="${SPRING_MYBATIS_TYPE_ALIASES_PACKAGE}"/>
        <property name="mapperLocations" value="${SPRING_MYBATIS_MAPPER_LOCATIONS}"/>

About

License:MIT License


Languages

Language:Java 99.9%Language:Shell 0.1%Language:Batchfile 0.1%