GithubHelp home page GithubHelp logo

jiancai-back's Introduction

建材的后端系统

开发

java -jar

部署

ps -ef| grep java
kill -9 <pid>
cd /www/wwwroot/;
nohup java -jar jiancai-1.0.jar &
回车
tail -f java.out

未上传的文件

  • application.yml
  • application-basic.yml
  • application-dev.yml
  • ApiConst.java
spring:
  profiles:
    active: basic, prod # 注意:这里会被IDEA的profile配置所覆盖
spring:
  mail:
    host: 
    username: 
    password: 
  redis:
    host: 
    port: 
  aop:
    auto: true
server:
  port: 
server:
  servlet:
    session:
      persistent: true
      timeout: 0

spring:
  mail:
    host: smtp.163.com
    username: 
    default-encoding: UTF-8
    password: 

  datasource:
    url: jdbc:mysql://localhost:3306/建材数据库?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&useSSl=true
    username: 
    password: 
    driver-class-name: com.mysql.cj.jdbc.Driver
    type: com.alibaba.druid.pool.DruidDataSource
    druid:
      # 监控过滤器
      web-stat-filter:
        enabled: true
        exclusions:
          - "*.js"
          - "*.gif"
          - "*.jpg"
          - "*.png"
          - "*.css"
          - "*.ico"
          - "/druid/*"
      stat-view-servlet: # druid监控页面
        enabled: true
        url-pattern: /druid/*
        reset-enable: false
        login-username: 
        login-password: 
      filter:  # 状态监控
        stat:
          enabled: true
          db-type: mysql
          log-slow-sql: true
          slow-sql-millis: 2000
      initial-size: 5
      min-idle: 5
      max-active: 10
      filters:
        - stat
        - wall
        - log4j

  data:
    redis:
      repositories:
        enabled: false  # spring redis不知道你的repository类是给Redis的还是mysql的

  jpa:
    open-in-view: true # Could not write JSON: failed to lazily initialize a collection of role
    show-sql: false
    properties:
      hibernate:
        format_sql=true:

logging:
  level:
    oceans.dao: info
    oceans.dao.mapper: debug
package oceans.constant;

import java.util.Arrays;
import java.util.List;

public class ApiConst {
    // 高德地图 https://console.amap.com/dev/index
    public static final String GAODE_KEY = "";
    // 百度地图
    public static final String BAIDU_AK = "";
    // 七牛云图片
    public static final String QINIU_ACCESSKEY = "";
    public static final String QINIU_SECRETKEY = "";
    public static final String QINIU_BUCKET_ADMIN = "";
    public static final String QINIU_BUCKET_PUBLIC = "";
    public static final List<String> QINIU_BUCKET_LIST = Arrays.asList(
            "100jiancai-admin-image",
            "100jiancai-public-image"
    );
}

jiancai-back's People

Contributors

oceans-pro 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.