4 Star 5 Fork 0

AnyLine / anyline_demo

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

这是基于springmvc,mysql的demo,在myeclipe下开发的。在项目根目/help/目录下有一个相同的word

通过http://127.0.0.1/index访问

主要复制最后的测试SQL 输入图片说明

输入图片说明 输入图片说明 输入图片说明 输入图片说明

复制 jar包到 WEB-INF/lib下
Anyline需要的包 anyline_core.jar anyline_mysql.jar
以及spring springmvc的包 数据库的包 连接池的包 (分不青的就把demo里的jar全加入)
配置WEB-INF/web.xml添加springmvc支持
Config下添加配置文件 
applicationContext.xml(spring用的)
spring-mvc.xml(springMVC用的)
anyline-config.xml
key.xml(加密解密用的)
(注意第2张截图中添加的目录)

测试表


DROP TABLE IF EXISTS `member`;
CREATE TABLE `MEMBER` (
 CD int NOT NULL auto_increment,
 NM varchar(50),
 TEL varchar(20),
 AGE INT(2),
 BIRTHDAY varchar(20),
 PRIMARY KEY  (`CD`)
);


INSERT INTO MEMBER(NM,TEL,AGE,BIRTHDAY)VALUES('张三01','13100000001',20,'1990-01-11');
INSERT INTO MEMBER(NM,TEL,AGE,BIRTHDAY)VALUES('张三02','13100000002',20,'1990-01-21');
INSERT INTO MEMBER(NM,TEL,AGE,BIRTHDAY)VALUES('张三03','13100000003',20,'1990-01-31');
INSERT INTO MEMBER(NM,TEL,AGE,BIRTHDAY)VALUES('张三04','13100000004',20,'1990-01-10');
INSERT INTO MEMBER(NM,TEL,AGE,BIRTHDAY)VALUES('张三05','13100000005',20,'1990-11-01');
INSERT INTO MEMBER(NM,TEL,AGE,BIRTHDAY)VALUES('张三06','13100000006',20,'1990-11-01');
INSERT INTO MEMBER(NM,TEL,AGE,BIRTHDAY)VALUES('张三07','13100000007',20,'1990-12-01');
INSERT INTO MEMBER(NM,TEL,AGE,BIRTHDAY)VALUES('张三08','13100000008',20,'1990-12-11');
INSERT INTO MEMBER(NM,TEL,AGE,BIRTHDAY)VALUES('张三09','13100000009',20,'1990-01-11');
INSERT INTO MEMBER(NM,TEL,AGE,BIRTHDAY)VALUES('张三10','13100000010',20,'1990-01-12');
INSERT INTO MEMBER(NM,TEL,AGE,BIRTHDAY)VALUES('张三11','13100000011',20,'1990-01-13');

创建controller 这里需要extends AnylineController

Comments ( 2 )

Sign in for post a comment

About

springmvc或strut2 spread retract
Java
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
Java
1
https://gitee.com/anyline/anyline_demo.git
git@gitee.com:anyline/anyline_demo.git
anyline
anyline_demo
anyline_demo
master

Search