发表于: 2016-06-24 00:31:17

1 2126


今天完成的事情:


1.找到我自己仿照搭建的springmvc+maven+mybatis的不能用Tomcat跑起来的原因了,并及时解决了。


原因是因为我的部署项目的时候没有将tomcat的配置文件的中的deployment中Artfact添加项目,添加项目后就可以完全实现代码的功能。


2.学习师兄的日报,参考官网静态页面重新设计DB,mysql的语句如下:


  create database xztest4;
    use xztest4;  
    CREATE table profession
    (
    pid int auto_increment primary key comment '主键',
    pname varchar(50) not null comment '职业名称',
    create_at bigint comment '创建时间',
    update_at bigint comment '修改时间',
    qq_group varchar(20) comment '职业qq群',
    companpy_number int comment '求职企业数量',
    pro_threshold int comment '职业门槛',
    difficulty int comment '难易程度',
    introdution varchar(500) comment '职业简介',
    duties varchar(2000) comment '工作内容',
    skills varchar(2000) comment '所需技能',
    prospect varchar(500) comment '职业前景',
    acc_threshold varchar(500) comment '准入门槛',
    candidate varchar(200) comment '谁更合适',
    limitation varchar(500) comment '职业限制'
    )ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='IT修真院职业表'
    
    create table class
    (
    cid int auto_increment primary key comment '主键',
    ctype varchar(10) not null comment '班级类型(线上或线下)',
    cno int  not null comment'班级编号',
    snumber int comment '学员数量',
    create_at bigint comment '创建时间',
    update_at bigint comment '修改时间',
    pid int comment '所属职业id',
    monitor_id int comment '首席弟子id',
    manifesto varchar(500) comment '班级宣言',
    CONSTRAINT  FK_CLASS_PID FOREIGN KEY (pid) REFERENCES profession(pid)
    )ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='IT修真院班级表'
    
    create table user
    (
    uid int auto_increment primary key comment '主键',
    uname varchar(50) not NULL comment '用户名',
    password varchar(200) not null comment '密码',
    phone_number bigint not null comment '手机号',
    create_at bigint comment '注册时间',
    update_at bigint comment '修改时间'
    )ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='IT修真院用户表'
    
    create table student
    (
    sid int auto_increment primary key comment '主键',
    sno int comment '学号',
    cid int not null comment '班级id',
    uid int not null comment '用户id',
    create_at bigint comment '入学时间',
    update_at bigint comment '修改时间',
    manifesto varchar(500) comment '入学宣言',
    qq varchar(20) comment 'qq号',
    CONSTRAINT FK_STUDENT_CID FOREIGN KEY(cid) REFERENCES class(cid),
    CONSTRAINT FK_STUDENT_UID FOREIGN KEY(uid) REFERENCES user(uid)
    )ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='IT修真院学生表'


建表如下:


今天对于表建完后的“ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='IT修真院学生表'“查询了一下,意思如下:


ENGINE=InnoDB 数据库存储引擎
DEFAULT 默认
CHARSET=utf8 数据库字符编码为utf-8

COMMENT='IT修真院学生表'备注


3.联系线上做完task4跟5的师兄,要到了源码,然后在本地的idea中部署发布了。


第一次启动的时间比较长,页面如下:




明天计划的事情:


参考师兄的项目将项目自己搭一遍。


遇到的问题:


导入项目时发现web.xml下的applicationContext.xml的路径配置文件报红,一直没有找到原因,但是不影响项目的执行,明天再自己搭建一遍试试看。



收获:


学会了解决tomcat配置项目的部署文件问题。


建相对复杂的mysql语句。





返回列表 返回列表
评论

    分享到