Property ‘DepartureTime‘ not found on type cn.***.beans.Product

解决办法

因为实体类里面这个找不到的属性定义用了大写开头的单词所以无法调用set,get方法,把单词改为小写开头即可。如图:
DepartureTime改为小写开头单词
在这里插入图片描述

根据以下帮我写完整的前后端代码 ,还有步骤内容要具体完整 第一部分 电子商务系统设计概述 应用《高级语言程序设计Ⅱ(Java)》、《电子商务网站设计与开发》、《J2EE电子商务系统开发技术》、《数据处理与数据库A》、《管理信息系统》等课程内容设计与开发电子商务系统。“电子商务系统设计”强调从总体结构、系统分析、系统开发这一角度来研究电子商务系统。任何一个电子商务系统都离不开后台数据库的支持,所以本实践将Java技术、Java EE技术以及数据库技术有效的结合起来,开发一个以数据库技术为支持的WEB应用系统。电子商务系统设计的目的和要求如下: 一、课程设计目的和意义   1. 加深对讲授内容的理解 《J2EE电子商务系统开发技术》理论课强调实用性,注重学生动手能力的培养。本课程设计将有助于加深对《管理信息系统》、《J2EE电子商务系统开发技术》、《数据处理与数据库A》等课程内容的基本概念、基本原理、设计原则和数据库操纵方法的理解。   2. 通过电子商务系统设计与开发,掌握电子商务系统设计与开发的关键技术,培养自主开发能力。 电子商务系统设计侧重于理论应用、系统设计和程序开发过程。结合实际需要开发一个特定的“电子商务后台管理系统”,使学生能够运用Java EE技术,结合数据库的基本知识设计数据库,掌握技术方法,掌握面向对象程序设计和分析的基本思想和基本方法,掌握Java EE开发的三层结构、能够自主设计并实现小型的软件,最终具备一定的自主开发能力。使同学能够主动查阅与Java EE应用程序开发的相关资料,具备文献检索能力。进而能够与国内外IT行业对人才的需求接轨,为后面的毕业设计和将来能够较好地适应社会需求打下基础。 3. 培养自学以及主动解决问题的能力 通过本次设计,使同学能够主动查阅与应用网站相关资料,掌握一些课堂上老师未曾教授的知识,从而达到培养学生自学以及主动解决问题的能力的目的,为后面的毕业设计打下坚实的基础。 二、课程设计实施步骤 同学们可按下列步骤完成题目的设计并写出设计报告。 第一步:问题分析。 查找网上现有的电子商务网站,对网站进行分析,掌握网站主要功能。在对电子商务网站进行调研的基础上,明确本系统完成内容。依据调查结果,进一步分析和表达用户的需求,绘制实体关系图。 第二步:数据库设计与实现。包括: 数据库的概念结构(E-R)图: 逻辑与物理结构设计:将E-R图转换为关系模型,及设计数据库中的表、视图(如果使用)、存储过程(如果使用)的结构和定义(可以用SQL脚本提供); 设计系统查询功能及要求,写出主要的查询SQL语句。 第三步:系统功能设计与实现,确定系统开发所使用技术方案,确定系统开发的功能结构,描述每一个所完成功能的类之间交互的时序图。 第四步:完成系统开发。使用Spring MVC框架、JPA技术以及mysql数据库,开发系统功能。使用Java EE三层结构进行系统开发,即首先开发DAO层,完成对数据库的CRUD,然后进行业务逻辑层的开发,最后使用HTML等前端技术完成页面开发,并对其中的关键部分编写测试程序。 第五步:实践报告编写:按照报告书格式要求,编写实践报告。 三、课程设计要求 本次课程设计的目标是运用Java EE技术和数据库技术以及管理信息系统知识完成一个电子商务后台管理系统的的设计与开发工作。为了巩固学生掌握的Java EE技术,课程设计采用Spring MVC框架、JPA等技术进行系统开发。数据库不做强制要求,推荐使用mysql。课程设计结束后,学生以文档的形式提交课程设计成果,软件要实际上机检查,要求具有一定的实用性。 设计报告具体要求如下: (1)系统分析:数据库设计(E-R图)、功能模块图、系统软件技术方案。 (2)系统实施计划:列出系统实施的时间进度安排。 (3)登录界面:登录界面截图,界面程序及系统登录业务逻辑的核心程序。 (4)系统首页:系统首页截图,系统首页核心程序。 (5)用户管理功能:实现用户列表的展示、用户信息添加、用户修改、删除及查询、展示系统截图、绘制类之间相互调用的时序图及核心程序。 (6)商品管理功能:实现商品列表的展示、商品添加、商品修改以及删除和查询,展示系统截图、绘制类之间相互调用的时序图及核心程序。 第二部分 课程设计指导 一、项目开发的一般流程 1.需求确定 通过各种手段(头脑风暴、会议、询问、原型——界面原型和业务原型)确定系统的功能和性能。 2.分析与设计 1)架构分析与设计 2)业务逻辑分析 3)业务逻辑设计 4)界面设计 3.开发环境搭建 4.开发-测试-开发-测试(螺旋递增式开发) 5.文档编写 二、需求分析 1.问题的提出: 传统的网站管理方式有两种:一是静态HTML页面,更新信息时需要重新制作页面,然后上传页面并修改相应的链接,这种方式因为效率太低已不多用;二是基于J2EE和脚本语言,将动态网页和数据库结合,通过应用程序来处理程序,这是目前较为流行的做法。网络广告系统充分发挥网络的优势,实现了网络广告的动态管理,使得对网络广告的管理更加方便、及时、安全,降低了升级和维护的难度,提高了工作效率。 2.系统需要解决的问题及功能: 根据实现业务的不同进行功能分析。 三、系统分析与设计 1.架构分析与设计 逻辑架构:3层架构、n层架构;MVC等; 物理架构:Web服务器的分布;数据库服务器的分布; 技术解决方案的确定: PHP;Open Source; 2.业务逻辑分析 (Unified Process,Use Case) -根据需求分析业务逻辑 -他们会使用本系统做什么 -通常他们使用本系统的步骤是什么样的 -会有哪些明显的类来支撑本系统的运行 -会有哪些不同的提示返回给用户 本阶段与需求的确定密切相关,通常在确定需求的时候会进行相关的分析 3.业务逻辑设计 -根据需求的分析来确定具体的类 -确定类的属性 -确定类的接口(方法) -确定类之间的关系 -确定用户操作流程在设计上的反映 -进行数据库的设计(不同的项目步骤可能不尽相同) 4.界面设计 -设计系统的界面风格: 颜色,style -设计系统的具体“模拟”界面 能够从头走到尾:方便进行需求的确定;方便程序员的开发 (界面设计:注意命名机制,包括文件名、字段名等;风格要统一,最好画图表示出来,不用文字) 四、开发环境搭建 -开发工具的确定 -配置管理工具的确定 -测试工具的确定 -文件服务器/配置服务器的确定 五、开发-测试-开发-测试 -按照设计进行开发 -迅速开发原型 -进行迭代开发 -提早进行测试 -单元测试 -黑盒测试 -性能测试 -应用性测试 第三部分 设计描述 本部分讲述如何用Java EE技术开发一个简易的电子商务后台系统,其目的是掌握一般的信息系统开发的常用方法,以及使学生熟练掌握基于Java EE开发系统的过程及技术的使用。系统采用Spring MVC框架、JPA技术等;本系统采用的是MySql数据库。 一、系统模块构成 本次实践所完成的主要功能模块主要包括一下部分: (1)用户管理模块 包括用户会员的添加、删除以及修改和查询。 (2)商品管理模块 包括商品的添加、删除以及修改和查询。 (3)库存查询 主要查询每一件商品的当前库存数量。 (4)权限管理 实现用户的功能权限的过滤管理。 系统模块如下图所示: 二、数据库设计 在这个阶段,根据所了解掌握的用户需求,进行了数据的采集和对数据的处理操作,以确保数据采集的详细准确,理清数据库中各个数据项的关系,这将为系统的设计打基础。在数据分析阶段要做到两点: 调查清楚应用系统用户所需要操作的数据,决定存储什么数据。 调查清楚应用系统用户要求对数据进行什么样的处理,理清各个数据项之间的关系。 注意做到这两点是十分重要的要向系统用户详细调查保证信息的采集的完整性、一致性和准确性。在数据分析后要做到设计出一个数据字典文档包括三方面: (1) 数据项:包括字段名、字段的含义、类型定义以及和其他数据项的逻辑关系。 (2) 数据结构:若干个数据项的有意义的集合,包括字段名称、含义以及组成的数据结构的数据项。 (3) 数据流:指数据库中数据的处理过程,包括数据信息的输入、处理和输出。 据此,可归结出内容管理系统所需完成的主体任务: (1) 基本信息的添加、修改和删除:包括用户和商品等信息。 (2) 基本信息的查询:商品信息的查询。 针对内容管理系统的总体需求,通过对系统的内容和数据流程分析与系统总体功能模块梳理,主要的实体关系图如下图所示: 三、技术方案 本系统是基于Java EE技术,采用B/S结构,B/S体系结构的客户端是Web浏览器,它负责实现显示和交互。应用服务器是位于Web服务器端,它的任务是接受用户的请求,执行相应的应用程序并与数据库进行连接,通过SQL等方式向数据库服务器提出数据处理申请,并将数据处理的结果提交给Web服务器,再由Web服务器传送回客户端。数据库服务器负责接受Web服务器对数据操作的请求,实现对数据库查询、修改、更新等功能,把运行结果提交给Web服务器。如下图所示,是基于B/S的三层体系结构。 第四部分 实验内容 一、用户管理(核心实现部分) 1.1 实体类: package cn.edu.xiyou; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import static javax.persistence.GenerationType.IDENTITY; import javax.persistence.Id; import javax.persistence.Table; /** * Teacheruser entity. @author MyEclipse Persistence Tools */ @Entity @Table(name = "teacheruser", catalog = "teacher") public class Teacheruser implements java.io.Serializable { // Fields private Integer id; private String name; private Integer age; private String password; // Constructors /** default constructor */ public Teacheruser() { } /** full constructor */ public Teacheruser(String name, Integer age) { this.name = name; this.age = age; } // Property accessors @Id @GeneratedValue(strategy = IDENTITY) @Column(name = "id", unique = true, nullable = false) public Integer getId() { return this.id; } public void setId(Integer id) { this.id = id; } @Column(name = "name", length = 32) public String getName() { return this.name; } public void setName(String name) { this.name = name; } @Column(name = "age") public Integer getAge() { return this.age; } public void setAge(Integer age) { this.age = age; } @Column(name = "password", length = 32) public String getPassWord() { return this.password; } public void setPassWord(String name) { this.password = name; } } 1.2 DAO接口层(CRUD) package cn.edu.xiyou; import java.util.List; /** * Interface for TeacheruserDAO. * * @author MyEclipse Persistence Tools */ public interface ITeacheruserDAO { /** * Perform an initial save of a previously unsaved Teacheruser entity. All * subsequent persist actions of this entity should use the #update() * method. This operation must be performed within the a database * transaction context for the entity's data to be permanently saved to the * persistence store, i.e., database. This method uses the * {@link javax.persistence.EntityManager#persist(Object) * EntityManager#persist} operation. * * <pre> * EntityManagerHelper.beginTransaction(); * ITeacheruserDAO.save(entity); * EntityManagerHelper.commit(); * </pre> * * @param entity * Teacheruser entity to persist * @throws RuntimeException * when the operation fails */ public void save(Teacheruser entity); /** * Delete a persistent Teacheruser entity. This operation must be performed * within the a database transaction context for the entity's data to be * permanently deleted from the persistence store, i.e., database. This * method uses the {@link javax.persistence.EntityManager#remove(Object) * EntityManager#delete} operation. * * <pre> * EntityManagerHelper.beginTransaction(); * ITeacheruserDAO.delete(entity); * EntityManagerHelper.commit(); * entity = null; * </pre> * * @param entity * Teacheruser entity to delete * @throws RuntimeException * when the operation fails */ public void delete(Teacheruser entity); /** * Persist a previously saved Teacheruser entity and return it or a copy of * it to the sender. A copy of the Teacheruser entity parameter is returned * when the JPA persistence mechanism has not previously been tracking the * updated entity. This operation must be performed within the a database * transaction context for the entity's data to be permanently saved to the * persistence store, i.e., database. This method uses the * {@link javax.persistence.EntityManager#merge(Object) EntityManager#merge} * operation. * * <pre> * EntityManagerHelper.beginTransaction(); * entity = ITeacheruserDAO.update(entity); * EntityManagerHelper.commit(); * </pre> * * @param entity * Teacheruser entity to update * @return Teacheruser the persisted Teacheruser entity instance, may not be * the same * @throws RuntimeException * if the operation fails */ public Teacheruser update(Teacheruser entity); public Teacheruser findById(Integer id); /** * Find all Teacheruser entities with a specific property value. * * @param propertyName * the name of the Teacheruser property to query * @param value * the property value to match * @return List<Teacheruser> found by query */ public List<Teacheruser> findByProperty(String propertyName, Object value); public List<Teacheruser> findByName(Object name); public List<Teacheruser> findByAge(Object age); /** * Find all Teacheruser entities. * * @return List<Teacheruser> all Teacheruser entities */ public List<Teacheruser> findAll(); } 1.3 DAO层(实现Dao接口中的方法) package cn.edu.xiyou; import java.util.List; import java.util.logging.Level; import javax.persistence.EntityManager; import javax.persistence.Query; /** * A data access object (DAO) providing persistence and search support for * Teacheruser entities. Transaction control of the save(), update() and * delete() operations must be handled externally by senders of these methods or * must be manually added to each of these methods for data to be persisted to * the JPA datastore. * * @see cn.edu.xiyou.Teacheruser * @author MyEclipse Persistence Tools */ public class TeacheruserDAO implements ITeacheruserDAO { // property constants public static final String NAME = "name"; public static final String AGE = "age"; private EntityManager getEntityManager() { return EntityManagerHelper.getEntityManager(); } /** * Perform an initial save of a previously unsaved Teacheruser entity. All * subsequent persist actions of this entity should use the #update() * method. This operation must be performed within the a database * transaction context for the entity's data to be permanently saved to the * persistence store, i.e., database. This method uses the * {@link javax.persistence.EntityManager#persist(Object) * EntityManager#persist} operation. * * <pre> * EntityManagerHelper.beginTransaction(); * TeacheruserDAO.save(entity); * EntityManagerHelper.commit(); * </pre> * * @param entity * Teacheruser entity to persist * @throws RuntimeException * when the operation fails */ public void save(Teacheruser entity) { EntityManagerHelper .log("saving Teacheruser instance", Level.INFO, null); try { EntityManager em = getEntityManager(); em.getTransaction().begin(); em.persist(entity); em.flush(); em.getTransaction().commit(); EntityManagerHelper.log("save successful", Level.INFO, null); } catch (RuntimeException re) { EntityManagerHelper.log("save failed", Level.SEVERE, re); throw re; } } /** * Delete a persistent Teacheruser entity. This operation must be performed * within the a database transaction context for the entity's data to be * permanently deleted from the persistence store, i.e., database. This * method uses the {@link javax.persistence.EntityManager#remove(Object) * EntityManager#delete} operation. * * <pre> * EntityManagerHelper.beginTransaction(); * TeacheruserDAO.delete(entity); * EntityManagerHelper.commit(); * entity = null; * </pre> * * @param entity * Teacheruser entity to delete * @throws RuntimeException * when the operation fails */ public void delete(Teacheruser entity) { EntityManagerHelper.log("deleting Teacheruser instance", Level.INFO, null); try { entity = getEntityManager().getReference(Teacheruser.class, entity.getId()); getEntityManager().remove(entity); EntityManagerHelper.log("delete successful", Level.INFO, null); } catch (RuntimeException re) { EntityManagerHelper.log("delete failed", Level.SEVERE, re); throw re; } } /** * Persist a previously saved Teacheruser entity and return it or a copy of * it to the sender. A copy of the Teacheruser entity parameter is returned * when the JPA persistence mechanism has not previously been tracking the * updated entity. This operation must be performed within the a database * transaction context for the entity's data to be permanently saved to the * persistence store, i.e., database. This method uses the * {@link javax.persistence.EntityManager#merge(Object) EntityManager#merge} * operation. * * <pre> * EntityManagerHelper.beginTransaction(); * entity = TeacheruserDAO.update(entity); * EntityManagerHelper.commit(); * </pre> * * @param entity * Teacheruser entity to update * @return Teacheruser the persisted Teacheruser entity instance, may not be * the same * @throws RuntimeException * if the operation fails */ public Teacheruser update(Teacheruser entity) { EntityManagerHelper.log("updating Teacheruser instance", Level.INFO, null); try { EntityManager em = getEntityManager(); em.getTransaction().begin(); Teacheruser result = em.merge(entity); em.getTransaction().commit(); EntityManagerHelper.log("update successful", Level.INFO, null); return result; } catch (RuntimeException re) { EntityManagerHelper.log("update failed", Level.SEVERE, re); throw re; } } public Teacheruser findById(Integer id) { EntityManagerHelper.log("finding Teacheruser instance with id: " + id, Level.INFO, null); try { Teacheruser instance = getEntityManager().find(Teacheruser.class, id); return instance; } catch (RuntimeException re) { EntityManagerHelper.log("find failed", Level.SEVERE, re); throw re; } } /** * Find all Teacheruser entities with a specific property value. * * @param propertyName * the name of the Teacheruser property to query * @param value * the property value to match * @return List<Teacheruser> found by query */ @SuppressWarnings("unchecked") public List<Teacheruser> findByProperty(String propertyName, final Object value) { EntityManagerHelper.log("finding Teacheruser instance with property: " + propertyName + ", value: " + value, Level.INFO, null); try { final String queryString = "select model from Teacheruser model where model." + propertyName + "= :propertyValue"; Query query = getEntityManager().createQuery(queryString); query.setParameter("propertyValue", value); return query.getResultList(); } catch (RuntimeException re) { EntityManagerHelper.log("find by property name failed", Level.SEVERE, re); throw re; } } public List<Teacheruser> findByName(Object name) { return findByProperty(NAME, name); } public List<Teacheruser> findByAge(Object age) { return findByProperty(AGE, age); } /** * Find all Teacheruser entities. * * @return List<Teacheruser> all Teacheruser entities */ @SuppressWarnings("unchecked") public List<Teacheruser> findAll() { EntityManagerHelper.log("finding all Teacheruser instances", Level.INFO, null); try { final String queryString = "select model from Teacheruser model"; Query query = getEntityManager().createQuery(queryString); return query.getResultList(); } catch (RuntimeException re) { EntityManagerHelper.log("find all failed", Level.SEVERE, re); throw re; } } } 1.4 Controller package cn.edu.xiyou.controller; import java.util.List; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import cn.edu.xiyou.Teacheruser; import cn.edu.xiyou.TeacheruserDAO; @Controller public class TestController { TeacheruserDAO td = new TeacheruserDAO(); @RequestMapping("/test.do") public String test(String username,String password,Model model){ System.out.println("the username is ==="+username); System.out.println("the password is ==="+password); List<Teacheruser> tus = td.findByName(username); Teacheruser tu = tus.get(0); if(tu.getPassWord().equals(password)){ System.out.println("login success"); model.addAttribute("result","success"); }else{ System.out.println("login filure"); model.addAttribute("result","failure"); } return "hello"; } @RequestMapping("/test2.do") public String test2(String username2,String password2,String age,Model model){ System.out.println("the username is ==="+username2); System.out.println("the password is ==="+password2); Teacheruser tu = new Teacheruser(); tu.setAge(Integer.parseInt(age)); tu.setName(username2); tu.setPassWord(password2); td.save(tu); model.addAttribute("result",“成功”); return "hello2"; } @RequestMapping("/login.do") public String login(){ return "userlogin"; } @RequestMapping("/userverify.do") public String userLogin(String username,String password){ System.out.println("the username is ==="+username); System.out.println("the password is ==="+password); return ""; } } 二、Spring MVC配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context" xmlns:jpa="http://www.springframework.org/schema/data/jpa" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd"> <context:component-scan base-package="cn.edu.xiyou" /> <mvc:annotation-driven/> <!-- View Resolver --> <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="viewClass" value="org.springframework.web.servlet.view.JstlView" /> <property name="prefix" value="/WEB-INF/view/" /> <property name="suffix" value=".jsp" /> </bean> <bean id="viewNameTranslator" class="org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator"/> <bean class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping"/> </beans> 三、JPA配置文件 <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> <persistence-unit name="testJPA"> <class>cn.edu.xiyou.Teacheruser</class> <properties> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/> <property name="hibernate.show_sql" value="true"/> <property name="hibernate.format_sql" value="true"/> <property name="hibernate.hbm2ddl.auto" value="update"/> <property name="hibernate.cache.use_second_level_cache" value="false" /> <property name="hibernate.cache.use_query_cache" value="false" /> <property name="hibernate.connection.url" value="jdbc:mysql://127.0.0.1:3306/teacher"/> <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/> <property name="hibernate.connection.username" value="root"/> <property name="hibernate.connection.password" value="123321"/> </properties> </persistence-unit> </persistence> 四、JPA基础类 package cn.edu.xiyou; import java.util.logging.Level; import java.util.logging.Logger; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; import javax.persistence.Query; /** * @author MyEclipse Persistence Tools */ public class EntityManagerHelper { private static final EntityManagerFactory emf; private static final ThreadLocal<EntityManager> threadLocal; private static final Logger logger; static { emf = Persistence.createEntityManagerFactory("testJPA"); threadLocal = new ThreadLocal<EntityManager>(); logger = Logger.getLogger("testJPA"); logger.setLevel(Level.ALL); } public static EntityManager getEntityManager() { EntityManager manager = threadLocal.get(); if (manager == null || !manager.isOpen()) { manager = emf.createEntityManager(); threadLocal.set(manager); } return manager; } public static void closeEntityManager() { EntityManager em = threadLocal.get(); threadLocal.set(null); if (em != null) em.close(); } public static void beginTransaction() { getEntityManager().getTransaction().begin(); } public static void commit() { getEntityManager().getTransaction().commit(); } public static void rollback() { getEntityManager().getTransaction().rollback(); } public static Query createQuery(String query) { return getEntityManager().createQuery(query); } public static void log(String info, Level level, Throwable ex) { logger.log(level, info, ex); } } 五、用户管理 5.1 实体类: package cn.edu.xupt.accounts; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import cn.edu.xupt.users.Users; /** * Accounts entity. @author MyEclipse Persistence Tools */ @Entity @Table(name = "accounts", catalog = "wsy") public class Accounts implements java.io.Serializable { // Fields private Integer account; private Users users; private Double balance; // Constructors /** default constructor */ public Accounts() { } /** minimal constructor */ public Accounts(Integer account) { this.account = account; } /** full constructor */ public Accounts(Integer account, Users users, Double balance) { this.account = account; this.users = users; this.balance = balance; } // Property accessors @Id @Column(name = "account", unique = true, nullable = false) public Integer getAccount() { return this.account; } public void setAccount(Integer account) { this.account = account; } @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "usersId") public Users getUsers() { return this.users; } public void setUsers(Users users) { this.users = users; } @Column(name = "balance", precision = 22, scale = 0) public Double getBalance() { return this.balance; } public void setBalance(Double balance) { this.balance = balance; } } 5.2 DAO接口 package cn.edu.xupt.accounts; import java.util.List; /** * Interface for AccountsDAO. * * @author MyEclipse Persistence Tools */ public interface IAccountsDAO { /** * Perform an initial save of a previously unsaved Accounts entity. All * subsequent persist actions of this entity should use the #update() * method. This operation must be performed within the a database * transaction context for the entity's data to be permanently saved to the * persistence store, i.e., database. This method uses the * {@link javax.persistence.EntityManager#persist(Object) * EntityManager#persist} operation. * * <pre> * EntityManagerHelper.beginTransaction(); * IAccountsDAO.save(entity); * EntityManagerHelper.commit(); * </pre> * * @param entity * Accounts entity to persist * @throws RuntimeException * when the operation fails */ public void save(Accounts entity); /** * Delete a persistent Accounts entity. This operation must be performed * within the a database transaction context for the entity's data to be * permanently deleted from the persistence store, i.e., database. This * method uses the {@link javax.persistence.EntityManager#remove(Object) * EntityManager#delete} operation. * * <pre> * EntityManagerHelper.beginTransaction(); * IAccountsDAO.delete(entity); * EntityManagerHelper.commit(); * entity = null; * </pre> * * @param entity * Accounts entity to delete * @throws RuntimeException * when the operation fails */ public void delete(Accounts entity); /** * Persist a previously saved Accounts entity and return it or a copy of it * to the sender. A copy of the Accounts entity parameter is returned when * the JPA persistence mechanism has not previously been tracking the * updated entity. This operation must be performed within the a database * transaction context for the entity's data to be permanently saved to the * persistence store, i.e., database. This method uses the * {@link javax.persistence.EntityManager#merge(Object) EntityManager#merge} * operation. * * <pre> * EntityManagerHelper.beginTransaction(); * entity = IAccountsDAO.update(entity); * EntityManagerHelper.commit(); * </pre> * * @param entity * Accounts entity to update * @return Accounts the persisted Accounts entity instance, may not be the * same * @throws RuntimeException * if the operation fails */ public Accounts update(Accounts entity); public Accounts findById(Integer id); /** * Find all Accounts entities with a specific property value. * * @param propertyName * the name of the Accounts property to query * @param value * the property value to match * @return List<Accounts> found by query */ public List<Accounts> findByProperty(String propertyName, Object value); public List<Accounts> findByBalance(Object balance); /** * Find all Accounts entities. * * @return List<Accounts> all Accounts entities */ public List<Accounts> findAll(); } 5.3 DAO类 package cn.edu.xupt.accounts; import java.util.List; import java.util.logging.Level; import javax.persistence.EntityManager; import javax.persistence.Query; import cn.edu.xupt.ordersDetails.EntityManagerHelper; /** * A data access object (DAO) providing persistence and search support for * Accounts entities. Transaction control of the save(), update() and delete() * operations must be handled externally by senders of these methods or must be * manually added to each of these methods for data to be persisted to the JPA * datastore. * * @see cn.edu.xupt.accounts.Accounts * @author MyEclipse Persistence Tools */ public class AccountsDAO implements IAccountsDAO { // property constants public static final String BALANCE = "balance"; private EntityManager getEntityManager() { return EntityManagerHelper.getEntityManager(); } /** * Perform an initial save of a previously unsaved Accounts entity. All * subsequent persist actions of this entity should use the #update() * method. This operation must be performed within the a database * transaction context for the entity's data to be permanently saved to the * persistence store, i.e., database. This method uses the * {@link javax.persistence.EntityManager#persist(Object) * EntityManager#persist} operation. * * <pre> * EntityManagerHelper.beginTransaction(); * AccountsDAO.save(entity); * EntityManagerHelper.commit(); * </pre> * * @param entity * Accounts entity to persist * @throws RuntimeException * when the operation fails */ public void save(Accounts entity) { EntityManagerHelper.log("saving Accounts instance", Level.INFO, null); try { EntityManager em=getEntityManager(); em.getTransaction().begin(); em.persist(entity); em.flush(); em.getTransaction().commit(); } catch (RuntimeException re) { EntityManagerHelper.log("save failed", Level.SEVERE, re); throw re; } } /** * Delete a persistent Accounts entity. This operation must be performed * within the a database transaction context for the entity's data to be * permanently deleted from the persistence store, i.e., database. This * method uses the {@link javax.persistence.EntityManager#remove(Object) * EntityManager#delete} operation. * * <pre> * EntityManagerHelper.beginTransaction(); * AccountsDAO.delete(entity); * EntityManagerHelper.commit(); * entity = null; * </pre> * * @param entity * Accounts entity to delete * @throws RuntimeException * when the operation fails */ public void delete(Accounts entity) { EntityManagerHelper.log("deleting Accounts instance", Level.INFO, null); try { EntityManager em=getEntityManager(); em.getTransaction().begin(); entity = em.getReference(Accounts.class,entity.getAccount()); em.remove(entity); em.getTransaction().commit(); EntityManagerHelper.log("delete successful", Level.INFO, null); } catch (RuntimeException re) { EntityManagerHelper.log("delete failed", Level.SEVERE, re); throw re; } } /** * Persist a previously saved Accounts entity and return it or a copy of it * to the sender. A copy of the Accounts entity parameter is returned when * the JPA persistence mechanism has not previously been tracking the * updated entity. This operation must be performed within the a database * transaction context for the entity's data to be permanently saved to the * persistence store, i.e., database. This method uses the * {@link javax.persistence.EntityManager#merge(Object) EntityManager#merge} * operation. * * <pre> * EntityManagerHelper.beginTransaction(); * entity = AccountsDAO.update(entity); * EntityManagerHelper.commit(); * </pre> * * @param entity * Accounts entity to update * @return Accounts the persisted Accounts entity instance, may not be the * same * @throws RuntimeException * if the operation fails */ public Accounts update(Accounts entity) { EntityManagerHelper.log("updating Accounts instance", Level.INFO, null); try { EntityManager em=getEntityManager(); em.getTransaction().begin(); Accounts result = getEntityManager().merge(entity); em.getTransaction().commit(); EntityManagerHelper.log("update successful", Level.INFO, null); return result; } catch (RuntimeException re) { EntityManagerHelper.log("update failed", Level.SEVERE, re); throw re; } } public Accounts findById(Integer id) { EntityManagerHelper.log("finding Accounts instance with id: " + id, Level.INFO, null); try { EntityManager em=getEntityManager(); em.getTransaction().begin(); Accounts instance =em.find(Accounts.class, id); em.getTransaction().commit(); return instance; } catch (RuntimeException re) { EntityManagerHelper.log("find failed", Level.SEVERE, re); throw re; } } /** * Find all Accounts entities with a specific property value. * * @param propertyName * the name of the Accounts property to query * @param value * the property value to match * @return List<Accounts> found by query */ @SuppressWarnings("unchecked") public List<Accounts> findByProperty(String propertyName, final Object value) { EntityManagerHelper.log("finding Accounts instance with property: " + propertyName + ", value: " + value, Level.INFO, null); try { final String queryString = "select model from Accounts model where model." + propertyName + "= :propertyValue"; Query query = getEntityManager().createQuery(queryString); query.setParameter("propertyValue", value); return query.getResultList(); } catch (RuntimeException re) { EntityManagerHelper.log("find by property name failed", Level.SEVERE, re); throw re; } } public List<Accounts> findByBalance(Object balance) { return findByProperty(BALANCE, balance); } /** * Find all Accounts entities. * * @return List<Accounts> all Accounts entities */ @SuppressWarnings("unchecked") public List<Accounts> findAll() { EntityManagerHelper.log("finding all Accounts instances", Level.INFO, null); try { final String queryString = "select model from Accounts model"; Query query = getEntityManager().createQuery(queryString); return query.getResultList(); } catch (RuntimeException re) { EntityManagerHelper.log("find all failed", Level.SEVERE, re); throw re; } } } 六、库存管理 6.1 实体类 package cn.edu.xupt.orders; import java.sql.Timestamp; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import cn.edu.xupt.users.Users; /** * Orders entity. @author MyEclipse Persistence Tools */ @Entity @Table(name = "orders", catalog = "wsy") public class Orders implements java.io.Serializable { // Fields private Integer ordersId; private Users users; private Timestamp time; // Constructors /** default constructor */ public Orders() { } /** minimal constructor */ public Orders(Integer ordersId) { this.ordersId = ordersId; } /** full constructor */ public Orders(Integer ordersId, Users users, Timestamp time) { this.ordersId = ordersId; this.users = users; this.time = time; } // Property accessors @Id @Column(name = "ordersId", unique = true, nullable = false) public Integer getOrdersId() { return this.ordersId; } public void setOrdersId(Integer ordersId) { this.ordersId = ordersId; } @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "usersId") public Users getUsers() { return this.users; } public void setUsers(Users users) { this.users = users; } @Column(name = "time", length = 19) public Timestamp getTime() { return this.time; } public void setTime(Timestamp time) { this.time = time; } } 6.2 DAO接口 package cn.edu.xupt.orders; import java.sql.Timestamp; import java.util.List; /** * Interface for OrdersDAO. * * @author MyEclipse Persistence Tools */ public interface IOrdersDAO { /** * Perform an initial save of a previously unsaved Orders entity. All * subsequent persist actions of this entity should use the #update() * method. This operation must be performed within the a database * transaction context for the entity's data to be permanently saved to the * persistence store, i.e., database. This method uses the * {@link javax.persistence.EntityManager#persist(Object) * EntityManager#persist} operation. * * <pre> * EntityManagerHelper.beginTransaction(); * IOrdersDAO.save(entity); * EntityManagerHelper.commit(); * </pre> * * @param entity * Orders entity to persist * @throws RuntimeException * when the operation fails */ public void save(Orders entity); /** * Delete a persistent Orders entity. This operation must be performed * within the a database transaction context for the entity's data to be * permanently deleted from the persistence store, i.e., database. This * method uses the {@link javax.persistence.EntityManager#remove(Object) * EntityManager#delete} operation. * * <pre> * EntityManagerHelper.beginTransaction(); * IOrdersDAO.delete(entity); * EntityManagerHelper.commit(); * entity = null; * </pre> * * @param entity * Orders entity to delete * @throws RuntimeException * when the operation fails */ public void delete(Orders entity); /** * Persist a previously saved Orders entity and return it or a copy of it to * the sender. A copy of the Orders entity parameter is returned when the * JPA persistence mechanism has not previously been tracking the updated * entity. This operation must be performed within the a database * transaction context for the entity's data to be permanently saved to the * persistence store, i.e., database. This method uses the * {@link javax.persistence.EntityManager#merge(Object) EntityManager#merge} * operation. * * <pre> * EntityManagerHelper.beginTransaction(); * entity = IOrdersDAO.update(entity); * EntityManagerHelper.commit(); * </pre> * * @param entity * Orders entity to update * @return Orders the persisted Orders entity instance, may not be the same * @throws RuntimeException * if the operation fails */ public Orders update(Orders entity); public Orders findById(Integer id); /** * Find all Orders entities with a specific property value. * * @param propertyName * the name of the Orders property to query * @param value * the property value to match * @return List<Orders> found by query */ public List<Orders> findByProperty(String propertyName, Object value); /** * Find all Orders entities. * * @return List<Orders> all Orders entities */ public List<Orders> findAll(); } 6.3 DAO实现 package cn.edu.xupt.orders; import java.sql.Timestamp; import java.util.List; import java.util.logging.Level; import javax.persistence.EntityManager; import javax.persistence.Query; import cn.edu.xupt.ordersDetails.EntityManagerHelper; /** * A data access object (DAO) providing persistence and search support for * Orders entities. Transaction control of the save(), update() and delete() * operations must be handled externally by senders of these methods or must be * manually added to each of these methods for data to be persisted to the JPA * datastore. * * @see cn.edu.xupt.orders.Orders * @author MyEclipse Persistence Tools */ public class OrdersDAO implements IOrdersDAO { // property constants private EntityManager getEntityManager() { return EntityManagerHelper.getEntityManager(); } /** * Perform an initial save of a previously unsaved Orders entity. All * subsequent persist actions of this entity should use the #update() * method. This operation must be performed within the a database * transaction context for the entity's data to be permanently saved to the * persistence store, i.e., database. This method uses the * {@link javax.persistence.EntityManager#persist(Object) * EntityManager#persist} operation. * * <pre> * EntityManagerHelper.beginTransaction(); * OrdersDAO.save(entity); * EntityManagerHelper.commit(); * </pre> * * @param entity * Orders entity to persist * @throws RuntimeException * when the operation fails */ public void save(Orders entity) { EntityManagerHelper.log("saving Orders instance", Level.INFO, null); try { getEntityManager().persist(entity); EntityManager em=getEntityManager(); em.getTransaction().begin(); em.persist(entity); em.flush(); em.getTransaction().commit(); } catch (RuntimeException re) { EntityManagerHelper.log("save failed", Level.SEVERE, re); throw re; } } /** * Delete a persistent Orders entity. This operation must be performed * within the a database transaction context for the entity's data to be * permanently deleted from the persistence store, i.e., database. This * method uses the {@link javax.persistence.EntityManager#remove(Object) * EntityManager#delete} operation. * * <pre> * EntityManagerHelper.beginTransaction(); * OrdersDAO.delete(entity); * EntityManagerHelper.commit(); * entity = null; * </pre> * * @param entity * Orders entity to delete * @throws RuntimeException * when the operation fails */ public void delete(Orders entity) { EntityManagerHelper.log("deleting Orders instance", Level.INFO, null); try { EntityManager em=getEntityManager(); em.getTransaction().begin(); entity = em.getReference(Orders.class, entity.getOrdersId()); em.remove(entity); em.getTransaction().commit(); EntityManagerHelper.log("delete successful", Level.INFO, null); } catch (RuntimeException re) { EntityManagerHelper.log("delete failed", Level.SEVERE, re); throw re; } } /** * Persist a previously saved Orders entity and return it or a copy of it to * the sender. A copy of the Orders entity parameter is returned when the * JPA persistence mechanism has not previously been tracking the updated * entity. This operation must be performed within the a database * transaction context for the entity's data to be permanently saved to the * persistence store, i.e., database. This method uses the * {@link javax.persistence.EntityManager#merge(Object) EntityManager#merge} * operation. * * <pre> * EntityManagerHelper.beginTransaction(); * entity = OrdersDAO.update(entity); * EntityManagerHelper.commit(); * </pre> * * @param entity * Orders entity to update * @return Orders the persisted Orders entity instance, may not be the same * @throws RuntimeException * if the operation fails */ public Orders update(Orders entity) { EntityManagerHelper.log("updating Orders instance", Level.INFO, null); try { EntityManager em=getEntityManager(); em.getTransaction().begin(); Orders result = getEntityManager().merge(entity); em.getTransaction().commit(); EntityManagerHelper.log("update successful", Level.INFO, null); return result; } catch (RuntimeException re) { EntityManagerHelper.log("update failed", Level.SEVERE, re); throw re; } } public Orders findById(Integer id) { EntityManagerHelper.log("finding Orders instance with id: " + id, Level.INFO, null); try { EntityManager em=getEntityManager(); em.getTransaction().begin(); Orders instance =em.find(Orders.class, id); em.getTransaction().commit(); return instance; } catch (RuntimeException re) { EntityManagerHelper.log("find failed", Level.SEVERE, re); throw re; } } /** * Find all Orders entities with a specific property value. * * @param propertyName * the name of the Orders property to query * @param value * the property value to match * @return List<Orders> found by query */ @SuppressWarnings("unchecked") public List<Orders> findByProperty(String propertyName, final Object value) { EntityManagerHelper.log("finding Orders instance with property: " + propertyName + ", value: " + value, Level.INFO, null); try { final String queryString = "select model from Orders model where model." + propertyName + "= :propertyValue"; Query query = getEntityManager().createQuery(queryString); query.setParameter("propertyValue", value); return query.getResultList(); } catch (RuntimeException re) { EntityManagerHelper.log("find by property name failed", Level.SEVERE, re); throw re; } } /** * Find all Orders entities. * * @return List<Orders> all Orders entities */ @SuppressWarnings("unchecked") public List<Orders> findAll() { EntityManagerHelper.log("finding all Orders instances", Level.INFO, null); try { final String queryString = "select model from Orders model"; Query query = getEntityManager().createQuery(queryString); return query.getResultList(); } catch (RuntimeException re) { EntityManagerHelper.log("find all failed", Level.SEVERE, re); throw re; } } } 七、商品管理 7.1 实体类 package cn.edu.xupt.goodsInformation; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; /** * Goodsinformation entity. @author MyEclipse Persistence Tools */ @Entity @Table(name = "goodsinformation", catalog = "wsy") public class Goodsinformation implements java.io.Serializable { // Fields private Integer goodsId; private String goodsName; private Integer goodsNum; private Double goodsPrice; // Constructors /** default constructor */ public Goodsinformation() { } /** minimal constructor */ public Goodsinformation(Integer goodsId) { this.goodsId = goodsId; } /** full constructor */ public Goodsinformation(Integer goodsId, String goodsName, Integer goodsNum, Double goodsPrice) { this.goodsId = goodsId; this.goodsName = goodsName; this.goodsNum = goodsNum; this.goodsPrice = goodsPrice; } // Property accessors @Id @Column(name = "goodsId", unique = true, nullable = false) public Integer getGoodsId() { return this.goodsId; } public void setGoodsId(Integer goodsId) { this.goodsId = goodsId; } @Column(name = "goodsName", length = 16) public String getGoodsName() { return this.goodsName; } public void setGoodsName(String goodsName) { this.goodsName = goodsName; } @Column(name = "goodsNum") public Integer getGoodsNum() { return this.goodsNum; } public void setGoodsNum(Integer goodsNum) { this.goodsNum = goodsNum; } @Column(name = "goodsPrice", precision = 22, scale = 0) public Double getGoodsPrice() { return this.goodsPrice; } public void setGoodsPrice(Double goodsPrice) { this.goodsPrice = goodsPrice; } } 7.2 DAO接口 package cn.edu.xupt.goodsInformation; import java.util.List; /** * Interface for GoodsinformationDAO. * * @author MyEclipse Persistence Tools */ public interface IGoodsinformationDAO { /** * Perform an initial save of a previously unsaved Goodsinformation entity. * All subsequent persist actions of this entity should use the #update() * method. This operation must be performed within the a database * transaction context for the entity's data to be permanently saved to the * persistence store, i.e., database. This method uses the * {@link javax.persistence.EntityManager#persist(Object) * EntityManager#persist} operation. * * <pre> * EntityManagerHelper.beginTransaction(); * IGoodsinformationDAO.save(entity); * EntityManagerHelper.commit(); * </pre> * * @param entity * Goodsinformation entity to persist * @throws RuntimeException * when the operation fails */ public void save(Goodsinformation entity); /** * Delete a persistent Goodsinformation entity. This operation must be * performed within the a database transaction context for the entity's data * to be permanently deleted from the persistence store, i.e., database. * This method uses the * {@link javax.persistence.EntityManager#remove(Object) * EntityManager#delete} operation. * * <pre> * EntityManagerHelper.beginTransaction(); * IGoodsinformationDAO.delete(entity); * EntityManagerHelper.commit(); * entity = null; * </pre> * * @param entity * Goodsinformation entity to delete * @throws RuntimeException * when the operation fails */ public void delete(Goodsinformation entity); /** * Persist a previously saved Goodsinformation entity and return it or a * copy of it to the sender. A copy of the Goodsinformation entity parameter * is returned when the JPA persistence mechanism has not previously been * tracking the updated entity. This operation must be performed within the * a database transaction context for the entity's data to be permanently * saved to the persistence store, i.e., database. This method uses the * {@link javax.persistence.EntityManager#merge(Object) EntityManager#merge} * operation. * * <pre> * EntityManagerHelper.beginTransaction(); * entity = IGoodsinformationDAO.update(entity); * EntityManagerHelper.commit(); * </pre> * * @param entity * Goodsinformation entity to update * @return Goodsinformation the persisted Goodsinformation entity instance, * may not be the same * @throws RuntimeException * if the operation fails */ public Goodsinformation update(Goodsinformation entity); public Goodsinformation findById(Integer id); /** * Find all Goodsinformation entities with a specific property value. * * @param propertyName * the name of the Goodsinformation property to query * @param value * the property value to match * @return List<Goodsinformation> found by query */ public List<Goodsinformation> findByProperty(String propertyName, Object value); public List<Goodsinformation> findByGoodsName(Object goodsName); public List<Goodsinformation> findByGoodsNum(Object goodsNum); public List<Goodsinformation> findByGoodsPrice(Object goodsPrice); /** * Find all Goodsinformation entities. * * @return List<Goodsinformation> all Goodsinformation entities */ public List<Goodsinformation> findAll(); } 7.3 DAO实现 package cn.edu.xupt.goodsInformation; import java.util.List; import java.util.logging.Level; import javax.persistence.EntityManager; import javax.persistence.Query; import cn.edu.xupt.ordersDetails.EntityManagerHelper; /** * A data access object (DAO) providing persistence and search support for * Goodsinformation entities. Transaction control of the save(), update() and * delete() operations must be handled externally by senders of these methods or * must be manually added to each of these methods for data to be persisted to * the JPA datastore. * * @see cn.edu.xupt.goodsInformation.Goodsinformation * @author MyEclipse Persistence Tools */ public class GoodsinformationDAO implements IGoodsinformationDAO { // property constants public static final String GOODS_NAME = "goodsName"; public static final String GOODS_NUM = "goodsNum"; public static final String GOODS_PRICE = "goodsPrice"; public static final String GOODS_ID = "goodsId"; private EntityManager getEntityManager() { return EntityManagerHelper.getEntityManager(); } /** * Perform an initial save of a previously unsaved Goodsinformation entity. * All subsequent persist actions of this entity should use the #update() * method. This operation must be performed within the a database * transaction context for the entity's data to be permanently saved to the * persistence store, i.e., database. This method uses the * {@link javax.persistence.EntityManager#persist(Object) * EntityManager#persist} operation. * * <pre> * EntityManagerHelper.beginTransaction(); * GoodsinformationDAO.save(entity); * EntityManagerHelper.commit(); * </pre> * * @param entity * Goodsinformation entity to persist * @throws RuntimeException * when the operation fails */ public void save(Goodsinformation entity) { EntityManagerHelper.log("saving Goodsinformation instance", Level.INFO, null); try { getEntityManager().persist(entity); EntityManager em=getEntityManager(); em.getTransaction().begin(); em.persist(entity); em.flush(); em.getTransaction().commit(); } catch (RuntimeException re) { EntityManagerHelper.log("save failed", Level.SEVERE, re); throw re; } } /** * Delete a persistent Goodsinformation entity. This operation must be * performed within the a database transaction context for the entity's data * to be permanently deleted from the persistence store, i.e., database. * This method uses the * {@link javax.persistence.EntityManager#remove(Object) * EntityManager#delete} operation. * * <pre> * EntityManagerHelper.beginTransaction(); * GoodsinformationDAO.delete(entity); * EntityManagerHelper.commit(); * entity = null; * </pre> * * @param entity * Goodsinformation entity to delete * @throws RuntimeException * when the operation fails */ public void delete(Goodsinformation entity) { EntityManagerHelper.log("deleting Goodsinformation instance", Level.INFO, null); try { EntityManager em=getEntityManager(); em.getTransaction().begin(); entity = em.getReference(Goodsinformation.class,entity.getGoodsId()); em.remove(entity); em.getTransaction().commit(); EntityManagerHelper.log("delete successful", Level.INFO, null); } catch (RuntimeException re) { EntityManagerHelper.log("delete failed", Level.SEVERE, re); throw re; } } /** * Persist a previously saved Goodsinformation entity and return it or a * copy of it to the sender. A copy of the Goodsinformation entity parameter * is returned when the JPA persistence mechanism has not previously been * tracking the updated entity. This operation must be performed within the * a database transaction context for the entity's data to be permanently * saved to the persistence store, i.e., database. This method uses the * {@link javax.persistence.EntityManager#merge(Object) EntityManager#merge} * operation. * * <pre> * EntityManagerHelper.beginTransaction(); * entity = GoodsinformationDAO.update(entity); * EntityManagerHelper.commit(); * </pre> * * @param entity * Goodsinformation entity to update * @return Goodsinformation the persisted Goodsinformation entity instance, * may not be the same * @throws RuntimeException * if the operation fails */ public Goodsinformation update(Goodsinformation entity) { EntityManagerHelper.log("updating Goodsinformation instance", Level.INFO, null); try { EntityManager em=getEntityManager(); em.getTransaction().begin(); Goodsinformation result = getEntityManager().merge(entity); em.getTransaction().commit(); EntityManagerHelper.log("update successful", Level.INFO, null); return result; } catch (RuntimeException re) { EntityManagerHelper.log("update failed", Level.SEVERE, re); throw re; } } public Goodsinformation findById(Integer id) { EntityManagerHelper.log("finding Goodsinformation instance with id: " + id, Level.INFO, null); try { EntityManager em=getEntityManager(); em.getTransaction().begin(); Goodsinformation instance =em.find(Goodsinformation.class, id); em.getTransaction().commit(); return instance; } catch (RuntimeException re) { EntityManagerHelper.log("find failed", Level.SEVERE, re); throw re; } } /** * Find all Goodsinformation entities with a specific property value. * * @param propertyName * the name of the Goodsinformation property to query * @param value * the property value to match * @return List<Goodsinformation> found by query */ @SuppressWarnings("unchecked") public List<Goodsinformation> findByProperty(String propertyName, final Object value) { EntityManagerHelper.log( "finding Goodsinformation instance with property: " + propertyName + ", value: " + value, Level.INFO, null); try { final String queryString = "select model from Goodsinformation model where model." + propertyName + "= :propertyValue"; Query query = getEntityManager().createQuery(queryString); query.setParameter("propertyValue", value); return query.getResultList(); } catch (RuntimeException re) { EntityManagerHelper.log("find by property name failed", Level.SEVERE, re); throw re; } } public List<Goodsinformation> findByGoodsName(Object goodsName) { return findByProperty(GOODS_NAME, goodsName); } public List<Goodsinformation> findByGoodsNum(Object goodsNum) { return findByProperty(GOODS_NUM, goodsNum); } public List<Goodsinformation> findByGoodsPrice(Object goodsPrice) { return findByProperty(GOODS_PRICE, goodsPrice); } /** * Find all Goodsinformation entities. * * @return List<Goodsinformation> all Goodsinformation entities */ @SuppressWarnings("unchecked") public List<Goodsinformation> findAll() { EntityManagerHelper.log("finding all Goodsinformation instances", Level.INFO, null); try { final String queryString = "select model from Goodsinformation model"; Query query = getEntityManager().createQuery(queryString); return query.getResultList(); } catch (RuntimeException re) { EntityManagerHelper.log("find all failed", Level.SEVERE, re); throw re; } } } 八、系统首页 8.1 核心程序 <div data-options="region:'west',title:'系统菜单',split:true" style="width:200px;"> <div id="aa" class="easyui-accordion" data-options="fit:true" style="width:300px;height:200px;"> <div title="系统管理" data-options="" style="overflow:auto;padding:10px;"> <ul> <li><a href="#" title="<%=request.getContextPath() %>/user/select.do">用户管理</a></li> <li><a href="#" title="<%=request.getContextPath() %>/product/select.do">商品管理</a></li> <li><a href="#" title="<%=request.getContextPath() %>/orders/select.do">订单管理</a></li> </ul> </div> <div title="库存管理" data-options="" style="padding:10px;"> <ul> <li><a href="#" title="<%=request.getContextPath() %>/inventory/in.do">入库管理</a></li> <li><a href="#" title="<%=request.getContextPath() %>/inventory/query.do">库存查询</a></li> </ul> </div> </div> </div>
06-25
2025-10-23 10:59:25.929 INFO [org.apache.catalina.core.StandardServer] A valid shutdown command was received via the shutdown port. Stopping the Server instance. 2025-10-23 10:59:25.929 INFO [org.apache.coyote.http11.Http11NioProtocol] Pausing ProtocolHandler ["http-nio-16909"] 2025-10-23 10:59:27.189 INFO [org.apache.coyote.http11.Http11NioProtocol] Pausing ProtocolHandler ["http-nio-8080"] 2025-10-23 10:59:27.251 INFO [org.apache.coyote.ajp.AjpNioProtocol] Pausing ProtocolHandler ["ajp-nio-16061"] 2025-10-23 10:59:27.315 INFO [org.apache.catalina.core.StandardService] Stopping service Catalina 2025-10-23 10:59:27.320 INFO [org.apache.coyote.http11.Http11NioProtocol] Stopping ProtocolHandler ["http-nio-16909"] 2025-10-23 10:59:27.421 INFO [org.apache.coyote.http11.Http11NioProtocol] Stopping ProtocolHandler ["http-nio-8080"] 2025-10-23 10:59:27.422 INFO [org.apache.coyote.ajp.AjpNioProtocol] Stopping ProtocolHandler ["ajp-nio-16061"] 2025-10-23 10:59:27.425 INFO [org.apache.coyote.http11.Http11NioProtocol] Destroying ProtocolHandler ["http-nio-16909"] 2025-10-23 10:59:27.426 INFO [org.apache.coyote.http11.Http11NioProtocol] Destroying ProtocolHandler ["http-nio-8080"] 2025-10-23 10:59:27.426 INFO [org.apache.coyote.ajp.AjpNioProtocol] Destroying ProtocolHandler ["ajp-nio-16061"] 2025-10-23 10:59:30.284 INFO [org.apache.catalina.startup.VersionLoggerListener] Server version: Apache Tomcat/8.0.39 2025-10-23 10:59:30.285 INFO [org.apache.catalina.startup.VersionLoggerListener] Server built: Nov 9 2016 08:48:39 UTC 2025-10-23 10:59:30.285 INFO [org.apache.catalina.startup.VersionLoggerListener] Server number: 8.0.39.0 2025-10-23 10:59:30.285 INFO [org.apache.catalina.startup.VersionLoggerListener] OS Name: Windows 10 2025-10-23 10:59:30.285 INFO [org.apache.catalina.startup.VersionLoggerListener] OS Version: 10.0 2025-10-23 10:59:30.285 INFO [org.apache.catalina.startup.VersionLoggerListener] Architecture: amd64 2025-10-23 10:59:30.286 INFO [org.apache.catalina.startup.VersionLoggerListener] Java Home: C:\Program Files\Java\jdk8u302-b08\jre 2025-10-23 10:59:30.286 INFO [org.apache.catalina.startup.VersionLoggerListener] JVM Version: 1.8.0_302-b08 2025-10-23 10:59:30.286 INFO [org.apache.catalina.startup.VersionLoggerListener] JVM Vendor: Temurin 2025-10-23 10:59:30.286 INFO [org.apache.catalina.startup.VersionLoggerListener] CATALINA_BASE: C:\Users\ex_fanyuting\AppData\Local\JetBrains\IntelliJIdea2025.1\tomcat\a9aa55cb-e673-493b-8816-99e838c44513 2025-10-23 10:59:30.286 INFO [org.apache.catalina.startup.VersionLoggerListener] CATALINA_HOME: D:\soft\tpaicwebservice-tomcat8.0\tpaicwebservice-tomcat8.0 2025-10-23 10:59:30.286 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:57334,suspend=y,server=n 2025-10-23 10:59:30.287 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -javaagent:C:\Users\ex_fanyuting\AppData\Local\JetBrains\IntelliJIdea2025.1\captureAgent\debugger-agent.jar=file:///C:/Users/ex_fanyuting/AppData/Local/Temp/capture10069411290205542943.props 2025-10-23 10:59:30.287 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -Dkotlinx.coroutines.debug.enable.creation.stack.trace=false 2025-10-23 10:59:30.287 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -Ddebugger.agent.enable.coroutines=true 2025-10-23 10:59:30.287 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -Dkotlinx.coroutines.debug.enable.flows.stack.trace=true 2025-10-23 10:59:30.287 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -Dkotlinx.coroutines.debug.enable.mutable.state.flows.stack.trace=true 2025-10-23 10:59:30.287 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -Dcom.sun.management.jmxremote= 2025-10-23 10:59:30.287 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -Dcom.sun.management.jmxremote.port=1099 2025-10-23 10:59:30.287 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -Dcom.sun.management.jmxremote.ssl=false 2025-10-23 10:59:30.288 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -Dcom.sun.management.jmxremote.password.file=C:\Users\ex_fanyuting\AppData\Local\JetBrains\IntelliJIdea2025.1\tomcat\a9aa55cb-e673-493b-8816-99e838c44513\jmxremote.password 2025-10-23 10:59:30.288 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -Dcom.sun.management.jmxremote.access.file=C:\Users\ex_fanyuting\AppData\Local\JetBrains\IntelliJIdea2025.1\tomcat\a9aa55cb-e673-493b-8816-99e838c44513\jmxremote.access 2025-10-23 10:59:30.288 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -Djava.rmi.server.hostname=127.0.0.1 2025-10-23 10:59:30.288 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 2025-10-23 10:59:30.288 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 2025-10-23 10:59:30.288 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -Dnop 2025-10-23 10:59:30.288 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 2025-10-23 10:59:30.288 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -Djava.endorsed.dirs=D:\soft\tpaicwebservice-tomcat8.0\tpaicwebservice-tomcat8.0\endorsed 2025-10-23 10:59:30.289 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -Dcatalina.base=C:\Users\ex_fanyuting\AppData\Local\JetBrains\IntelliJIdea2025.1\tomcat\a9aa55cb-e673-493b-8816-99e838c44513 2025-10-23 10:59:30.289 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -Dcatalina.home=D:\soft\tpaicwebservice-tomcat8.0\tpaicwebservice-tomcat8.0 2025-10-23 10:59:30.289 INFO [org.apache.catalina.startup.VersionLoggerListener] Command line argument: -Djava.io.tmpdir=D:\soft\tpaicwebservice-tomcat8.0\tpaicwebservice-tomcat8.0\temp 2025-10-23 10:59:30.289 INFO [org.apache.catalina.core.AprLifecycleListener] The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk8u302-b08\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Oracle\product\11.2.0\client_1;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Java\jdk8u302-b08\bin;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Git\cmd;D:\soft\maven\apache-maven-3.9.9\bin;C:\Program Files\dotnet\;D:\AAAlcq\rocketmq-all-5.1.4-bin-release\bin;C:\insolu\client001;C:\Users\ex_fanyuting\AppData\Local\Microsoft\WindowsApps;;D:\soft\IntelliJ IDEA 2025\bin;;D:\soft\Microsoft VS Code\bin;. 2025-10-23 10:59:30.365 INFO [org.apache.coyote.http11.Http11NioProtocol] Initializing ProtocolHandler ["http-nio-16909"] 2025-10-23 10:59:30.386 INFO [org.apache.tomcat.util.net.NioSelectorPool] Using a shared selector for servlet write/read 2025-10-23 10:59:30.388 INFO [org.apache.coyote.http11.Http11NioProtocol] Initializing ProtocolHandler ["http-nio-8080"] 2025-10-23 10:59:30.395 INFO [org.apache.tomcat.util.net.NioSelectorPool] Using a shared selector for servlet write/read 2025-10-23 10:59:30.396 INFO [org.apache.coyote.ajp.AjpNioProtocol] Initializing ProtocolHandler ["ajp-nio-16061"] 2025-10-23 10:59:30.403 INFO [org.apache.tomcat.util.net.NioSelectorPool] Using a shared selector for servlet write/read 2025-10-23 10:59:30.404 INFO [org.apache.catalina.startup.Catalina] Initialization processed in 340 ms 2025-10-23 10:59:30.440 INFO [org.apache.catalina.core.StandardService] Starting service Catalina 2025-10-23 10:59:30.440 INFO [org.apache.catalina.core.StandardEngine] Starting Servlet Engine: Apache Tomcat/8.0.39 2025-10-23 10:59:30.453 INFO [org.apache.coyote.http11.Http11NioProtocol] Starting ProtocolHandler ["http-nio-16909"] 2025-10-23 10:59:30.463 INFO [org.apache.coyote.http11.Http11NioProtocol] Starting ProtocolHandler ["http-nio-8080"] 2025-10-23 10:59:30.469 INFO [org.apache.coyote.ajp.AjpNioProtocol] Starting ProtocolHandler ["ajp-nio-16061"] 2025-10-23 10:59:30.476 INFO [org.apache.catalina.startup.Catalina] Server startup in 72 ms 2025-10-23 10:59:47.387 INFO [org.apache.jasper.servlet.TldScanner] At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 2025-10-23 10:59:47.422 INFO [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/tpaicwebservice]] No Spring WebApplicationInitializer types detected on classpath 2025-10-23 10:59:47.426 INFO [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/tpaicwebservice]] Initializing Spring root WebApplicationContext 2025-10-23 11:00:07.294 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/tpaicwebservice]] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'policyIssueController' defined in ServletContext resource [/WEB-INF/tpaicwebservice-service-servlet.xml]: Cannot resolve reference to bean 'dispatchService' while setting bean property 'dispatch'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispatchService' defined in ServletContext resource [/WEB-INF/tpaicwebservice-servlet.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.tpaic.ws.biz' defined in class path resource [com/tpaic/ws/biz/beanRefContext.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'nonEndorseCallbackService' defined in class path resource [com/tpaic/yizhangtong/config/yzt-service-context.xml]: Could not resolve placeholder 'yzt.nonEndorseCallbackUrl' in value "${yzt.nonEndorseCallbackUrl}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'yzt.nonEndorseCallbackUrl' in value "${yzt.nonEndorseCallbackUrl}" at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:342) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:113) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1707) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1452) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:399) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:278) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4853) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1696) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:484) at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:433) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468) at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309) at java.security.AccessController.doPrivileged(Native Method) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357) at sun.rmi.transport.Transport$1.run(Transport.java:200) at sun.rmi.transport.Transport$1.run(Transport.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:196) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dispatchService' defined in ServletContext resource [/WEB-INF/tpaicwebservice-servlet.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.tpaic.ws.biz' defined in class path resource [com/tpaic/ws/biz/beanRefContext.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'nonEndorseCallbackService' defined in class path resource [com/tpaic/yizhangtong/config/yzt-service-context.xml]: Could not resolve placeholder 'yzt.nonEndorseCallbackUrl' in value "${yzt.nonEndorseCallbackUrl}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'yzt.nonEndorseCallbackUrl' in value "${yzt.nonEndorseCallbackUrl}" at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:330) ... 62 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.tpaic.ws.biz' defined in class path resource [com/tpaic/ws/biz/beanRefContext.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'nonEndorseCallbackService' defined in class path resource [com/tpaic/yizhangtong/config/yzt-service-context.xml]: Could not resolve placeholder 'yzt.nonEndorseCallbackUrl' in value "${yzt.nonEndorseCallbackUrl}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'yzt.nonEndorseCallbackUrl' in value "${yzt.nonEndorseCallbackUrl}" at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:315) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:296) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:144) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:85) at com.tpaic.tpfa.app.contexton.ApplicationContexton$SpringContextUtil.getApplicationContext(ApplicationContexton.java:35) at com.tpaic.tpfa.app.contexton.ApplicationContexton.getFactory(ApplicationContexton.java:25) at com.tpaic.tpfa.app.biz.dispatch.impl.ServiceControllerLocalImpl.afterPropertiesSet(ServiceControllerLocalImpl.java:69) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) ... 69 more Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'nonEndorseCallbackService' defined in class path resource [com/tpaic/yizhangtong/config/yzt-service-context.xml]: Could not resolve placeholder 'yzt.nonEndorseCallbackUrl' in value "${yzt.nonEndorseCallbackUrl}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'yzt.nonEndorseCallbackUrl' in value "${yzt.nonEndorseCallbackUrl}" at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:224) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117) at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:311) ... 88 more Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'nonEndorseCallbackService' defined in class path resource [com/tpaic/yizhangtong/config/yzt-service-context.xml]: Could not resolve placeholder 'yzt.nonEndorseCallbackUrl' in value "${yzt.nonEndorseCallbackUrl}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'yzt.nonEndorseCallbackUrl' in value "${yzt.nonEndorseCallbackUrl}" at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:230) at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:211) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:86) at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:325) at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:183) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:748) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:564) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:144) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:95) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211) ... 90 more Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'yzt.nonEndorseCallbackUrl' in value "${yzt.nonEndorseCallbackUrl}" at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:180) at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:126) at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer$PlaceholderResolvingStringValueResolver.resolveStringValue(PropertyPlaceholderConfigurer.java:230) at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveStringValue(BeanDefinitionVisitor.java:296) at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:217) at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitPropertyValues(BeanDefinitionVisitor.java:147) at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanDefinition(BeanDefinitionVisitor.java:85) at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:227) ... 103 more 2025-10-23 11:00:07.320 INFO [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/tpaicwebservice]] Closing Spring root WebApplicationContext
10-24
C:\Users\wxiao\.jdks\ms-17.0.15\bin\java.exe -XX:TieredStopAtLevel=1 -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-Dmanagement.endpoints.jmx.exposure.include=*" "-javaagent:C:\Program Files\IDEA_2023.3.6_Protable\IDEA_2023.3.6_Protable\lib\idea_rt.jar=55196:C:\Program Files\IDEA_2023.3.6_Protable\IDEA_2023.3.6_Protable\bin" -Dfile.encoding=UTF-8 -classpath D:\idea项目\exam\target\classes;C:\Users\wxiao\.m2\repository\org\springframework\boot\spring-boot-starter-web\2.7.0\spring-boot-starter-web-2.7.0.jar;C:\Users\wxiao\.m2\repository\org\springframework\boot\spring-boot-starter\2.7.0\spring-boot-starter-2.7.0.jar;C:\Users\wxiao\.m2\repository\org\springframework\boot\spring-boot\2.7.0\spring-boot-2.7.0.jar;C:\Users\wxiao\.m2\repository\org\springframework\boot\spring-boot-starter-logging\2.7.0\spring-boot-starter-logging-2.7.0.jar;C:\Users\wxiao\.m2\repository\ch\qos\logback\logback-classic\1.2.11\logback-classic-1.2.11.jar;C:\Users\wxiao\.m2\repository\ch\qos\logback\logback-core\1.2.11\logback-core-1.2.11.jar;C:\Users\wxiao\.m2\repository\org\apache\logging\log4j\log4j-to-slf4j\2.17.2\log4j-to-slf4j-2.17.2.jar;C:\Users\wxiao\.m2\repository\org\apache\logging\log4j\log4j-api\2.17.2\log4j-api-2.17.2.jar;C:\Users\wxiao\.m2\repository\org\slf4j\jul-to-slf4j\1.7.36\jul-to-slf4j-1.7.36.jar;C:\Users\wxiao\.m2\repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;C:\Users\wxiao\.m2\repository\org\yaml\snakeyaml\1.30\snakeyaml-1.30.jar;C:\Users\wxiao\.m2\repository\org\springframework\boot\spring-boot-starter-json\2.7.0\spring-boot-starter-json-2.7.0.jar;C:\Users\wxiao\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.13.3\jackson-databind-2.13.3.jar;C:\Users\wxiao\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.13.3\jackson-annotations-2.13.3.jar;C:\Users\wxiao\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.13.3\jackson-core-2.13.3.jar;C:\Users\wxiao\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.13.3\jackson-datatype-jdk8-2.13.3.jar;C:\Users\wxiao\.m2\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.13.3\jackson-datatype-jsr310-2.13.3.jar;C:\Users\wxiao\.m2\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.13.3\jackson-module-parameter-names-2.13.3.jar;C:\Users\wxiao\.m2\repository\org\springframework\boot\spring-boot-starter-tomcat\2.7.0\spring-boot-starter-tomcat-2.7.0.jar;C:\Users\wxiao\.m2\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.63\tomcat-embed-core-9.0.63.jar;C:\Users\wxiao\.m2\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.63\tomcat-embed-websocket-9.0.63.jar;C:\Users\wxiao\.m2\repository\org\springframework\spring-web\5.3.20\spring-web-5.3.20.jar;C:\Users\wxiao\.m2\repository\org\springframework\spring-beans\5.3.20\spring-beans-5.3.20.jar;C:\Users\wxiao\.m2\repository\org\springframework\spring-webmvc\5.3.20\spring-webmvc-5.3.20.jar;C:\Users\wxiao\.m2\repository\org\springframework\spring-context\5.3.20\spring-context-5.3.20.jar;C:\Users\wxiao\.m2\repository\org\springframework\spring-expression\5.3.20\spring-expression-5.3.20.jar;C:\Users\wxiao\.m2\repository\org\springframework\boot\spring-boot-starter-thymeleaf\2.7.0\spring-boot-starter-thymeleaf-2.7.0.jar;C:\Users\wxiao\.m2\repository\org\thymeleaf\thymeleaf-spring5\3.0.15.RELEASE\thymeleaf-spring5-3.0.15.RELEASE.jar;C:\Users\wxiao\.m2\repository\org\thymeleaf\thymeleaf\3.0.15.RELEASE\thymeleaf-3.0.15.RELEASE.jar;C:\Users\wxiao\.m2\repository\org\attoparser\attoparser\2.0.5.RELEASE\attoparser-2.0.5.RELEASE.jar;C:\Users\wxiao\.m2\repository\org\unbescape\unbescape\1.1.6.RELEASE\unbescape-1.1.6.RELEASE.jar;C:\Users\wxiao\.m2\repository\org\thymeleaf\extras\thymeleaf-extras-java8time\3.0.4.RELEASE\thymeleaf-extras-java8time-3.0.4.RELEASE.jar;C:\Users\wxiao\.m2\repository\org\springframework\boot\spring-boot-starter-data-redis\2.7.0\spring-boot-starter-data-redis-2.7.0.jar;C:\Users\wxiao\.m2\repository\org\springframework\data\spring-data-redis\2.7.0\spring-data-redis-2.7.0.jar;C:\Users\wxiao\.m2\repository\org\springframework\data\spring-data-keyvalue\2.7.0\spring-data-keyvalue-2.7.0.jar;C:\Users\wxiao\.m2\repository\org\springframework\data\spring-data-commons\2.7.0\spring-data-commons-2.7.0.jar;C:\Users\wxiao\.m2\repository\org\springframework\spring-tx\5.3.20\spring-tx-5.3.20.jar;C:\Users\wxiao\.m2\repository\org\springframework\spring-oxm\5.3.20\spring-oxm-5.3.20.jar;C:\Users\wxiao\.m2\repository\io\lettuce\lettuce-core\6.1.8.RELEASE\lettuce-core-6.1.8.RELEASE.jar;C:\Users\wxiao\.m2\repository\io\netty\netty-common\4.1.77.Final\netty-common-4.1.77.Final.jar;C:\Users\wxiao\.m2\repository\io\netty\netty-handler\4.1.77.Final\netty-handler-4.1.77.Final.jar;C:\Users\wxiao\.m2\repository\io\netty\netty-resolver\4.1.77.Final\netty-resolver-4.1.77.Final.jar;C:\Users\wxiao\.m2\repository\io\netty\netty-buffer\4.1.77.Final\netty-buffer-4.1.77.Final.jar;C:\Users\wxiao\.m2\repository\io\netty\netty-codec\4.1.77.Final\netty-codec-4.1.77.Final.jar;C:\Users\wxiao\.m2\repository\io\netty\netty-transport\4.1.77.Final\netty-transport-4.1.77.Final.jar;C:\Users\wxiao\.m2\repository\io\projectreactor\reactor-core\3.4.18\reactor-core-3.4.18.jar;C:\Users\wxiao\.m2\repository\org\reactivestreams\reactive-streams\1.0.3\reactive-streams-1.0.3.jar;C:\Users\wxiao\.m2\repository\org\springframework\boot\spring-boot-starter-security\2.7.0\spring-boot-starter-security-2.7.0.jar;C:\Users\wxiao\.m2\repository\org\springframework\spring-aop\5.3.20\spring-aop-5.3.20.jar;C:\Users\wxiao\.m2\repository\org\springframework\security\spring-security-config\5.7.1\spring-security-config-5.7.1.jar;C:\Users\wxiao\.m2\repository\org\springframework\security\spring-security-web\5.7.1\spring-security-web-5.7.1.jar;C:\Users\wxiao\.m2\repository\org\springframework\boot\spring-boot-starter-aop\2.7.0\spring-boot-starter-aop-2.7.0.jar;C:\Users\wxiao\.m2\repository\org\aspectj\aspectjweaver\1.9.7\aspectjweaver-1.9.7.jar;C:\Users\wxiao\.m2\repository\org\springframework\boot\spring-boot-starter-validation\2.7.0\spring-boot-starter-validation-2.7.0.jar;C:\Users\wxiao\.m2\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.63\tomcat-embed-el-9.0.63.jar;C:\Users\wxiao\.m2\repository\org\hibernate\validator\hibernate-validator\6.2.3.Final\hibernate-validator-6.2.3.Final.jar;C:\Users\wxiao\.m2\repository\jakarta\validation\jakarta.validation-api\2.0.2\jakarta.validation-api-2.0.2.jar;C:\Users\wxiao\.m2\repository\org\jboss\logging\jboss-logging\3.4.3.Final\jboss-logging-3.4.3.Final.jar;C:\Users\wxiao\.m2\repository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;C:\Users\wxiao\.m2\repository\org\springframework\boot\spring-boot-starter-cache\2.7.0\spring-boot-starter-cache-2.7.0.jar;C:\Users\wxiao\.m2\repository\org\springframework\spring-context-support\5.3.20\spring-context-support-5.3.20.jar;C:\Users\wxiao\.m2\repository\org\mybatis\spring\boot\mybatis-spring-boot-starter\2.2.2\mybatis-spring-boot-starter-2.2.2.jar;C:\Users\wxiao\.m2\repository\org\springframework\boot\spring-boot-starter-jdbc\2.7.0\spring-boot-starter-jdbc-2.7.0.jar;C:\Users\wxiao\.m2\repository\com\zaxxer\HikariCP\4.0.3\HikariCP-4.0.3.jar;C:\Users\wxiao\.m2\repository\org\springframework\spring-jdbc\5.3.20\spring-jdbc-5.3.20.jar;C:\Users\wxiao\.m2\repository\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\2.2.2\mybatis-spring-boot-autoconfigure-2.2.2.jar;C:\Users\wxiao\.m2\repository\org\mybatis\mybatis\3.5.9\mybatis-3.5.9.jar;C:\Users\wxiao\.m2\repository\org\mybatis\mybatis-spring\2.0.7\mybatis-spring-2.0.7.jar;C:\Users\wxiao\.m2\repository\mysql\mysql-connector-java\8.0.29\mysql-connector-java-8.0.29.jar;C:\Users\wxiao\.m2\repository\com\alibaba\druid-spring-boot-starter\1.2.8\druid-spring-boot-starter-1.2.8.jar;C:\Users\wxiao\.m2\repository\com\alibaba\druid\1.2.8\druid-1.2.8.jar;C:\Users\wxiao\.m2\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;C:\Users\wxiao\.m2\repository\org\slf4j\slf4j-api\1.7.36\slf4j-api-1.7.36.jar;C:\Users\wxiao\.m2\repository\org\springframework\boot\spring-boot-autoconfigure\2.7.0\spring-boot-autoconfigure-2.7.0.jar;C:\Users\wxiao\.m2\repository\org\projectlombok\lombok\1.18.24\lombok-1.18.24.jar;C:\Users\wxiao\.m2\repository\org\springframework\spring-core\5.3.20\spring-core-5.3.20.jar;C:\Users\wxiao\.m2\repository\org\springframework\spring-jcl\5.3.20\spring-jcl-5.3.20.jar;C:\Users\wxiao\.m2\repository\org\springframework\security\spring-security-core\5.7.1\spring-security-core-5.7.1.jar;C:\Users\wxiao\.m2\repository\org\springframework\security\spring-security-crypto\5.7.1\spring-security-crypto-5.7.1.jar;C:\Users\wxiao\.m2\repository\org\apache\commons\commons-lang3\3.12.0\commons-lang3-3.12.0.jar;C:\Users\wxiao\.m2\repository\com\github\pagehelper\pagehelper-spring-boot-starter\1.4.3\pagehelper-spring-boot-starter-1.4.3.jar;C:\Users\wxiao\.m2\repository\com\github\pagehelper\pagehelper-spring-boot-autoconfigure\1.4.3\pagehelper-spring-boot-autoconfigure-1.4.3.jar;C:\Users\wxiao\.m2\repository\com\github\pagehelper\pagehelper\5.3.1\pagehelper-5.3.1.jar;C:\Users\wxiao\.m2\repository\com\github\jsqlparser\jsqlparser\4.2\jsqlparser-4.2.jar com.lsnu.exam.sn223101410015.ExamApplication . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.7.0) 2025-06-15 01:06:01.801 INFO 16912 --- [ main] c.l.exam.sn223101410015.ExamApplication : Starting ExamApplication using Java 17.0.15 on DESKTOP-0O67UHI with PID 16912 (D:\idea项目\exam\target\classes started by wxiao in D:\idea项目\exam) 2025-06-15 01:06:01.802 INFO 16912 --- [ main] c.l.exam.sn223101410015.ExamApplication : No active profile set, falling back to 1 default profile: "default" 2025-06-15 01:06:02.202 INFO 16912 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode! 2025-06-15 01:06:02.204 INFO 16912 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 2025-06-15 01:06:02.217 INFO 16912 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 5 ms. Found 0 Redis repository interfaces. 2025-06-15 01:06:02.286 WARN 16912 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'productMapper' and 'com.lsnu.exam.sn223101410015.mapper.ProductMapper' mapperInterface. Bean already defined with the same name! 2025-06-15 01:06:02.286 WARN 16912 --- [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name 'userMapper' and 'com.lsnu.exam.sn223101410015.mapper.UserMapper' mapperInterface. Bean already defined with the same name! 2025-06-15 01:06:02.287 WARN 16912 --- [ main] o.m.s.mapper.ClassPathMapperScanner : No MyBatis mapper was found in '[com.lsnu.exam.sn223101410015.mapper]' package. Please check your configuration. 2025-06-15 01:06:02.580 INFO 16912 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) 2025-06-15 01:06:02.584 INFO 16912 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2025-06-15 01:06:02.584 INFO 16912 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.63] 2025-06-15 01:06:02.642 INFO 16912 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2025-06-15 01:06:02.642 INFO 16912 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 806 ms 2025-06-15 01:06:02.799 WARN 16912 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'productController' defined in file [D:\idea项目\exam\target\classes\com\lsnu\exam\sn223101410015\controller\ProductController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'productServiceImpl' defined in file [D:\idea项目\exam\target\classes\com\lsnu\exam\sn223101410015\service\impl\ProductServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'productMapper' defined in file [D:\idea项目\exam\target\classes\com\lsnu\exam\sn223101410015\mapper\ProductMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/lsnu/exam/sn223101410015/config/MyBatisConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\idea项目\exam\target\classes\mapper\ProductMapper.xml]'; nested exception is java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.lsnu.exam.sn223101410015.mapper.ProductMapper.update. please check file [D:\idea项目\exam\target\classes\mapper\ProductMapper.xml] and com/lsnu/exam/sn223101410015/mapper/ProductMapper.java (best guess) 2025-06-15 01:06:02.799 INFO 16912 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-0} closing ... 2025-06-15 01:06:02.801 INFO 16912 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2025-06-15 01:06:02.819 INFO 16912 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2025-06-15 01:06:02.833 ERROR 16912 --- [ main] o.s.boot.SpringApplication : Application run failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'productController' defined in file [D:\idea项目\exam\target\classes\com\lsnu\exam\sn223101410015\controller\ProductController.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'productServiceImpl' defined in file [D:\idea项目\exam\target\classes\com\lsnu\exam\sn223101410015\service\impl\ProductServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'productMapper' defined in file [D:\idea项目\exam\target\classes\com\lsnu\exam\sn223101410015\mapper\ProductMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/lsnu/exam/sn223101410015/config/MyBatisConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\idea项目\exam\target\classes\mapper\ProductMapper.xml]'; nested exception is java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.lsnu.exam.sn223101410015.mapper.ProductMapper.update. please check file [D:\idea项目\exam\target\classes\mapper\ProductMapper.xml] and com/lsnu/exam/sn223101410015/mapper/ProductMapper.java (best guess) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-5.3.20.jar:5.3.20] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.20.jar:5.3.20] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) ~[spring-boot-2.7.0.jar:2.7.0] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734) ~[spring-boot-2.7.0.jar:2.7.0] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) ~[spring-boot-2.7.0.jar:2.7.0] at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) ~[spring-boot-2.7.0.jar:2.7.0] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) ~[spring-boot-2.7.0.jar:2.7.0] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) ~[spring-boot-2.7.0.jar:2.7.0] at com.lsnu.exam.sn223101410015.ExamApplication.main(ExamApplication.java:13) ~[classes/:na] Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'productServiceImpl' defined in file [D:\idea项目\exam\target\classes\com\lsnu\exam\sn223101410015\service\impl\ProductServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'productMapper' defined in file [D:\idea项目\exam\target\classes\com\lsnu\exam\sn223101410015\mapper\ProductMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/lsnu/exam/sn223101410015/config/MyBatisConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\idea项目\exam\target\classes\mapper\ProductMapper.xml]'; nested exception is java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.lsnu.exam.sn223101410015.mapper.ProductMapper.update. please check file [D:\idea项目\exam\target\classes\mapper\ProductMapper.xml] and com/lsnu/exam/sn223101410015/mapper/ProductMapper.java (best guess) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1389) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) ~[spring-beans-5.3.20.jar:5.3.20] ... 19 common frames omitted Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'productMapper' defined in file [D:\idea项目\exam\target\classes\com\lsnu\exam\sn223101410015\mapper\ProductMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/lsnu/exam/sn223101410015/config/MyBatisConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\idea项目\exam\target\classes\mapper\ProductMapper.xml]'; nested exception is java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.lsnu.exam.sn223101410015.mapper.ProductMapper.update. please check file [D:\idea项目\exam\target\classes\mapper\ProductMapper.xml] and com/lsnu/exam/sn223101410015/mapper/ProductMapper.java (best guess) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1534) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1417) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1389) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) ~[spring-beans-5.3.20.jar:5.3.20] ... 33 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/lsnu/exam/sn223101410015/config/MyBatisConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\idea项目\exam\target\classes\mapper\ProductMapper.xml]'; nested exception is java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.lsnu.exam.sn223101410015.mapper.ProductMapper.update. please check file [D:\idea项目\exam\target\classes\mapper\ProductMapper.xml] and com/lsnu/exam/sn223101410015/mapper/ProductMapper.java (best guess) at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1389) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1309) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1519) ~[spring-beans-5.3.20.jar:5.3.20] ... 45 common frames omitted Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\idea项目\exam\target\classes\mapper\ProductMapper.xml]'; nested exception is java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.lsnu.exam.sn223101410015.mapper.ProductMapper.update. please check file [D:\idea项目\exam\target\classes\mapper\ProductMapper.xml] and com/lsnu/exam/sn223101410015/mapper/ProductMapper.java (best guess) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.3.20.jar:5.3.20] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ~[spring-beans-5.3.20.jar:5.3.20] ... 58 common frames omitted Caused by: org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\idea项目\exam\target\classes\mapper\ProductMapper.xml]'; nested exception is java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.lsnu.exam.sn223101410015.mapper.ProductMapper.update. please check file [D:\idea项目\exam\target\classes\mapper\ProductMapper.xml] and com/lsnu/exam/sn223101410015/mapper/ProductMapper.java (best guess) at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:613) ~[mybatis-spring-2.0.7.jar:2.0.7] at org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:491) ~[mybatis-spring-2.0.7.jar:2.0.7] at org.mybatis.spring.SqlSessionFactoryBean.getObject(SqlSessionFactoryBean.java:633) ~[mybatis-spring-2.0.7.jar:2.0.7] at com.lsnu.exam.sn223101410015.config.MyBatisConfig.sqlSessionFactory(MyBatisConfig.java:74) ~[classes/:na] at com.lsnu.exam.sn223101410015.config.MyBatisConfig$$EnhancerBySpringCGLIB$$1c1d65a9.CGLIB$sqlSessionFactory$0(<generated>) ~[classes/:na] at com.lsnu.exam.sn223101410015.config.MyBatisConfig$$EnhancerBySpringCGLIB$$1c1d65a9$$FastClassBySpringCGLIB$$96302d35.invoke(<generated>) ~[classes/:na] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.3.20.jar:5.3.20] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) ~[spring-context-5.3.20.jar:5.3.20] at com.lsnu.exam.sn223101410015.config.MyBatisConfig$$EnhancerBySpringCGLIB$$1c1d65a9.sqlSessionFactory(<generated>) ~[classes/:na] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na] at java.base/java.lang.reflect.Method.invoke(Method.java:569) ~[na:na] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.20.jar:5.3.20] ... 59 common frames omitted Caused by: java.lang.IllegalArgumentException: Mapped Statements collection already contains value for com.lsnu.exam.sn223101410015.mapper.ProductMapper.update. please check file [D:\idea项目\exam\target\classes\mapper\ProductMapper.xml] and com/lsnu/exam/sn223101410015/mapper/ProductMapper.java (best guess) at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:1037) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.session.Configuration$StrictMap.put(Configuration.java:993) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.session.Configuration.addMappedStatement(Configuration.java:791) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.builder.MapperBuilderAssistant.addMappedStatement(MapperBuilderAssistant.java:297) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.lambda$parseStatement$2(MapperAnnotationBuilder.java:358) ~[mybatis-3.5.9.jar:3.5.9] at java.base/java.util.Optional.ifPresent(Optional.java:178) ~[na:na] at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parseStatement(MapperAnnotationBuilder.java:300) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:132) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:72) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:864) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.builder.xml.XMLMapperBuilder.bindMapperForNamespace(XMLMapperBuilder.java:432) ~[mybatis-3.5.9.jar:3.5.9] at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:97) ~[mybatis-3.5.9.jar:3.5.9] at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:611) ~[mybatis-spring-2.0.7.jar:2.0.7] ... 72 common frames omitted Process finished with exit code 1
06-16
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值