服务启动
This commit is contained in:
38
.vscode/launch.json
vendored
Normal file
38
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "java",
|
||||||
|
"name": "School News Admin",
|
||||||
|
"request": "launch",
|
||||||
|
"cwd": "${workspaceFolder}/schoolNewsServ/admin",
|
||||||
|
"mainClass": "org.xyzh.App",
|
||||||
|
"projectName": "admin",
|
||||||
|
"args": "",
|
||||||
|
"vmArgs": "-Dspring.profiles.active=dev",
|
||||||
|
"console": "integratedTerminal",
|
||||||
|
"envFile": "${workspaceFolder}/.env",
|
||||||
|
"preLaunchTask": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "java",
|
||||||
|
"name": "Spring Boot-Main<admin>",
|
||||||
|
"request": "launch",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"mainClass": "org.xyzh.Main",
|
||||||
|
"projectName": "admin",
|
||||||
|
"args": "",
|
||||||
|
"envFile": "${workspaceFolder}/.env",
|
||||||
|
"vmArgs": " -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8744 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.jmx.enabled=true -Djava.rmi.server.hostname=localhost -Dspring.application.admin.enabled=true -Dspring.boot.project.name=admin"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "java",
|
||||||
|
"name": "Spring Boot-Main<api-all>",
|
||||||
|
"request": "launch",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"mainClass": "org.xyzh.Main",
|
||||||
|
"projectName": "api-all",
|
||||||
|
"args": "",
|
||||||
|
"envFile": "${workspaceFolder}/.env"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
-- MySQL Script to create the database
|
-- MySQL Script to create the database
|
||||||
CREATE DATABASE IF NOT EXISTS `dlabeling` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
|
CREATE DATABASE IF NOT EXISTS `school_news` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
use dlabeling;
|
use school_news;
|
||||||
-- 部门表
|
-- 部门表
|
||||||
DROP TABLE IF EXISTS `tb_sys_dept`;
|
DROP TABLE IF EXISTS `tb_sys_dept`;
|
||||||
CREATE TABLE `tb_sys_dept` (
|
CREATE TABLE `tb_sys_dept` (
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
use dlabeling;
|
use school_news;
|
||||||
-- MySQL Script to create the user table
|
-- MySQL Script to create the user table
|
||||||
DROP TABLE IF EXISTS `tb_sys_user`;
|
DROP TABLE IF EXISTS `tb_sys_user`;
|
||||||
CREATE TABLE `tb_sys_user` (
|
CREATE TABLE `tb_sys_user` (
|
||||||
|
|||||||
50
schoolNewsServ/admin/logs/school-news-admin-info.log
Normal file
50
schoolNewsServ/admin/logs/school-news-admin-info.log
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
16:21:01.749 [main] INFO org.xyzh.App - The following 1 profile is active: "dev"
|
||||||
|
16:25:35.818 [main] INFO org.xyzh.App - The following 1 profile is active: "dev"
|
||||||
|
16:29:19.483 [main] INFO org.xyzh.App - The following 1 profile is active: "dev"
|
||||||
|
16:32:09.921 [main] INFO org.xyzh.App - The following 1 profile is active: "dev"
|
||||||
|
16:38:21.360 [main] INFO org.xyzh.App - The following 1 profile is active: "dev"
|
||||||
|
16:54:52.530 [main] INFO org.xyzh.App - The following 1 profile is active: "dev"
|
||||||
|
17:38:40.659 [main] INFO org.xyzh.App - The following 1 profile is active: "dev"
|
||||||
|
17:38:41.985 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8080"]
|
||||||
|
17:38:41.988 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
|
||||||
|
17:38:41.988 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/10.1.46]
|
||||||
|
17:38:42.048 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
|
||||||
|
17:38:42.393 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.DepartmentMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:38:42.429 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.DepartmentMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:38:42.435 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.DepartmentMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:38:42.458 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.MenuMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:38:42.476 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.MenuMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:38:42.482 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.MenuMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:38:42.500 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.PermissionMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:38:42.516 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.PermissionMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:38:42.520 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.PermissionMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:38:42.538 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.RoleMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:38:42.552 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.RoleMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:38:42.557 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.RoleMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:38:42.609 [main] INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat]
|
||||||
|
17:57:55.998 [main] INFO org.xyzh.App - The following 1 profile is active: "dev"
|
||||||
|
17:57:57.330 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8080"]
|
||||||
|
17:57:57.332 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
|
||||||
|
17:57:57.333 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/10.1.46]
|
||||||
|
17:57:57.390 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
|
||||||
|
17:57:57.719 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.DepartmentMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:57:57.744 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.DepartmentMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:57:57.757 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.DepartmentMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:57:57.780 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.MenuMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:57:57.797 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.MenuMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:57:57.802 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.MenuMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:57:57.820 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.PermissionMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:57:57.835 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.PermissionMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:57:57.841 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.PermissionMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:57:57.858 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.RoleMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:57:57.871 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.RoleMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:57:57.876 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.RoleMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:57:57.893 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.UserMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:57:57.904 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.UserMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:57:57.916 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.UserMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:57:58.644 [main] INFO com.baomidou.mybatisplus.extension.spring.MybatisPlusApplicationContextAware - Register ApplicationContext instances org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@5b3a7ef5
|
||||||
|
17:57:58.721 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
|
||||||
|
17:57:58.919 [main] INFO com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@43cbafa6
|
||||||
|
17:57:58.921 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
|
||||||
|
17:58:00.104 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-8080"]
|
||||||
|
17:58:01.150 [main] INFO org.xyzh.App - Started App in 8.201 seconds (process running for 9.225)
|
||||||
27
schoolNewsServ/admin/logs/school-news-admin-test.log
Normal file
27
schoolNewsServ/admin/logs/school-news-admin-test.log
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
17:57:55.998 [main] INFO org.xyzh.App - The following 1 profile is active: "dev"
|
||||||
|
17:57:57.330 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8080"]
|
||||||
|
17:57:57.332 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
|
||||||
|
17:57:57.333 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/10.1.46]
|
||||||
|
17:57:57.390 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
|
||||||
|
17:57:57.719 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.DepartmentMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:57:57.744 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.DepartmentMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:57:57.757 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.DepartmentMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:57:57.780 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.MenuMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:57:57.797 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.MenuMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:57:57.802 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.MenuMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:57:57.820 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.PermissionMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:57:57.835 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.PermissionMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:57:57.841 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.PermissionMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:57:57.858 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.RoleMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:57:57.871 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.RoleMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:57:57.876 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.RoleMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:57:57.893 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.UserMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:57:57.904 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.UserMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:57:57.916 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.UserMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:57:58.013 [main] DEBUG org.xyzh.auth.filter.JwtAuthenticationFilter - Filter 'jwtAuthenticationFilter' configured for use
|
||||||
|
17:57:58.644 [main] INFO com.baomidou.mybatisplus.extension.spring.MybatisPlusApplicationContextAware - Register ApplicationContext instances org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@5b3a7ef5
|
||||||
|
17:57:58.721 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
|
||||||
|
17:57:58.919 [main] INFO com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@43cbafa6
|
||||||
|
17:57:58.921 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
|
||||||
|
17:58:00.104 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-8080"]
|
||||||
|
17:58:01.150 [main] INFO org.xyzh.App - Started App in 8.201 seconds (process running for 9.225)
|
||||||
27
schoolNewsServ/admin/logs/school-news-admin-warn.log
Normal file
27
schoolNewsServ/admin/logs/school-news-admin-warn.log
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
17:38:42.393 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.DepartmentMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:38:42.429 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.DepartmentMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:38:42.435 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.DepartmentMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:38:42.458 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.MenuMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:38:42.476 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.MenuMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:38:42.482 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.MenuMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:38:42.500 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.PermissionMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:38:42.516 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.PermissionMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:38:42.520 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.PermissionMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:38:42.538 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.RoleMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:38:42.552 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.RoleMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:38:42.557 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.RoleMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:57:57.719 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.DepartmentMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:57:57.744 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.DepartmentMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:57:57.757 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.DepartmentMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:57:57.780 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.MenuMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:57:57.797 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.MenuMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:57:57.802 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.MenuMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:57:57.820 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.PermissionMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:57:57.835 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.PermissionMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:57:57.841 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.PermissionMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:57:57.858 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.RoleMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:57:57.871 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.RoleMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:57:57.876 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.RoleMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:57:57.893 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.UserMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:57:57.904 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.UserMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:57:57.916 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.UserMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
@@ -46,4 +46,16 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<mainClass>org.xyzh.App</mainClass>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
24
schoolNewsServ/admin/src/main/java/org/xyzh/App.java
Normal file
24
schoolNewsServ/admin/src/main/java/org/xyzh/App.java
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
package org.xyzh;
|
||||||
|
|
||||||
|
import org.mybatis.spring.annotation.MapperScan;
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description 校园新闻管理系统主应用入口
|
||||||
|
* @filename App.java
|
||||||
|
* @author yslg
|
||||||
|
* @copyright xyzh
|
||||||
|
* @since 2025-10-05
|
||||||
|
*/
|
||||||
|
@SpringBootApplication(scanBasePackages = "org.xyzh")
|
||||||
|
@MapperScan({"org.xyzh.system.mapper", "org.xyzh.news.mapper"})
|
||||||
|
public class App {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SpringApplication.run(App.class, args);
|
||||||
|
System.out.println("========================================");
|
||||||
|
System.out.println("校园新闻管理系统启动成功!");
|
||||||
|
System.out.println("========================================");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
package org.xyzh;
|
|
||||||
|
|
||||||
public class Main {
|
|
||||||
public static void main(String[] args) {
|
|
||||||
System.out.println("Hello world!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
98
schoolNewsServ/admin/src/main/resources/application.yml
Normal file
98
schoolNewsServ/admin/src/main/resources/application.yml
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
server:
|
||||||
|
port: 8080
|
||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: school-news-admin
|
||||||
|
|
||||||
|
# 数据源配置
|
||||||
|
datasource:
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://localhost:3306/school_news?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8
|
||||||
|
username: root
|
||||||
|
password: 123456
|
||||||
|
hikari:
|
||||||
|
maximum-pool-size: 30
|
||||||
|
minimum-idle: 10
|
||||||
|
connection-timeout: 30000
|
||||||
|
idle-timeout: 600000
|
||||||
|
max-lifetime: 1800000
|
||||||
|
|
||||||
|
# 认证配置
|
||||||
|
school-news:
|
||||||
|
auth:
|
||||||
|
# JWT配置
|
||||||
|
jwt-secret: schoolNewsSecretKeyForJWT2025SecureEnough
|
||||||
|
jwt-expiration: 86400 # 24小时
|
||||||
|
|
||||||
|
# 安全配置
|
||||||
|
max-login-attempts: 5
|
||||||
|
lockout-duration: 30 # 锁定30分钟
|
||||||
|
|
||||||
|
# 免登录白名单
|
||||||
|
white-list:
|
||||||
|
- "/auth/login"
|
||||||
|
- "/auth/logout"
|
||||||
|
- "/auth/captcha"
|
||||||
|
- "/auth/health"
|
||||||
|
- "/actuator/**"
|
||||||
|
- "/swagger-ui/**"
|
||||||
|
- "/v3/api-docs/**"
|
||||||
|
- "/favicon.ico"
|
||||||
|
- "/error"
|
||||||
|
- "/public/**"
|
||||||
|
- "/static/**"
|
||||||
|
|
||||||
|
# MyBatis Plus配置
|
||||||
|
mybatis-plus:
|
||||||
|
# 实体类扫描包
|
||||||
|
type-aliases-package: org.xyzh.common.dto
|
||||||
|
# mapper xml文件位置
|
||||||
|
mapper-locations: classpath*:mapper/*.xml
|
||||||
|
# 全局配置
|
||||||
|
global-config:
|
||||||
|
db-config:
|
||||||
|
# 逻辑删除字段
|
||||||
|
logic-delete-field: deleted
|
||||||
|
logic-delete-value: 1
|
||||||
|
logic-not-delete-value: 0
|
||||||
|
# 字段填充策略
|
||||||
|
insert-strategy: not_null
|
||||||
|
update-strategy: not_null
|
||||||
|
select-strategy: not_empty
|
||||||
|
# SQL配置
|
||||||
|
configuration:
|
||||||
|
# 开启驼峰命名转换
|
||||||
|
map-underscore-to-camel-case: true
|
||||||
|
# 开启二级缓存
|
||||||
|
cache-enabled: true
|
||||||
|
# 打印SQL
|
||||||
|
log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
|
||||||
|
|
||||||
|
# 日志配置
|
||||||
|
logging:
|
||||||
|
config: classpath:log4j2-spring.xml
|
||||||
|
level:
|
||||||
|
org.xyzh: DEBUG
|
||||||
|
org.xyzh.auth: DEBUG
|
||||||
|
org.xyzh.system: DEBUG
|
||||||
|
org.xyzh.news: DEBUG
|
||||||
|
|
||||||
|
# 管理端点配置
|
||||||
|
management:
|
||||||
|
endpoints:
|
||||||
|
web:
|
||||||
|
exposure:
|
||||||
|
include: health,info,metrics,env
|
||||||
|
endpoint:
|
||||||
|
health:
|
||||||
|
show-details: when-authorized
|
||||||
|
|
||||||
|
# 文档配置
|
||||||
|
springdoc:
|
||||||
|
api-docs:
|
||||||
|
path: /v3/api-docs
|
||||||
|
swagger-ui:
|
||||||
|
path: /swagger-ui.html
|
||||||
|
tags-sorter: alpha
|
||||||
|
operations-sorter: alpha
|
||||||
|
debug: true
|
||||||
136
schoolNewsServ/admin/src/main/resources/log4j2-spring.xml
Normal file
136
schoolNewsServ/admin/src/main/resources/log4j2-spring.xml
Normal file
@@ -0,0 +1,136 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
校园新闻管理系统 - Admin模块日志配置
|
||||||
|
-->
|
||||||
|
<configuration status="WARN" monitorInterval="30">
|
||||||
|
<!--日志级别以及优先级排序: OFF > FATAL > ERROR > WARN > INFO > DEBUG > TRACE > ALL -->
|
||||||
|
|
||||||
|
<!--变量配置-->
|
||||||
|
<Properties>
|
||||||
|
<!-- 格式化输出:%date表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度 %msg:日志消息,%n是换行符-->
|
||||||
|
<!-- %logger{36} 表示 Logger 名字最长36个字符 -->
|
||||||
|
<property name="LOG_PATTERN" value="%date{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n" />
|
||||||
|
<!-- 定义日志存储的路径 -->
|
||||||
|
<property name="FILE_PATH" value="./logs" />
|
||||||
|
<!-- Admin模块日志文件名 -->
|
||||||
|
<property name="FILE_NAME" value="school-news-admin" />
|
||||||
|
</Properties>
|
||||||
|
|
||||||
|
<appenders>
|
||||||
|
|
||||||
|
<console name="Console" target="SYSTEM_OUT">
|
||||||
|
<!--输出日志的格式-->
|
||||||
|
<PatternLayout pattern="${LOG_PATTERN}"/>
|
||||||
|
<!--控制台只输出level及其以上级别的信息(onMatch),其他的直接拒绝(onMismatch)-->
|
||||||
|
<ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
|
||||||
|
</console>
|
||||||
|
|
||||||
|
<!--文件会打印出所有信息,这个log每次运行程序会自动清空,由append属性决定,适合临时测试用-->
|
||||||
|
<File name="Filelog" fileName="${FILE_PATH}/${FILE_NAME}-test.log" append="false">
|
||||||
|
<PatternLayout pattern="${LOG_PATTERN}"/>
|
||||||
|
</File>
|
||||||
|
|
||||||
|
<!-- 这个会打印出所有的info及以下级别的信息,每次大小超过size,则这size大小的日志会自动存入按年份-月份建立的文件夹下面并进行压缩,作为存档-->
|
||||||
|
<RollingFile name="RollingFileInfo" fileName="${FILE_PATH}/${FILE_NAME}-info.log" filePattern="${FILE_PATH}/${FILE_NAME}-INFO-%d{yyyy-MM-dd}_%i.log.gz">
|
||||||
|
<!--控制台只输出level及以上级别的信息(onMatch),其他的直接拒绝(onMismatch)-->
|
||||||
|
<ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
|
||||||
|
<PatternLayout pattern="${LOG_PATTERN}"/>
|
||||||
|
<Policies>
|
||||||
|
<!--interval属性用来指定多久滚动一次,默认是1 hour-->
|
||||||
|
<TimeBasedTriggeringPolicy interval="1"/>
|
||||||
|
<SizeBasedTriggeringPolicy size="10MB"/>
|
||||||
|
</Policies>
|
||||||
|
<!-- DefaultRolloverStrategy属性如不设置,则默认为最多同一文件夹下7个文件开始覆盖-->
|
||||||
|
<DefaultRolloverStrategy max="15"/>
|
||||||
|
</RollingFile>
|
||||||
|
|
||||||
|
<!-- 这个会打印出所有的warn及以下级别的信息,每次大小超过size,则这size大小的日志会自动存入按年份-月份建立的文件夹下面并进行压缩,作为存档-->
|
||||||
|
<RollingFile name="RollingFileWarn" fileName="${FILE_PATH}/${FILE_NAME}-warn.log" filePattern="${FILE_PATH}/${FILE_NAME}-WARN-%d{yyyy-MM-dd}_%i.log.gz">
|
||||||
|
<!--控制台只输出level及以上级别的信息(onMatch),其他的直接拒绝(onMismatch)-->
|
||||||
|
<ThresholdFilter level="warn" onMatch="ACCEPT" onMismatch="DENY"/>
|
||||||
|
<PatternLayout pattern="${LOG_PATTERN}"/>
|
||||||
|
<Policies>
|
||||||
|
<!--interval属性用来指定多久滚动一次,默认是1 hour-->
|
||||||
|
<TimeBasedTriggeringPolicy interval="1"/>
|
||||||
|
<SizeBasedTriggeringPolicy size="10MB"/>
|
||||||
|
</Policies>
|
||||||
|
<!-- DefaultRolloverStrategy属性如不设置,则默认为最多同一文件夹下7个文件开始覆盖-->
|
||||||
|
<DefaultRolloverStrategy max="15"/>
|
||||||
|
</RollingFile>
|
||||||
|
|
||||||
|
<!-- 这个会打印出所有的error及以下级别的信息,每次大小超过size,则这size大小的日志会自动存入按年份-月份建立的文件夹下面并进行压缩,作为存档-->
|
||||||
|
<RollingFile name="RollingFileError" fileName="${FILE_PATH}/${FILE_NAME}-error.log" filePattern="${FILE_PATH}/${FILE_NAME}-ERROR-%d{yyyy-MM-dd}_%i.log.gz">
|
||||||
|
<!--控制台只输出level及以上级别的信息(onMatch),其他的直接拒绝(onMismatch)-->
|
||||||
|
<ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
|
||||||
|
<PatternLayout pattern="${LOG_PATTERN}"/>
|
||||||
|
<Policies>
|
||||||
|
<!--interval属性用来指定多久滚动一次,默认是1 hour-->
|
||||||
|
<TimeBasedTriggeringPolicy interval="1"/>
|
||||||
|
<SizeBasedTriggeringPolicy size="10MB"/>
|
||||||
|
</Policies>
|
||||||
|
<!-- DefaultRolloverStrategy属性如不设置,则默认为最多同一文件夹下7个文件开始覆盖-->
|
||||||
|
<DefaultRolloverStrategy max="15"/>
|
||||||
|
</RollingFile>
|
||||||
|
|
||||||
|
</appenders>
|
||||||
|
|
||||||
|
<!--Logger节点用来单独指定日志的形式,比如要为指定包下的class指定不同的日志级别等。-->
|
||||||
|
<!--然后定义loggers,只有定义了logger并引入的appender,appender才会生效-->
|
||||||
|
<loggers>
|
||||||
|
|
||||||
|
<!--过滤掉spring和mybatis的一些无用的DEBUG信息-->
|
||||||
|
<logger name="org.mybatis" level="info" additivity="false">
|
||||||
|
<AppenderRef ref="Console"/>
|
||||||
|
</logger>
|
||||||
|
<!--监控系统信息-->
|
||||||
|
<!--若是additivity设为false,则 子Logger 只会在自己的appender里输出,不会在 父Logger 的appender里输出。-->
|
||||||
|
<Logger name="org.springframework" level="info" additivity="false">
|
||||||
|
<AppenderRef ref="Console"/>
|
||||||
|
</Logger>
|
||||||
|
|
||||||
|
<!-- 项目包日志配置 - Auth模块 -->
|
||||||
|
<Logger name="org.xyzh.auth" level="debug" additivity="false">
|
||||||
|
<AppenderRef ref="Console"/>
|
||||||
|
<AppenderRef ref="Filelog"/>
|
||||||
|
<AppenderRef ref="RollingFileInfo"/>
|
||||||
|
<AppenderRef ref="RollingFileWarn"/>
|
||||||
|
<AppenderRef ref="RollingFileError"/>
|
||||||
|
</Logger>
|
||||||
|
|
||||||
|
<!-- 项目包日志配置 - System模块 -->
|
||||||
|
<Logger name="org.xyzh.system" level="debug" additivity="false">
|
||||||
|
<AppenderRef ref="Console"/>
|
||||||
|
<AppenderRef ref="Filelog"/>
|
||||||
|
<AppenderRef ref="RollingFileInfo"/>
|
||||||
|
<AppenderRef ref="RollingFileWarn"/>
|
||||||
|
<AppenderRef ref="RollingFileError"/>
|
||||||
|
</Logger>
|
||||||
|
|
||||||
|
<!-- 项目包日志配置 - News模块 -->
|
||||||
|
<Logger name="org.xyzh.news" level="debug" additivity="false">
|
||||||
|
<AppenderRef ref="Console"/>
|
||||||
|
<AppenderRef ref="Filelog"/>
|
||||||
|
<AppenderRef ref="RollingFileInfo"/>
|
||||||
|
<AppenderRef ref="RollingFileWarn"/>
|
||||||
|
<AppenderRef ref="RollingFileError"/>
|
||||||
|
</Logger>
|
||||||
|
|
||||||
|
<!-- 项目包日志配置 - Common模块 -->
|
||||||
|
<Logger name="org.xyzh.common" level="debug" additivity="false">
|
||||||
|
<AppenderRef ref="Console"/>
|
||||||
|
<AppenderRef ref="Filelog"/>
|
||||||
|
<AppenderRef ref="RollingFileInfo"/>
|
||||||
|
<AppenderRef ref="RollingFileWarn"/>
|
||||||
|
<AppenderRef ref="RollingFileError"/>
|
||||||
|
</Logger>
|
||||||
|
|
||||||
|
<root level="info">
|
||||||
|
<appender-ref ref="Console"/>
|
||||||
|
<appender-ref ref="Filelog"/>
|
||||||
|
<appender-ref ref="RollingFileInfo"/>
|
||||||
|
<appender-ref ref="RollingFileWarn"/>
|
||||||
|
<appender-ref ref="RollingFileError"/>
|
||||||
|
</root>
|
||||||
|
</loggers>
|
||||||
|
|
||||||
|
</configuration>
|
||||||
@@ -132,12 +132,4 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
</project>
|
||||||
@@ -43,7 +43,7 @@ public class UserDetailsServiceImpl implements UserDetailsService {
|
|||||||
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
|
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
|
||||||
TbSysUser filter = new TbSysUser();
|
TbSysUser filter = new TbSysUser();
|
||||||
filter.setUsername(username);
|
filter.setUsername(username);
|
||||||
TbSysUser user = userService.find(filter);
|
TbSysUser user = userService.getUserByFilter(filter).getData();
|
||||||
|
|
||||||
if (user == null) {
|
if (user == null) {
|
||||||
throw new UsernameNotFoundException("用户不存在: " + username);
|
throw new UsernameNotFoundException("用户不存在: " + username);
|
||||||
@@ -62,7 +62,7 @@ public class UserDetailsServiceImpl implements UserDetailsService {
|
|||||||
public UserDetails loadUserByUserId(String userId) {
|
public UserDetails loadUserByUserId(String userId) {
|
||||||
TbSysUser filter = new TbSysUser();
|
TbSysUser filter = new TbSysUser();
|
||||||
filter.setID(userId);
|
filter.setID(userId);
|
||||||
TbSysUser user = userService.find(filter);
|
TbSysUser user = userService.getUserByFilter(filter).getData();
|
||||||
|
|
||||||
if (user == null) {
|
if (user == null) {
|
||||||
throw new UsernameNotFoundException("用户不存在: " + userId);
|
throw new UsernameNotFoundException("用户不存在: " + userId);
|
||||||
|
|||||||
0
schoolNewsServ/logs/school-news-admin-error.log
Normal file
0
schoolNewsServ/logs/school-news-admin-error.log
Normal file
50
schoolNewsServ/logs/school-news-admin-info.log
Normal file
50
schoolNewsServ/logs/school-news-admin-info.log
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
16:57:09.456 [main] INFO org.xyzh.App - No active profile set, falling back to 1 default profile: "default"
|
||||||
|
16:58:18.891 [main] INFO org.xyzh.App - No active profile set, falling back to 1 default profile: "default"
|
||||||
|
17:17:14.156 [main] INFO org.xyzh.App - No active profile set, falling back to 1 default profile: "default"
|
||||||
|
17:19:09.640 [main] INFO org.xyzh.App - No active profile set, falling back to 1 default profile: "default"
|
||||||
|
17:39:25.742 [main] INFO org.xyzh.App - No active profile set, falling back to 1 default profile: "default"
|
||||||
|
17:39:26.835 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8080"]
|
||||||
|
17:39:26.836 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
|
||||||
|
17:39:26.842 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/10.1.46]
|
||||||
|
17:39:26.891 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
|
||||||
|
17:39:27.154 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.DepartmentMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:27.168 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.DepartmentMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:27.171 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.DepartmentMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:27.186 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.MenuMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:27.195 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.MenuMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:27.197 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.MenuMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:27.209 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.PermissionMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:27.216 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.PermissionMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:27.218 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.PermissionMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:27.238 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.RoleMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:27.245 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.RoleMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:27.247 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.RoleMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:27.286 [main] INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat]
|
||||||
|
17:39:56.337 [main] INFO org.xyzh.App - No active profile set, falling back to 1 default profile: "default"
|
||||||
|
17:39:57.402 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8080"]
|
||||||
|
17:39:57.403 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
|
||||||
|
17:39:57.404 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/10.1.46]
|
||||||
|
17:39:57.458 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
|
||||||
|
17:39:57.711 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.DepartmentMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:57.725 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.DepartmentMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:57.727 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.DepartmentMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:57.741 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.MenuMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:57.750 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.MenuMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:57.752 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.MenuMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:57.763 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.PermissionMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:57.770 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.PermissionMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:57.772 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.PermissionMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:57.782 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.RoleMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:57.789 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.RoleMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:57.791 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.RoleMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:57.801 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.UserMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:57.808 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.UserMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:57.810 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.UserMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:58.316 [main] INFO com.baomidou.mybatisplus.extension.spring.MybatisPlusApplicationContextAware - Register ApplicationContext instances org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@149c3204
|
||||||
|
17:39:58.390 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
|
||||||
|
17:39:58.538 [main] INFO com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@4d16975b
|
||||||
|
17:39:58.540 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
|
||||||
|
17:39:59.724 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-8080"]
|
||||||
|
17:40:00.762 [main] INFO org.xyzh.App - Started App in 7.332 seconds (process running for 8.448)
|
||||||
|
17:40:03.682 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
|
||||||
|
17:40:03.688 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
|
||||||
29
schoolNewsServ/logs/school-news-admin-test.log
Normal file
29
schoolNewsServ/logs/school-news-admin-test.log
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
17:39:56.337 [main] INFO org.xyzh.App - No active profile set, falling back to 1 default profile: "default"
|
||||||
|
17:39:57.402 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8080"]
|
||||||
|
17:39:57.403 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
|
||||||
|
17:39:57.404 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/10.1.46]
|
||||||
|
17:39:57.458 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
|
||||||
|
17:39:57.711 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.DepartmentMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:57.725 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.DepartmentMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:57.727 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.DepartmentMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:57.741 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.MenuMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:57.750 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.MenuMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:57.752 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.MenuMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:57.763 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.PermissionMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:57.770 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.PermissionMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:57.772 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.PermissionMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:57.782 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.RoleMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:57.789 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.RoleMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:57.791 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.RoleMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:57.801 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.UserMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:57.808 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.UserMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:57.810 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.UserMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:57.893 [main] DEBUG org.xyzh.auth.filter.JwtAuthenticationFilter - Filter 'jwtAuthenticationFilter' configured for use
|
||||||
|
17:39:58.316 [main] INFO com.baomidou.mybatisplus.extension.spring.MybatisPlusApplicationContextAware - Register ApplicationContext instances org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@149c3204
|
||||||
|
17:39:58.390 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
|
||||||
|
17:39:58.538 [main] INFO com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@4d16975b
|
||||||
|
17:39:58.540 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
|
||||||
|
17:39:59.724 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-8080"]
|
||||||
|
17:40:00.762 [main] INFO org.xyzh.App - Started App in 7.332 seconds (process running for 8.448)
|
||||||
|
17:40:03.682 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
|
||||||
|
17:40:03.688 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
|
||||||
27
schoolNewsServ/logs/school-news-admin-warn.log
Normal file
27
schoolNewsServ/logs/school-news-admin-warn.log
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
17:39:27.154 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.DepartmentMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:27.168 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.DepartmentMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:27.171 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.DepartmentMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:27.186 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.MenuMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:27.195 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.MenuMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:27.197 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.MenuMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:27.209 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.PermissionMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:27.216 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.PermissionMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:27.218 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.PermissionMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:27.238 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.RoleMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:27.245 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.RoleMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:27.247 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.RoleMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:57.711 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.DepartmentMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:57.725 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.DepartmentMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:57.727 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.DepartmentMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:57.741 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.MenuMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:57.750 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.MenuMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:57.752 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.MenuMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:57.763 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.PermissionMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:57.770 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.PermissionMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:57.772 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.PermissionMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:57.782 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.RoleMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:57.789 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.RoleMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:57.791 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.RoleMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
|
17:39:57.801 [main] WARN com.baomidou.mybatisplus.core.injector.methods.Insert - [org.xyzh.system.mapper.UserMapper.insert] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.Insert]
|
||||||
|
17:39:57.808 [main] WARN com.baomidou.mybatisplus.core.injector.methods.DeleteById - [org.xyzh.system.mapper.UserMapper.deleteById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.DeleteById]
|
||||||
|
17:39:57.810 [main] WARN com.baomidou.mybatisplus.core.injector.methods.UpdateById - [org.xyzh.system.mapper.UserMapper.updateById] Has been loaded by XML or SqlProvider or Mybatis's Annotation, so ignoring this injection for [class com.baomidou.mybatisplus.core.injector.methods.UpdateById]
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
package org.xyzh;
|
|
||||||
|
|
||||||
public class Main {
|
|
||||||
public static void main(String[] args) {
|
|
||||||
System.out.println("Hello world!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -133,7 +133,7 @@
|
|||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.baomidou</groupId>
|
<groupId>com.baomidou</groupId>
|
||||||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
|
||||||
<version>${mybatis-plus.version}</version>
|
<version>${mybatis-plus.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
@@ -267,19 +267,39 @@
|
|||||||
</build>
|
</build>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
|
<!-- 阿里云镜像 -->
|
||||||
<repository>
|
<repository>
|
||||||
<id>public</id>
|
<id>aliyun</id>
|
||||||
<name>aliyun nexus</name>
|
<name>aliyun nexus</name>
|
||||||
<url>https://maven.aliyun.com/repository/public</url>
|
<url>https://maven.aliyun.com/repository/public</url>
|
||||||
<releases>
|
<releases>
|
||||||
<enabled>true</enabled>
|
<enabled>true</enabled>
|
||||||
</releases>
|
</releases>
|
||||||
</repository>
|
</repository>
|
||||||
|
<!-- Maven 中央仓库(备用) -->
|
||||||
|
<repository>
|
||||||
|
<id>central</id>
|
||||||
|
<name>Maven Central</name>
|
||||||
|
<url>https://repo.maven.apache.org/maven2</url>
|
||||||
|
<releases>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</releases>
|
||||||
|
</repository>
|
||||||
|
<!-- Spring Milestone 仓库(备用) -->
|
||||||
|
<repository>
|
||||||
|
<id>spring-milestones</id>
|
||||||
|
<name>Spring Milestones</name>
|
||||||
|
<url>https://repo.spring.io/milestone</url>
|
||||||
|
<releases>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</releases>
|
||||||
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
<pluginRepositories>
|
<pluginRepositories>
|
||||||
|
<!-- 阿里云插件仓库 -->
|
||||||
<pluginRepository>
|
<pluginRepository>
|
||||||
<id>public</id>
|
<id>aliyun</id>
|
||||||
<name>aliyun nexus</name>
|
<name>aliyun nexus</name>
|
||||||
<url>https://maven.aliyun.com/repository/public</url>
|
<url>https://maven.aliyun.com/repository/public</url>
|
||||||
<releases>
|
<releases>
|
||||||
@@ -289,5 +309,14 @@
|
|||||||
<enabled>false</enabled>
|
<enabled>false</enabled>
|
||||||
</snapshots>
|
</snapshots>
|
||||||
</pluginRepository>
|
</pluginRepository>
|
||||||
|
<!-- Maven 中央仓库插件(备用) -->
|
||||||
|
<pluginRepository>
|
||||||
|
<id>central</id>
|
||||||
|
<name>Maven Central</name>
|
||||||
|
<url>https://repo.maven.apache.org/maven2</url>
|
||||||
|
<releases>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</releases>
|
||||||
|
</pluginRepository>
|
||||||
</pluginRepositories>
|
</pluginRepositories>
|
||||||
</project>
|
</project>
|
||||||
@@ -45,10 +45,10 @@
|
|||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- MyBatis Plus -->
|
<!-- MyBatis Plus for Spring Boot 3 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.baomidou</groupId>
|
<groupId>com.baomidou</groupId>
|
||||||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- MySQL驱动 -->
|
<!-- MySQL驱动 -->
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
package org.xyzh.system;
|
|
||||||
|
|
||||||
import org.mybatis.spring.annotation.MapperScan;
|
|
||||||
import org.springframework.boot.SpringApplication;
|
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @description SystemApplication.java文件描述 系统管理模块启动类
|
|
||||||
* @filename SystemApplication.java
|
|
||||||
* @author yslg
|
|
||||||
* @copyright xyzh
|
|
||||||
* @since 2025-09-28
|
|
||||||
*/
|
|
||||||
@SpringBootApplication
|
|
||||||
@MapperScan("org.xyzh.system.mapper")
|
|
||||||
public class SystemApplication {
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
SpringApplication.run(SystemApplication.class, args);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
<result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
|
<result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
|
||||||
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
|
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
|
||||||
<result column="delete_time" property="deleteTime" jdbcType="TIMESTAMP"/>
|
<result column="delete_time" property="deleteTime" jdbcType="TIMESTAMP"/>
|
||||||
<result column="deleted" property="deleted" jdbcType="Boolean"/>
|
<result column="deleted" property="deleted" jdbcType="INTEGER"/>
|
||||||
<result column="status" property="status" jdbcType="INTEGER"/>
|
<result column="status" property="status" jdbcType="INTEGER"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user