Giter VIP home page Giter VIP logo

medicine-backend's Introduction

1. 开发环境

  • JDK环境:JDK 11
  • 使用 Intellij IDEA 的 import 导入该项目
  • 使用 ./gradlew 执行 gradle 任务

2. 技术栈

  • Spring boot
  • Gradle
  • Spring MVC
  • Spring Security
  • Flyway

3. 初次运行

Start mysql

cd docker
docker-compose up -d

Create database

创建数据库的脚本位于src/resources/db/create_database.sql。

用支持PG的客户端,运行该文件即可创建数据库。

用client连接到数据库

mysql -p
密码在docker-compose.yml中

Ldap

login: http://0.0.0.0:5080/phpldapadmin
login DN: cn=admin,dc=pjhu,dc=org
login pass: 123
create user
  1. create ou "medicine"
  2. create group "medicine-admin"
  3. create user "jinhu peng"
ldap test
docker exec medicine-openldap ldapsearch -x -H ldap://localhost -b dc=pjhu,dc=org -D "cn=admin,dc=pjhu,dc=org" -w 123
git commit conventions

config username: use firstnamelastname config email: use thoughtworks email command like:

git config --global user.name 'pengjinhu'
git config --global user.email '[email protected]'

valid :[MEM-110] - create order valid:[MEM-120] - add spring security config valid(technical card)​:[TECH] - refactor create order invalid(no '-' )​: [MEM-110] refactor create order invalid(wrong car number)​: [110] - add strategy timeseries invalid(no message)​:[MEM-110] invalid(meaningless message)​:[MEM-108] - update

  • 代码的变化必须体现在测试用例中,不得提交没有测试覆盖的代码
  • 必须用git pull --rebase 同步代码
分布式锁

存储为hash, key为: LOCK::medicine:storage field:"8d836c0a-e6b7-4b84-8231-fb82a8bb43e8:78" 是uuid + thread-id value: "1"

cache

默认使用SimpleCacheConfiguration, 使用ConcurrentMapCacheManager 存储信息,没有过期时间 使用ConcurrentMapCache中ConcurrentMap保存数据,put写数据,使用lookup查找数据 需要使用CacheEvict移除

medicine-backend's People

Contributors

pjhu avatar

Watchers

James Cloos avatar  avatar

medicine-backend's Issues

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.