Bläddra i källkod

Jaxb2Marshaller

MaxKey 1 vecka sedan
förälder
incheckning
3a44ee4677

+ 17 - 0
maxkey-commons/maxkey-common/src/main/java/org/dromara/maxkey/util/JsonUtils.java

@@ -1,4 +1,21 @@
 /*
+ * Copyright [2026] [MaxKey of copyright http://www.maxkey.top]
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
+
+/*
  * Copyright (c) 2024, MaxKey and/or its affiliates. All rights reserved.
  *
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.

+ 0 - 41
maxkey-entity/src/main/java/org/dromara/maxkey/entity/xml/UserInfoXML.java

@@ -1,41 +0,0 @@
-/*
- * Copyright [2020] [MaxKey of copyright http://www.maxkey.top]
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *     http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- 
-
-package org.dromara.maxkey.entity.xml;
-
-import org.dromara.mybatis.jpa.entity.JpaEntity;
-
-import jakarta.xml.bind.annotation.XmlRootElement;
-
-/**
- * xml can not include array , MultipartFile
- * @author Crystal.Sea
- *
- */
-@XmlRootElement
-public class UserInfoXML extends JpaEntity {
-
-    /**
-     * 
-     */
-    public UserInfoXML() {
-        super();
-    }
-
-
-
-}

+ 2 - 1
maxkey-starter/maxkey-starter-web/src/main/java/org/dromara/maxkey/autoconfigure/MvcAutoConfiguration.java

@@ -120,7 +120,8 @@ public class MvcAutoConfiguration implements WebMvcConfigurer {
     @Bean(name = "jaxb2Marshaller")
     Jaxb2Marshaller jaxb2Marshaller() {
         Jaxb2Marshaller jaxb2Marshaller = new Jaxb2Marshaller();
-        jaxb2Marshaller.setClassesToBeBound(org.dromara.maxkey.entity.xml.UserInfoXML.class);
+        //xml entity mapper
+        //jaxb2Marshaller.setClassesToBeBound(org.dromara.maxkey.entity.xml.UserInfoXML.class);
         return jaxb2Marshaller;
     }