Giter VIP home page Giter VIP logo

courseselectionsystem's Introduction

简介

基于SpringBoot+SpringMVC+Druid+Hibernate的简单选课系统
基于Spring Security+JWT 实现 RESTful API 权限控制
基于Elasticsearch实现简单全文课程搜索   基于Spring-cache和Redis的缓存

技术栈

SpringBoot+SpringMVC+druid+Hibernate+Redis+SpringSecurity+JWT

编译运行  

mvn springboot:run

MySQL&Redis配置:

src/main/resources/application.properties
spring.datasource.url
spring.datasource.username
spring.datasource.password
spring.redis.host
spring.redis.password
spring.redis.port

Elasticsearch环境搭建

  • 安装Elasticsearch:

1.wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.4.4/elasticsearch-2.4.4.tar.gz
2.tar -xzvf elasticsearch-2.4.4.tar.gz -C /your/own/path
3.vi config/elasticsearch.yml :
network.host: 101.37..25,10.29..58,127.0.0.1
cluster.name: my-application

1.安装 ruby 和 rubygems(注意:需要 ruby 的版本在 1.8.7 以上) cd /usr/share/ vim Gemfile 修改 source 的值 为: "https://gems.ruby-china.org/" vim Gemfile.jruby-1.9.lock 找到 remote 修改它的值为:https://gems.ruby-china.org/
2./bin/logstash-plugin install --no-verify logstash-input-jdbc
3.写配置文件开始同步 vi xxx.conf 配置文件

  • 安装ik分词器:

下载ik分词器解压到elasticsearch/plugins/ik https://github.com/medcl/elasticsearch-analysis-ik
在线测试分词器: http://127.0.0.1:9200/_analyze?analyzer=ik&pretty=true&text=sojson在线工具

  • 启动Elasticsearch:

./bin/elasticsearch -Des.insecure.allow.root=true
或者使用后台方式进行启动./bin/elasticsearch -d -Des.insecure.allow.root=true

  • 启动 logstash:

bin/logstash -f xxx.conf
查看 elsatic logstash head http://localhost:9200/_plugin/head/

另外

此项目有配套的前端系统:前端项目传送地址

courseselectionsystem's People

Contributors

tiyh avatar

Watchers

 avatar  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.