MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    用SpringBoot写mirai机器人发生的依赖错误

    开发交流
    1
    1
    87
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Red_A last edited by

      首先是代码,上传在github上了
      主程序:https://github.com/RedShameA/miraiSP
      插件示例:https://github.com/RedShameA/pluginTest
      要运行起程序来可能需要在配置文件配置一下数据库连接和插件目录

      问题是当打包后没在idea里(我在linux机)运行的时候,只要放入了插件,就会报错java.lang.NoClassDefFoundError: net/mamoe/mirai/message/data/Message
      定位到是在Object instance = aClass.getDeclaredConstructor().newInstance();
      这句代码产生的错误。
      所以像这种错误是应该怎么解决呢

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact