请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

新增部门的数据插不入数据库

数据插不入数据库

D:ServerTomcatapache-tomcat-9.0.20incatalina.bat run
[2019-12-03 11:38:55,669] Artifact permission:war exploded: Waiting for server connection to start artifact deployment...
Using CATALINA_BASE:   "C:UsersLenovo.IntelliJIdea2019.1system	omcatUnnamed_permission"
Using CATALINA_HOME:   "D:ServerTomcatapache-tomcat-9.0.20"
Using CATALINA_TMPDIR: "D:ServerTomcatapache-tomcat-9.0.20	emp"
Using JRE_HOME:        "D:Program FilesJavajdk1.8.0_121"
Using CLASSPATH:       "D:ServerTomcatapache-tomcat-9.0.20inootstrap.jar;D:ServerTomcatapache-tomcat-9.0.20in	omcat-juli.jar"
Connected to the target VM, address: '127.0.0.1:12303', transport: 'socket'
[GC (Allocation Failure) [PSYoungGen: 14848K->2040K(16896K)] 14848K->2378K(55296K), 0.2055159 secs] [Times: user=0.05 sys=0.00, real=0.28 secs] 
[GC (Allocation Failure) [PSYoungGen: 16888K->2024K(16896K)] 17226K->4170K(55296K), 0.0212274 secs] [Times: user=0.02 sys=0.00, real=0.02 secs] 
03-Dec-2019 11:39:34.036 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.鏈嶅姟鍣ㄧ増鏈:        Apache Tomcat/9.0.20
03-Dec-2019 11:39:34.107 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.鏋勫缓:          May 3 2019 22:26:00 UTC
03-Dec-2019 11:39:34.107 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.20.0
03-Dec-2019 11:39:34.108 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 10
03-Dec-2019 11:39:34.108 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.鐗堟湰:            10.0
03-Dec-2019 11:39:34.108 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log 缁.閫:          amd64
03-Dec-2019 11:39:34.108 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 鐜鍙橀噺:             D:Program FilesJavajdk1.8.0_121jre
03-Dec-2019 11:39:34.108 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM 鐗堟湰:           1.8.0_121-b13
03-Dec-2019 11:39:34.109 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.渚涘簲鍟:            Oracle Corporation
03-Dec-2019 11:39:34.109 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         C:UsersLenovo.IntelliJIdea2019.1system	omcatUnnamed_permission
03-Dec-2019 11:39:34.109 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         D:ServerTomcatapache-tomcat-9.0.20
03-Dec-2019 11:39:34.110 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:UsersLenovo.IntelliJIdea2019.1system	omcatUnnamed_permissionconflogging.properties
03-Dec-2019 11:39:34.110 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
03-Dec-2019 11:39:34.110 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:12303,suspend=y,server=n
03-Dec-2019 11:39:34.110 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -javaagent:C:UsersLenovo.IntelliJIdea2019.1systemcaptureAgentdebugger-agent.jar
03-Dec-2019 11:39:34.111 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+PrintGCDetails
03-Dec-2019 11:39:34.111 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
03-Dec-2019 11:39:34.111 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
03-Dec-2019 11:39:34.111 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
03-Dec-2019 11:39:34.111 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.password.file=C:UsersLenovo.IntelliJIdea2019.1system	omcatUnnamed_permissionjmxremote.password
03-Dec-2019 11:39:34.112 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.access.file=C:UsersLenovo.IntelliJIdea2019.1system	omcatUnnamed_permissionjmxremote.access
03-Dec-2019 11:39:34.112 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
03-Dec-2019 11:39:34.113 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
03-Dec-2019 11:39:34.113 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
03-Dec-2019 11:39:34.114 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
03-Dec-2019 11:39:34.115 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:UsersLenovo.IntelliJIdea2019.1system	omcatUnnamed_permission
03-Dec-2019 11:39:34.115 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=D:ServerTomcatapache-tomcat-9.0.20
03-Dec-2019 11:39:34.115 淇℃伅 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=D:ServerTomcatapache-tomcat-9.0.20	emp
03-Dec-2019 11:39:34.115 淇℃伅 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.21] using APR version [1.6.5].
03-Dec-2019 11:39:34.116 淇℃伅 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
03-Dec-2019 11:39:34.116 淇℃伅 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
03-Dec-2019 11:39:36.086 淇℃伅 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1a  20 Nov 2018]
[GC (Allocation Failure) [PSYoungGen: 16856K->2031K(16896K)] 19003K->6511K(55296K), 0.0140749 secs] [Times: user=0.03 sys=0.00, real=0.01 secs] 
03-Dec-2019 11:39:41.495 淇℃伅 [main] org.apache.coyote.AbstractProtocol.init 鍒濆鍖栧崗璁鐞嗗櫒 ["http-nio-8080"]
03-Dec-2019 11:39:41.668 淇℃伅 [main] org.apache.coyote.AbstractProtocol.init 鍒濆鍖栧崗璁鐞嗗櫒 ["ajp-nio-8009"]
03-Dec-2019 11:39:41.685 淇℃伅 [main] org.apache.catalina.startup.Catalina.load 鏈嶅姟鍣ㄥ湪[12,219]姣鍐呭垵濮嬪寲
03-Dec-2019 11:39:42.014 淇℃伅 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
03-Dec-2019 11:39:42.015 淇℃伅 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.20]
[GC (Allocation Failure) [PSYoungGen: 16683K->2024K(16896K)] 21163K->8266K(55296K), 0.0139891 secs] [Times: user=0.05 sys=0.00, real=0.01 secs] 
03-Dec-2019 11:39:42.080 淇℃伅 [main] org.apache.coyote.AbstractProtocol.start 寮濮嬪崗璁鐞嗗彞鏌刐"http-nio-8080"]
03-Dec-2019 11:39:42.141 淇℃伅 [main] org.apache.coyote.AbstractProtocol.start 寮濮嬪崗璁鐞嗗彞鏌刐"ajp-nio-8009"]
03-Dec-2019 11:39:42.150 淇℃伅 [main] org.apache.catalina.startup.Catalina.start Server startup in [464] milliseconds
Connected to server
[2019-12-03 11:39:42,694] Artifact permission:war exploded: Artifact is being deployed, please wait...
03-Dec-2019 11:39:52.093 淇℃伅 [Catalina-utility-2] org.apache.catalina.startup.HostConfig.deployDirectory 鎶妛eb 搴旂敤绋嬪簭閮ㄧ讲鍒扮洰褰 [D:ServerTomcatapache-tomcat-9.0.20webappsmanager]
[GC (Allocation Failure) [PSYoungGen: 16872K->2040K(16896K)] 23114K->10492K(55296K), 0.0153194 secs] [Times: user=0.05 sys=0.03, real=0.01 secs] 
[GC (Allocation Failure) [PSYoungGen: 16888K->4599K(19456K)] 25340K->13060K(57856K), 0.0178564 secs] [Times: user=0.00 sys=0.02, real=0.02 secs] 
03-Dec-2019 11:39:54.393 淇℃伅 [Catalina-utility-2] org.apache.jasper.servlet.TldScanner.scanJars 鑷冲皯鏈変竴涓狫AR琚壂鎻忕敤浜嶵LD浣嗗皻鏈寘鍚玊LD銆 涓烘璁板綍鍣ㄥ惎鐢ㄨ皟璇曟棩蹇楄褰曪紝浠ヨ幏鍙栧凡鎵弿浣嗘湭鍦ㄥ叾涓壘鍒癟LD鐨勫畬鏁碕AR鍒楄〃銆 鍦ㄦ壂鎻忔湡闂磋烦杩囦笉闇瑕佺殑JAR鍙互缂╃煭鍚姩鏃堕棿鍜孞SP缂栬瘧鏃堕棿銆
03-Dec-2019 11:39:55.339 淇℃伅 [Catalina-utility-2] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:ServerTomcatapache-tomcat-9.0.20webappsmanager] has finished in [3,245] ms
[GC (Allocation Failure) [PSYoungGen: 18935K->4035K(19968K)] 27396K->13428K(58368K), 0.0168569 secs] [Times: user=0.06 sys=0.00, real=0.02 secs] 
[GC (Allocation Failure) [PSYoungGen: 18371K->3943K(20480K)] 27764K->14032K(58880K), 0.0095581 secs] [Times: user=0.06 sys=0.00, real=0.01 secs] 
[GC (Allocation Failure) [PSYoungGen: 18791K->2858K(19968K)] 28880K->14126K(58368K), 0.0102107 secs] [Times: user=0.06 sys=0.00, real=0.01 secs] 
[GC (Allocation Failure) [PSYoungGen: 17706K->2038K(29696K)] 28974K->14386K(68096K), 0.0101134 secs] [Times: user=0.00 sys=0.02, real=0.01 secs] 
[GC (Allocation Failure) [PSYoungGen: 26102K->3625K(29696K)] 38450K->16301K(68096K), 0.0147185 secs] [Times: user=0.03 sys=0.00, real=0.02 secs] 
[GC (Allocation Failure) [PSYoungGen: 27689K->3536K(43520K)] 40365K->16548K(81920K), 0.0130661 secs] [Times: user=0.02 sys=0.00, real=0.01 secs] 
[GC (Allocation Failure) [PSYoungGen: 42448K->5100K(44032K)] 55460K->20226K(82432K), 0.0240810 secs] [Times: user=0.06 sys=0.00, real=0.03 secs] 
[GC (Allocation Failure) [PSYoungGen: 44012K->5323K(69120K)] 59138K->20985K(107520K), 0.0139488 secs] [Times: user=0.02 sys=0.00, real=0.01 secs] 
[GC (Allocation Failure) [PSYoungGen: 67787K->6645K(69120K)] 83449K->26350K(107520K), 0.0226338 secs] [Times: user=0.06 sys=0.02, real=0.02 secs] 
[GC (Allocation Failure) [PSYoungGen: 69109K->8626K(107520K)] 88814K->29156K(145920K), 0.0239101 secs] [Times: user=0.02 sys=0.00, real=0.02 secs] 
[GC (Allocation Failure) [PSYoungGen: 107442K->10221K(109056K)] 127972K->34361K(147456K), 0.0483851 secs] [Times: user=0.11 sys=0.00, real=0.05 secs] 
03-Dec-2019 11:40:06.609 淇℃伅 [RMI TCP Connection(5)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars 鑷冲皯鏈変竴涓狫AR琚壂鎻忕敤浜嶵LD浣嗗皻鏈寘鍚玊LD銆 涓烘璁板綍鍣ㄥ惎鐢ㄨ皟璇曟棩蹇楄褰曪紝浠ヨ幏鍙栧凡鎵弿浣嗘湭鍦ㄥ叾涓壘鍒癟LD鐨勫畬鏁碕AR鍒楄〃銆 鍦ㄦ壂鎻忔湡闂磋烦杩囦笉闇瑕佺殑JAR鍙互缂╃煭鍚姩鏃堕棿鍜孞SP缂栬瘧鏃堕棿銆
03-Dec-2019 11:40:07.009 淇℃伅 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.context.ContextLoader.initWebApplicationContext Root WebApplicationContext: initialization started
03-Dec-2019 11:40:07.941 淇℃伅 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.context.support.XmlWebApplicationContext.prepareRefresh Refreshing Root WebApplicationContext: startup date [Tue Dec 03 11:40:07 CST 2019]; root of context hierarchy
[GC (Metadata GC Threshold) [PSYoungGen: 29924K->1344K(151552K)] 54064K->26221K(189952K), 0.0091958 secs] [Times: user=0.05 sys=0.00, real=0.01 secs] 
[Full GC (Metadata GC Threshold) [PSYoungGen: 1344K->0K(151552K)] [ParOldGen: 24876K->10376K(35328K)] 26221K->10376K(186880K), [Metaspace: 20634K->20632K(1069056K)], 0.5342333 secs] [Times: user=0.38 sys=0.05, real=0.53 secs] 
03-Dec-2019 11:40:09.500 淇℃伅 [RMI TCP Connection(5)-127.0.0.1] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from class path resource [applicationContext.xml]
2019-12-03 11:40:17.666 [RMI TCP Connection(5)-127.0.0.1] INFO  com.alibaba.druid.pool.DruidDataSource - {dataSource-1} inited
[GC (Allocation Failure) [PSYoungGen: 138752K->10351K(151552K)] 149128K->20736K(186880K), 0.0304435 secs] [Times: user=0.03 sys=0.01, real=0.03 secs] 
03-Dec-2019 11:40:32.219 淇℃伅 [RMI TCP Connection(5)-127.0.0.1] org.springframework.web.context.ContextLoader.initWebApplicationContext Root WebApplicationContext: initialization completed in 25209 ms
[2019-12-03 11:40:33,746] Artifact permission:war exploded: Artifact is deployed successfully
[2019-12-03 11:40:33,759] Artifact permission:war exploded: Deploy took 51,054 milliseconds
03-Dec-2019 11:42:58.502 淇℃伅 [http-nio-8080-exec-1] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'spring': initialization started
03-Dec-2019 11:42:58.519 淇℃伅 [http-nio-8080-exec-1] org.springframework.web.context.support.XmlWebApplicationContext.prepareRefresh Refreshing WebApplicationContext for namespace 'spring-servlet': startup date [Tue Dec 03 11:42:58 CST 2019]; parent: Root WebApplicationContext
03-Dec-2019 11:42:58.524 淇℃伅 [http-nio-8080-exec-1] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-servlet.xml]
[GC (Metadata GC Threshold) [PSYoungGen: 132869K->5980K(177152K)] 143254K->20340K(212480K), 0.0422544 secs] [Times: user=0.09 sys=0.00, real=0.04 secs] 
[Full GC (Metadata GC Threshold) [PSYoungGen: 5980K->0K(177152K)] [ParOldGen: 14359K->17770K(50688K)] 20340K->17770K(227840K), [Metaspace: 34649K->34649K(1081344K)], 0.1887145 secs] [Times: user=0.47 sys=0.00, real=0.19 secs] 
03-Dec-2019 11:43:03.660 淇℃伅 [http-nio-8080-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/system/department/tree.json]}" onto public com.mmall.common.JsonData com.mmall.controller.SystemDepartmentController.tree()
03-Dec-2019 11:43:03.666 淇℃伅 [http-nio-8080-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/system/department/save.json]}" onto public com.mmall.common.JsonData com.mmall.controller.SystemDepartmentController.saveDepartment(com.mmall.param.DepartmentParam)
03-Dec-2019 11:43:03.668 淇℃伅 [http-nio-8080-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/system/department/update.json]}" onto public com.mmall.common.JsonData com.mmall.controller.SystemDepartmentController.updateDepartment(com.mmall.param.DepartmentParam)
03-Dec-2019 11:43:03.782 淇℃伅 [http-nio-8080-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/test/validate.json]}" onto public com.mmall.common.JsonData com.mmall.controller.TestController.validate(com.mmall.param.TestValidator) throws com.mmall.exception.ParamException
03-Dec-2019 11:43:03.783 淇℃伅 [http-nio-8080-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/test/hello.json]}" onto public com.mmall.common.JsonData com.mmall.controller.TestController.hello()
2019-12-03 11:43:04.213 [http-nio-8080-exec-1] INFO  org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.2.4.Final
03-Dec-2019 11:43:08.221 淇℃伅 [http-nio-8080-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache Looking for @ControllerAdvice: WebApplicationContext for namespace 'spring-servlet': startup date [Tue Dec 03 11:42:58 CST 2019]; parent: Root WebApplicationContext
03-Dec-2019 11:43:08.938 淇℃伅 [http-nio-8080-exec-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache Looking for @ControllerAdvice: WebApplicationContext for namespace 'spring-servlet': startup date [Tue Dec 03 11:42:58 CST 2019]; parent: Root WebApplicationContext
03-Dec-2019 11:43:09.884 淇℃伅 [http-nio-8080-exec-1] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'spring': initialization completed in 11382 ms
2019-12-03 11:43:12.507 [http-nio-8080-exec-1] INFO  com.mmall.common.HttpInterceptor - request start. url:/permission_war_exploded/system/department/save.json, params:{"name":["'宣传部'"],"seq":["1"],"remark":["'宣传部'"]}
2019-12-03 11:43:14.667 [http-nio-8080-exec-1] INFO  com.mmall.common.HttpInterceptor - request completed. url:/permission_war_exploded/system/department/save.json, cost:2159
[GC (Allocation Failure) [PSYoungGen: 168448K->10924K(181760K)] 186218K->28703K(232448K), 0.0496510 secs] [Times: user=0.08 sys=0.00, real=0.05 secs] 

老师怎么看异常堆栈因为是第一次用idea。
启动没报错只有输出的这些。

正在回答 回答被采纳积分+3

1回答

Jimin 2019-11-30 23:29:46

你好,把数据无法入库的异常堆栈发出来看一下,目前这些日志看着是应用启动日志,和你的问题没什么关系

0 回复 有任何疑惑可以回复我~
  • 提问者 慕少3127913 #1
    老师怎么看异常堆栈,因为是第一次用idea。
    回复 有任何疑惑可以回复我~ 2019-12-03 11:53:44
  • Jimin 回复 提问者 慕少3127913 #2
    如果有异常,也会出现在这个日志里
    回复 有任何疑惑可以回复我~ 2019-12-05 00:16:34
  • 提问者 慕少3127913 回复 Jimin #3
    问题已解决
    回复 有任何疑惑可以回复我~ 2019-12-07 14:52:31
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信