十一

网易云/B站/米游社全自动签到源码

作者: 十一 发布时间: 2022-03-16 1.41K 人阅读

源码下载: https://ajouter.lanzouy.com/i1vrm01ka5cj

注:源码文件为  auto_plan-autobuild.zip

教程:

将源码下载后上传至linux服务器的  /www/wwwroot  文件夹内,并解压。

在同目录下创建application.yml文件。在这个文件内添加代码:

  1. server:
  2. #服务器端口
  3. port: 26666
  4. spring:
  5. #数据库连接配置
  6. datasource:
  7. driver-class-name: com.mysql.cj.jdbc.Driver
  8. url: jdbc:mysql://127.0.0.1:3306/数据库名称?characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
  9. username: 数据库账号
  10. password: 数据库密码
  11. main:
  12. allow-bean-definition-overriding: true
  13. mvc: #静态文件
  14. static-path-pattern: /static/**
  15. # actable自动建表
  16. actable:
  17. table:
  18. auto: update
  19. model:
  20. #分号或者逗号隔开
  21. pack: com.oldwu.entity;com.oldwu.domain;com.netmusic.model;com.miyoushe.model
  22. database:
  23. type: mysql
  24. index:
  25. #自己定义的索引前缀#该配置项不设置默认使用actable_idx_
  26. prefix: INDEX_
  27. unique:
  28. #自己定义的唯一约束前缀#该配置项不设置默认使用actable_uni_
  29. prefix: INDEX_UNIQUE_
  30. # mybatis自有的配置信息,key也可能是:mybatis.mapperLocations
  31. mybatis-plus:
  32. global-config:
  33. db-config:
  34. id-type: auto
  35. #mapper配置文件
  36. mapper-locations: classpath:mapper/*.xml,classpath:mapper/**/*.xml,classpath*:com/gitee/sunchenbin/mybatis/actable/mapping/*/*.xml
  37. type-aliases-package: com.oldwu.entity
  38. #开启驼峰命名
  39. configuration:
  40. map-underscore-to-camel-case: true
  41. #输出mybatis日志
  42. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

在宝塔创建名为autosign的数据库,再把数据库的名称,账号,密码依次填入application.yml文件对应的地方。

然后在宝塔里面添加网站,使用的是Java项目,点击添加Java项目,进行如图配置即可。

项目jar的路径为/www/wwwroot/auto_plan.jar

端口为application.yml文件里的端口。

然后访问http://ip:端口/reg即可。

搬运

作者:苍穹

赞赏

微信赞赏支付宝赞赏

© 版权声明

1 评论

  1. 能出个青龙面板米游社的吗

发表回复