qq_35447967 2018-08-20 12:56 采纳率: 25%
浏览 883
已结题

SSM框架搭建出现这问题

2018-08-20 20:10:59,620 [localhost-startStop-1] DEBUG [org.springframework.jndi.JndiLocatorDelegate] - Converted JNDI name [java:comp/env/spring.profiles.active] not

found - trying original name [spring.profiles.active]. javax.naming.NameNotFoundException: Name [spring.profiles.active] is not bound in this Context. Unable to find

[spring.profiles.active].
2018-08-20 20:10:59,620 [localhost-startStop-1] DEBUG [org.springframework.jndi.JndiTemplate] - Looking up JNDI object with name [spring.profiles.active]
2018-08-20 20:10:59,620 [localhost-startStop-1] DEBUG [org.springframework.jndi.JndiPropertySource] - JNDI lookup for name [spring.profiles.active] threw

NamingException with message: Name [spring.profiles.active] is not bound in this Context. Unable to find [spring.profiles.active].. Returning null.

  • 写回答

4条回答 默认 最新

  • qq_36871031 2018-08-20 13:28
    关注

    从控制到打印的logo看,项目的日志级别应该至少有DEBUG级别:log4j.rootLogger = DEBUG,console,file

    去配置文件中将debug级别换掉,或是用info。则不会再有此异常信息:log4j.rootLogger = info,console,file

    评论

报告相同问题?

悬赏问题

  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)