Giter Club home page Giter Club logo

smartsearchbar's Introduction

SmartSearchBar

简介

使用Mybatis,Sevlet,Ajax开发一款仿百度的智能提示搜索框,使用Koltin代替java。

环境配置

  • Gradle: 4.4.1
  • Tomcat: 9.0.0
  • Kotlin: 1.2.30

开发工具

  • IntellJ IDEA

Gradle配置内容

group 'com.lq'
version '1.0-SNAPSHOT'

apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'war'

sourceCompatibility = 1.8

repositories {
    mavenCentral()
}

dependencies {
    testCompile group: 'junit', name: 'junit', version: '4.11'
    testCompile group: 'junit', name: 'junit', version: '4.12'

    // servlet -3.1.0
    compile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0'

    // mybatis -3.4.5
    compile group: 'org.mybatis', name: 'mybatis', version: '3.4.4'

    // pagehelper -5.1.2
    compile group: 'com.github.pagehelper', name: 'pagehelper', version: '5.1.2'

    // 日志记录 -1.7.25
    compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'

    // mysql -5.1.18
    compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.18'

    // fastjson -1.2.46
    compile group: 'com.alibaba', name: 'fastjson', version: '1.2.46'
    compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"


}
buildscript {
    ext.kotlin_version = '1.2.30'
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}
compileKotlin {
    kotlinOptions {
        jvmTarget = "1.8"
    }
}
compileTestKotlin {
    kotlinOptions {
        jvmTarget = "1.8"
    }
}

数据库设计

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for historyrecord
-- ----------------------------
DROP TABLE IF EXISTS `historyrecord`;
CREATE TABLE `historyrecord` (
  `id` int(10) unsigned zerofill NOT NULL AUTO_INCREMENT,
  `command` varchar(255) COLLATE utf8_bin NOT NULL,
  `createtime` varchar(255) COLLATE utf8_bin NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

-- ----------------------------
-- Records of historyrecord
-- ----------------------------

-- ----------------------------
-- Table structure for message
-- ----------------------------
DROP TABLE IF EXISTS `message`;
CREATE TABLE `message` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `COMMAND` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`ID`),
  KEY `indexCommand` (`COMMAND`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of message
-- ----------------------------
INSERT INTO `message` VALUES ('18', '一后');
INSERT INTO `message` VALUES ('17', '一哈');
INSERT INTO `message` VALUES ('16', '查 找  哈');
INSERT INTO `message` VALUES ('15', '查一个');
INSERT INTO `message` VALUES ('12', '查找');
INSERT INTO `message` VALUES ('1', '查看');
INSERT INTO `message` VALUES ('14', '查看你');
INSERT INTO `message` VALUES ('13', '看你');
SET FOREIGN_KEY_CHECKS=1;

项目展示

smartsearchbar's People

Contributors

isliqian avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.