lyusantu
V2EX  ›  Java

请教一个 XML 解析为 JavaBean 的问题

  •  
  •   lyusantu · Jun 5, 2019 · 1899 views
    This topic created in 2577 days ago, the information mentioned may be changed or developed.
    通过 XStream 解析一段写死的固定 xml 内容,直接在 main 方面里面执行,是可以正常转换为实体对象的,但是启动项目之后,通过访问路由来解析这个 xml 的时候,就会抛出 throws java.lang.Exception,有没有有经验的帮忙分析下是什么问题~
    1 replies    2019-06-05 13:50:13 +08:00
    airfling
        1
    airfling  
       Jun 5, 2019
    你说你代码不贴,堆栈不放,谁知道你说的啥
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1252 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 23:53 · PVG 07:53 · LAX 16:53 · JFK 19:53
    ♥ Do have faith in what you're doing.