Code Monkey home page Code Monkey logo

sync-data's Introduction

spring boot下ebean orm 对mysql操作 和 spring data mongo数据操作

ebean 插件

#安装
https://ebean.io/docs/getting-started/intellij-idea

#idea启用插件
菜单 -> Build -> Ebean enhancement 勾选

docker安装mongo

docker run -d --network nets --name mongo -p 27017:27017 --restart=unless-stopped -v /etc/localtime:/etc/localtime -v /data/docker/mongodb/data:/data/db -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=123456 mongo

docker安装mysql

docker run --name mysql --restart=unless-stopped -v /etc/localtime:/etc/localtime -e MYSQL_ROOT_PASSWORD=123456 -p 3306:3306 -d mysql

mongo初始化

#创建数据库
use http_log
show dbs

#创建用户
use http_log
db.createUser({user:"log",pwd:"123456",roles:[{role:"dbOwner",db:"http_log"}]})

#项目运行创建data_http_log表

#查询 https://www.runoob.com/mongodb/mongodb-query.html
db.data_http_log.find()

#正则模糊查询 
db.data_http_log.find({"method":/异常/}).sort({_id:-1})

gemini

gemini:
  api-key: yourkey
  proxy-host: 127.0.0.1
  proxy-port: 7890

sync-data's People

Contributors

imayou avatar

Watchers

 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.