├── .gitignore
├── .mvn
└── wrapper
│ ├── MavenWrapperDownloader.java
│ ├── maven-wrapper.jar
│ └── maven-wrapper.properties
├── README.md
├── logs
└── user
│ └── user.log
├── mvnw
├── mvnw.cmd
├── pom.xml
└── src
├── main
├── java
│ └── com
│ │ └── aokai
│ │ └── hospital
│ │ ├── HospitalApplication.java
│ │ ├── controller
│ │ └── UserController.java
│ │ ├── dao
│ │ ├── CarorderMapper.java
│ │ ├── CarspaceMapper.java
│ │ ├── CarstationMapper.java
│ │ ├── MessageMapper.java
│ │ └── UserMapper.java
│ │ ├── po
│ │ ├── Carorder.java
│ │ ├── Carspace.java
│ │ ├── Carstation.java
│ │ ├── Message.java
│ │ └── User.java
│ │ └── service
│ │ ├── Impl
│ │ └── UserServiceImpl.java
│ │ └── UserService.java
└── resources
│ ├── application.properties
│ ├── logback-spring.xml
│ ├── mapper
│ ├── CarorderMapper.xml
│ ├── CarspaceMapper.xml
│ ├── CarstationMapper.xml
│ ├── MessageMapper.xml
│ └── UserMapper.xml
│ └── mybatis-generator-config.xml
└── test
└── java
└── com
└── aokai
└── hospital
└── HospitalApplicationTests.java
/.gitignore:
--------------------------------------------------------------------------------
1 | HELP.md
2 | target/
3 | !.mvn/wrapper/maven-wrapper.jar
4 | !**/src/main/**
5 | !**/src/test/**
6 |
7 | ### STS ###
8 | .apt_generated
9 | .classpath
10 | .factorypath
11 | .project
12 | .settings
13 | .springBeans
14 | .sts4-cache
15 |
16 | ### IntelliJ IDEA ###
17 | .idea
18 | *.iws
19 | *.iml
20 | *.ipr
21 |
22 | ### NetBeans ###
23 | /nbproject/private/
24 | /nbbuild/
25 | /dist/
26 | /nbdist/
27 | /.nb-gradle/
28 | build/
29 |
30 | ### VS Code ###
31 | .vscode/
32 |
--------------------------------------------------------------------------------
/.mvn/wrapper/MavenWrapperDownloader.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2007-present the original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import java.net.*;
18 | import java.io.*;
19 | import java.nio.channels.*;
20 | import java.util.Properties;
21 |
22 | public class MavenWrapperDownloader {
23 |
24 | private static final String WRAPPER_VERSION = "0.5.6";
25 | /**
26 | * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
27 | */
28 | private static final String DEFAULT_DOWNLOAD_URL =
29 | "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
30 | + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
31 |
32 | /**
33 | * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to use
34 | * instead of the default one.
35 | */
36 | private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
37 | ".mvn/wrapper/maven-wrapper.properties";
38 |
39 | /**
40 | * Path where the maven-wrapper.jar will be saved to.
41 | */
42 | private static final String MAVEN_WRAPPER_JAR_PATH =
43 | ".mvn/wrapper/maven-wrapper.jar";
44 |
45 | /**
46 | * Name of the property which should be used to override the default download url for the
47 | * wrapper.
48 | */
49 | private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
50 |
51 | public static void main(String args[]) {
52 | System.out.println("- Downloader started");
53 | File baseDirectory = new File(args[0]);
54 | System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
55 |
56 | // If the maven-wrapper.properties exists, read it and check if it contains a custom
57 | // wrapperUrl parameter.
58 | File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
59 | String url = DEFAULT_DOWNLOAD_URL;
60 | if (mavenWrapperPropertyFile.exists()) {
61 | FileInputStream mavenWrapperPropertyFileInputStream = null;
62 | try {
63 | mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
64 | Properties mavenWrapperProperties = new Properties();
65 | mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
66 | url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
67 | } catch (IOException e) {
68 | System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
69 | } finally {
70 | try {
71 | if (mavenWrapperPropertyFileInputStream != null) {
72 | mavenWrapperPropertyFileInputStream.close();
73 | }
74 | } catch (IOException e) {
75 | // Ignore ...
76 | }
77 | }
78 | }
79 | System.out.println("- Downloading from: " + url);
80 |
81 | File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
82 | if (!outputFile.getParentFile().exists()) {
83 | if (!outputFile.getParentFile().mkdirs()) {
84 | System.out.println(
85 | "- ERROR creating output directory '" + outputFile.getParentFile()
86 | .getAbsolutePath() + "'");
87 | }
88 | }
89 | System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
90 | try {
91 | downloadFileFromURL(url, outputFile);
92 | System.out.println("Done");
93 | System.exit(0);
94 | } catch (Throwable e) {
95 | System.out.println("- Error downloading");
96 | e.printStackTrace();
97 | System.exit(1);
98 | }
99 | }
100 |
101 | private static void downloadFileFromURL(String urlString, File destination) throws Exception {
102 | if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
103 | String username = System.getenv("MVNW_USERNAME");
104 | char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
105 | Authenticator.setDefault(new Authenticator() {
106 | @Override
107 | protected PasswordAuthentication getPasswordAuthentication() {
108 | return new PasswordAuthentication(username, password);
109 | }
110 | });
111 | }
112 | URL website = new URL(urlString);
113 | ReadableByteChannel rbc;
114 | rbc = Channels.newChannel(website.openStream());
115 | FileOutputStream fos = new FileOutputStream(destination);
116 | fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
117 | fos.close();
118 | rbc.close();
119 | }
120 |
121 | }
122 |
--------------------------------------------------------------------------------
/.mvn/wrapper/maven-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KevinAo1997/hospital/d2ffaa22786625a8d5ea18c5de8005d07b2c2810/.mvn/wrapper/maven-wrapper.jar
--------------------------------------------------------------------------------
/.mvn/wrapper/maven-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
3 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # hospital
2 | 基于springboot的医院预约挂号系统
3 |
--------------------------------------------------------------------------------
/logs/user/user.log:
--------------------------------------------------------------------------------
1 | 2020-03-29 20:38:55,985 INFO 7940 --- [main] org.springframework.boot.StartupInfoLogger.logStarting/55 : Starting Demo111Application on DESKTOP-HQCJC2V with PID 7940 (D:\IDEAWork\demo111\target\classes started by lenovo in D:\IDEAWork\demo111)
2 | 2020-03-29 20:38:55,992 INFO 7940 --- [main] org.springframework.boot.SpringApplication.logStartupProfileInfo/651 : No active profile set, falling back to default profiles: default
3 | 2020-03-29 20:38:57,299 WARN 7940 --- [main] org.mybatis.logging.Logger.warn/44 : No MyBatis mapper was found in '[com.aokai.hospital]' package. Please check your configuration.
4 | 2020-03-29 20:38:57,922 INFO 7940 --- [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize/92 : Tomcat initialized with port(s): 8081 (http)
5 | 2020-03-29 20:38:57,937 INFO 7940 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Initializing ProtocolHandler ["http-nio-8081"]
6 | 2020-03-29 20:38:57,938 INFO 7940 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Starting service [Tomcat]
7 | 2020-03-29 20:38:57,938 INFO 7940 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Starting Servlet engine: [Apache Tomcat/9.0.33]
8 | 2020-03-29 20:38:58,071 INFO 7940 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Initializing Spring embedded WebApplicationContext
9 | 2020-03-29 20:38:58,072 INFO 7940 --- [main] org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.prepareWebApplicationContext/284 : Root WebApplicationContext: initialization completed in 2009 ms
10 | 2020-03-29 20:38:59,097 INFO 7940 --- [main] org.springframework.scheduling.concurrent.ExecutorConfigurationSupport.initialize/181 : Initializing ExecutorService 'applicationTaskExecutor'
11 | 2020-03-29 20:38:59,246 INFO 7940 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeStaticCache/60 : Clear tk.mybatis.mapper.util.MsUtil CLASS_CACHE cache.
12 | 2020-03-29 20:38:59,247 INFO 7940 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeStaticCache/60 : Clear tk.mybatis.mapper.genid.GenIdUtil CACHE cache.
13 | 2020-03-29 20:38:59,249 INFO 7940 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeStaticCache/60 : Clear tk.mybatis.mapper.version.VersionUtil CACHE cache.
14 | 2020-03-29 20:38:59,250 INFO 7940 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeEntityHelperCache/83 : Clear EntityHelper entityTableMap cache.
15 | 2020-03-29 20:38:59,375 INFO 7940 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Starting ProtocolHandler ["http-nio-8081"]
16 | 2020-03-29 20:38:59,410 INFO 7940 --- [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start/204 : Tomcat started on port(s): 8081 (http) with context path ''
17 | 2020-03-29 20:38:59,418 INFO 7940 --- [main] org.springframework.boot.StartupInfoLogger.logStarted/61 : Started Demo111Application in 4.494 seconds (JVM running for 6.293)
18 | 2020-03-29 20:39:31,784 INFO 7940 --- [http-nio-8081-exec-2] org.apache.juli.logging.DirectJDKLog.log/173 : Initializing Spring DispatcherServlet 'dispatcherServlet'
19 | 2020-03-29 20:39:31,786 INFO 7940 --- [http-nio-8081-exec-2] org.springframework.web.servlet.FrameworkServlet.initServletBean/525 : Initializing Servlet 'dispatcherServlet'
20 | 2020-03-29 20:39:31,796 INFO 7940 --- [http-nio-8081-exec-2] org.springframework.web.servlet.FrameworkServlet.initServletBean/547 : Completed initialization in 9 ms
21 | 2020-03-29 20:39:38,575 INFO 7940 --- [http-nio-8081-exec-2] com.zaxxer.hikari.HikariDataSource.getConnection/110 : HikariPool-1 - Starting...
22 | 2020-03-29 20:39:39,282 INFO 7940 --- [http-nio-8081-exec-2] com.zaxxer.hikari.HikariDataSource.getConnection/123 : HikariPool-1 - Start completed.
23 | 2020-03-29 20:39:39,295 DEBUG 7940 --- [http-nio-8081-exec-2] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Preparing: update user set state=? where id=?
24 | 2020-03-29 20:39:39,328 DEBUG 7940 --- [http-nio-8081-exec-2] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Parameters: 0(Integer), 4(Integer)
25 | 2020-03-29 20:39:39,502 DEBUG 7940 --- [http-nio-8081-exec-2] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : <== Updates: 1
26 | 2020-03-29 23:43:10,983 INFO 7940 --- [SpringContextShutdownHook] org.springframework.scheduling.concurrent.ExecutorConfigurationSupport.shutdown/218 : Shutting down ExecutorService 'applicationTaskExecutor'
27 | 2020-03-29 23:43:11,000 INFO 7940 --- [SpringContextShutdownHook] com.zaxxer.hikari.HikariDataSource.close/350 : HikariPool-1 - Shutdown initiated...
28 | 2020-03-29 23:43:11,013 INFO 7940 --- [SpringContextShutdownHook] com.zaxxer.hikari.HikariDataSource.close/352 : HikariPool-1 - Shutdown completed.
29 | 2020-03-30 11:01:20,007 INFO 13484 --- [main] org.springframework.boot.StartupInfoLogger.logStarting/55 : Starting ParkingApplication on DESKTOP-HQCJC2V with PID 13484 (D:\IDEAWork\parking\target\classes started by lenovo in D:\IDEAWork\parking)
30 | 2020-03-30 11:01:20,011 INFO 13484 --- [main] org.springframework.boot.SpringApplication.logStartupProfileInfo/651 : No active profile set, falling back to default profiles: default
31 | 2020-03-30 11:01:21,097 WARN 13484 --- [main] org.mybatis.logging.Logger.warn/44 : No MyBatis mapper was found in '[com.aokai.hospital]' package. Please check your configuration.
32 | 2020-03-30 11:01:21,614 INFO 13484 --- [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize/92 : Tomcat initialized with port(s): 8081 (http)
33 | 2020-03-30 11:01:21,626 INFO 13484 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Initializing ProtocolHandler ["http-nio-8081"]
34 | 2020-03-30 11:01:21,627 INFO 13484 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Starting service [Tomcat]
35 | 2020-03-30 11:01:21,628 INFO 13484 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Starting Servlet engine: [Apache Tomcat/9.0.33]
36 | 2020-03-30 11:01:21,748 INFO 13484 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Initializing Spring embedded WebApplicationContext
37 | 2020-03-30 11:01:21,748 INFO 13484 --- [main] org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.prepareWebApplicationContext/284 : Root WebApplicationContext: initialization completed in 1657 ms
38 | 2020-03-30 11:01:23,194 INFO 13484 --- [main] org.springframework.scheduling.concurrent.ExecutorConfigurationSupport.initialize/181 : Initializing ExecutorService 'applicationTaskExecutor'
39 | 2020-03-30 11:01:23,341 INFO 13484 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeStaticCache/60 : Clear tk.mybatis.mapper.util.MsUtil CLASS_CACHE cache.
40 | 2020-03-30 11:01:23,342 INFO 13484 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeStaticCache/60 : Clear tk.mybatis.mapper.genid.GenIdUtil CACHE cache.
41 | 2020-03-30 11:01:23,343 INFO 13484 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeStaticCache/60 : Clear tk.mybatis.mapper.version.VersionUtil CACHE cache.
42 | 2020-03-30 11:01:23,344 INFO 13484 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeEntityHelperCache/83 : Clear EntityHelper entityTableMap cache.
43 | 2020-03-30 11:01:23,515 INFO 13484 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Starting ProtocolHandler ["http-nio-8081"]
44 | 2020-03-30 11:01:23,557 INFO 13484 --- [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start/204 : Tomcat started on port(s): 8081 (http) with context path ''
45 | 2020-03-30 11:01:23,563 INFO 13484 --- [main] org.springframework.boot.StartupInfoLogger.logStarted/61 : Started ParkingApplication in 4.305 seconds (JVM running for 5.754)
46 | 2020-03-30 11:02:25,025 INFO 13484 --- [http-nio-8081-exec-1] org.apache.juli.logging.DirectJDKLog.log/173 : Initializing Spring DispatcherServlet 'dispatcherServlet'
47 | 2020-03-30 11:02:25,026 INFO 13484 --- [http-nio-8081-exec-1] org.springframework.web.servlet.FrameworkServlet.initServletBean/525 : Initializing Servlet 'dispatcherServlet'
48 | 2020-03-30 11:02:25,035 INFO 13484 --- [http-nio-8081-exec-1] org.springframework.web.servlet.FrameworkServlet.initServletBean/547 : Completed initialization in 9 ms
49 | 2020-03-30 11:02:53,558 WARN 13484 --- [http-nio-8081-exec-3] org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver.logException/199 : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported]
50 | 2020-03-30 11:12:14,492 ERROR 13484 --- [http-nio-8081-exec-5] org.apache.juli.logging.DirectJDKLog.log/175 : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: Optional int parameter 'id' is present but cannot be translated into a null value due to being declared as a primitive type. Consider declaring it as object wrapper for the corresponding primitive type.] with root cause
51 | java.lang.IllegalStateException: Optional int parameter 'id' is present but cannot be translated into a null value due to being declared as a primitive type. Consider declaring it as object wrapper for the corresponding primitive type.
52 | at org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.handleNullValue(AbstractNamedValueMethodArgumentResolver.java:245)
53 | at org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.resolveArgument(AbstractNamedValueMethodArgumentResolver.java:116)
54 | at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:121)
55 | at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:167)
56 | at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:134)
57 | at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105)
58 | at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:879)
59 | at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793)
60 | at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
61 | at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
62 | at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
63 | at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
64 | at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
65 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
66 | at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
67 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
68 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
69 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
70 | at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
71 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
72 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
73 | at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
74 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
75 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
76 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
77 | at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
78 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
79 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
80 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
81 | at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
82 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
83 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
84 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
85 | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
86 | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
87 | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
88 | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
89 | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
90 | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
91 | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
92 | at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
93 | at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
94 | at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
95 | at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1594)
96 | at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
97 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
98 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
99 | at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
100 | at java.lang.Thread.run(Thread.java:748)
101 | 2020-03-30 11:13:28,242 ERROR 13484 --- [http-nio-8081-exec-6] org.apache.juli.logging.DirectJDKLog.log/175 : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: Optional int parameter 'id' is present but cannot be translated into a null value due to being declared as a primitive type. Consider declaring it as object wrapper for the corresponding primitive type.] with root cause
102 | java.lang.IllegalStateException: Optional int parameter 'id' is present but cannot be translated into a null value due to being declared as a primitive type. Consider declaring it as object wrapper for the corresponding primitive type.
103 | at org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.handleNullValue(AbstractNamedValueMethodArgumentResolver.java:245)
104 | at org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.resolveArgument(AbstractNamedValueMethodArgumentResolver.java:116)
105 | at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:121)
106 | at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:167)
107 | at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:134)
108 | at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105)
109 | at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:879)
110 | at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793)
111 | at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
112 | at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
113 | at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
114 | at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
115 | at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
116 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
117 | at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
118 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
119 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
120 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
121 | at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
122 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
123 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
124 | at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
125 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
126 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
127 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
128 | at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
129 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
130 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
131 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
132 | at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
133 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
134 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
135 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
136 | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
137 | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
138 | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
139 | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
140 | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
141 | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
142 | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
143 | at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
144 | at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
145 | at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
146 | at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1594)
147 | at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
148 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
149 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
150 | at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
151 | at java.lang.Thread.run(Thread.java:748)
152 | 2020-03-30 11:15:27,485 INFO 13484 --- [SpringContextShutdownHook] org.springframework.scheduling.concurrent.ExecutorConfigurationSupport.shutdown/218 : Shutting down ExecutorService 'applicationTaskExecutor'
153 | 2020-03-30 11:15:38,675 INFO 4152 --- [main] org.springframework.boot.StartupInfoLogger.logStarting/55 : Starting ParkingApplication on DESKTOP-HQCJC2V with PID 4152 (D:\IDEAWork\parking\target\classes started by lenovo in D:\IDEAWork\parking)
154 | 2020-03-30 11:15:38,679 INFO 4152 --- [main] org.springframework.boot.SpringApplication.logStartupProfileInfo/651 : No active profile set, falling back to default profiles: default
155 | 2020-03-30 11:15:40,095 WARN 4152 --- [main] org.mybatis.logging.Logger.warn/44 : No MyBatis mapper was found in '[com.aokai.hospital]' package. Please check your configuration.
156 | 2020-03-30 11:15:40,575 INFO 4152 --- [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize/92 : Tomcat initialized with port(s): 8081 (http)
157 | 2020-03-30 11:15:40,588 INFO 4152 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Initializing ProtocolHandler ["http-nio-8081"]
158 | 2020-03-30 11:15:40,589 INFO 4152 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Starting service [Tomcat]
159 | 2020-03-30 11:15:40,589 INFO 4152 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Starting Servlet engine: [Apache Tomcat/9.0.33]
160 | 2020-03-30 11:15:40,684 INFO 4152 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Initializing Spring embedded WebApplicationContext
161 | 2020-03-30 11:15:40,685 INFO 4152 --- [main] org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.prepareWebApplicationContext/284 : Root WebApplicationContext: initialization completed in 1874 ms
162 | 2020-03-30 11:15:41,670 INFO 4152 --- [main] org.springframework.scheduling.concurrent.ExecutorConfigurationSupport.initialize/181 : Initializing ExecutorService 'applicationTaskExecutor'
163 | 2020-03-30 11:15:41,831 INFO 4152 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeStaticCache/60 : Clear tk.mybatis.mapper.util.MsUtil CLASS_CACHE cache.
164 | 2020-03-30 11:15:41,835 INFO 4152 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeStaticCache/60 : Clear tk.mybatis.mapper.genid.GenIdUtil CACHE cache.
165 | 2020-03-30 11:15:41,837 INFO 4152 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeStaticCache/60 : Clear tk.mybatis.mapper.version.VersionUtil CACHE cache.
166 | 2020-03-30 11:15:41,838 INFO 4152 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeEntityHelperCache/83 : Clear EntityHelper entityTableMap cache.
167 | 2020-03-30 11:15:42,005 INFO 4152 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Starting ProtocolHandler ["http-nio-8081"]
168 | 2020-03-30 11:15:42,034 INFO 4152 --- [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start/204 : Tomcat started on port(s): 8081 (http) with context path ''
169 | 2020-03-30 11:15:42,040 INFO 4152 --- [main] org.springframework.boot.StartupInfoLogger.logStarted/61 : Started ParkingApplication in 4.121 seconds (JVM running for 5.581)
170 | 2020-03-30 11:15:59,537 INFO 4152 --- [http-nio-8081-exec-1] org.apache.juli.logging.DirectJDKLog.log/173 : Initializing Spring DispatcherServlet 'dispatcherServlet'
171 | 2020-03-30 11:15:59,538 INFO 4152 --- [http-nio-8081-exec-1] org.springframework.web.servlet.FrameworkServlet.initServletBean/525 : Initializing Servlet 'dispatcherServlet'
172 | 2020-03-30 11:15:59,545 INFO 4152 --- [http-nio-8081-exec-1] org.springframework.web.servlet.FrameworkServlet.initServletBean/547 : Completed initialization in 6 ms
173 | 2020-03-30 11:16:17,716 INFO 4152 --- [http-nio-8081-exec-1] com.zaxxer.hikari.HikariDataSource.getConnection/110 : HikariPool-1 - Starting...
174 | 2020-03-30 11:16:18,354 INFO 4152 --- [http-nio-8081-exec-1] com.zaxxer.hikari.HikariDataSource.getConnection/123 : HikariPool-1 - Start completed.
175 | 2020-03-30 11:16:18,365 DEBUG 4152 --- [http-nio-8081-exec-1] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Preparing: update user set state=? where id=?
176 | 2020-03-30 11:16:18,406 DEBUG 4152 --- [http-nio-8081-exec-1] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Parameters: null, null
177 | 2020-03-30 11:16:18,473 DEBUG 4152 --- [http-nio-8081-exec-1] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : <== Updates: 0
178 | 2020-03-30 11:16:56,747 INFO 4152 --- [SpringContextShutdownHook] org.springframework.scheduling.concurrent.ExecutorConfigurationSupport.shutdown/218 : Shutting down ExecutorService 'applicationTaskExecutor'
179 | 2020-03-30 11:16:56,749 INFO 4152 --- [SpringContextShutdownHook] com.zaxxer.hikari.HikariDataSource.close/350 : HikariPool-1 - Shutdown initiated...
180 | 2020-03-30 11:16:56,762 INFO 4152 --- [SpringContextShutdownHook] com.zaxxer.hikari.HikariDataSource.close/352 : HikariPool-1 - Shutdown completed.
181 | 2020-03-30 11:17:03,378 INFO 1964 --- [main] org.springframework.boot.StartupInfoLogger.logStarting/55 : Starting ParkingApplication on DESKTOP-HQCJC2V with PID 1964 (D:\IDEAWork\parking\target\classes started by lenovo in D:\IDEAWork\parking)
182 | 2020-03-30 11:17:03,382 INFO 1964 --- [main] org.springframework.boot.SpringApplication.logStartupProfileInfo/651 : No active profile set, falling back to default profiles: default
183 | 2020-03-30 11:17:04,583 WARN 1964 --- [main] org.mybatis.logging.Logger.warn/44 : No MyBatis mapper was found in '[com.aokai.hospital]' package. Please check your configuration.
184 | 2020-03-30 11:17:05,062 INFO 1964 --- [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize/92 : Tomcat initialized with port(s): 8081 (http)
185 | 2020-03-30 11:17:05,072 INFO 1964 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Initializing ProtocolHandler ["http-nio-8081"]
186 | 2020-03-30 11:17:05,073 INFO 1964 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Starting service [Tomcat]
187 | 2020-03-30 11:17:05,073 INFO 1964 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Starting Servlet engine: [Apache Tomcat/9.0.33]
188 | 2020-03-30 11:17:05,170 INFO 1964 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Initializing Spring embedded WebApplicationContext
189 | 2020-03-30 11:17:05,171 INFO 1964 --- [main] org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.prepareWebApplicationContext/284 : Root WebApplicationContext: initialization completed in 1724 ms
190 | 2020-03-30 11:17:05,993 INFO 1964 --- [main] org.springframework.scheduling.concurrent.ExecutorConfigurationSupport.initialize/181 : Initializing ExecutorService 'applicationTaskExecutor'
191 | 2020-03-30 11:17:06,115 INFO 1964 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeStaticCache/60 : Clear tk.mybatis.mapper.util.MsUtil CLASS_CACHE cache.
192 | 2020-03-30 11:17:06,116 INFO 1964 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeStaticCache/60 : Clear tk.mybatis.mapper.genid.GenIdUtil CACHE cache.
193 | 2020-03-30 11:17:06,117 INFO 1964 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeStaticCache/60 : Clear tk.mybatis.mapper.version.VersionUtil CACHE cache.
194 | 2020-03-30 11:17:06,118 INFO 1964 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeEntityHelperCache/83 : Clear EntityHelper entityTableMap cache.
195 | 2020-03-30 11:17:06,238 INFO 1964 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Starting ProtocolHandler ["http-nio-8081"]
196 | 2020-03-30 11:17:06,268 INFO 1964 --- [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start/204 : Tomcat started on port(s): 8081 (http) with context path ''
197 | 2020-03-30 11:17:06,275 INFO 1964 --- [main] org.springframework.boot.StartupInfoLogger.logStarted/61 : Started ParkingApplication in 3.666 seconds (JVM running for 5.065)
198 | 2020-03-30 11:17:57,222 INFO 1964 --- [http-nio-8081-exec-1] org.apache.juli.logging.DirectJDKLog.log/173 : Initializing Spring DispatcherServlet 'dispatcherServlet'
199 | 2020-03-30 11:17:57,223 INFO 1964 --- [http-nio-8081-exec-1] org.springframework.web.servlet.FrameworkServlet.initServletBean/525 : Initializing Servlet 'dispatcherServlet'
200 | 2020-03-30 11:17:57,232 INFO 1964 --- [http-nio-8081-exec-1] org.springframework.web.servlet.FrameworkServlet.initServletBean/547 : Completed initialization in 8 ms
201 | 2020-03-30 11:18:08,838 INFO 1964 --- [http-nio-8081-exec-1] com.zaxxer.hikari.HikariDataSource.getConnection/110 : HikariPool-1 - Starting...
202 | 2020-03-30 11:18:09,418 INFO 1964 --- [http-nio-8081-exec-1] com.zaxxer.hikari.HikariDataSource.getConnection/123 : HikariPool-1 - Start completed.
203 | 2020-03-30 11:18:09,429 DEBUG 1964 --- [http-nio-8081-exec-1] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Preparing: update user set state=? where id=?
204 | 2020-03-30 11:18:09,464 DEBUG 1964 --- [http-nio-8081-exec-1] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Parameters: null, null
205 | 2020-03-30 11:18:09,525 DEBUG 1964 --- [http-nio-8081-exec-1] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : <== Updates: 0
206 | 2020-03-30 11:18:51,784 DEBUG 1964 --- [http-nio-8081-exec-3] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Preparing: update user set state=? where id=?
207 | 2020-03-30 11:18:51,785 DEBUG 1964 --- [http-nio-8081-exec-3] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Parameters: null, null
208 | 2020-03-30 11:18:51,854 DEBUG 1964 --- [http-nio-8081-exec-3] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : <== Updates: 0
209 | 2020-03-30 11:20:08,301 DEBUG 1964 --- [http-nio-8081-exec-4] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Preparing: update user set state=? where id=?
210 | 2020-03-30 11:20:08,302 DEBUG 1964 --- [http-nio-8081-exec-4] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Parameters: 1(Integer), 4(Integer)
211 | 2020-03-30 11:20:08,387 DEBUG 1964 --- [http-nio-8081-exec-4] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : <== Updates: 1
212 | 2020-03-30 11:20:52,450 WARN 1964 --- [http-nio-8081-exec-5] org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver.logException/199 : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported]
213 | 2020-03-30 11:21:04,825 DEBUG 1964 --- [http-nio-8081-exec-6] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Preparing: update user set state=? where id=?
214 | 2020-03-30 11:21:04,826 DEBUG 1964 --- [http-nio-8081-exec-6] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Parameters: 1(Integer), 4(Integer)
215 | 2020-03-30 11:21:04,884 DEBUG 1964 --- [http-nio-8081-exec-6] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : <== Updates: 1
216 | 2020-03-30 11:22:17,100 DEBUG 1964 --- [http-nio-8081-exec-8] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Preparing: update user set state=? where id=?
217 | 2020-03-30 11:22:17,101 DEBUG 1964 --- [http-nio-8081-exec-8] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Parameters: 0(Integer), 4(Integer)
218 | 2020-03-30 11:22:17,222 DEBUG 1964 --- [http-nio-8081-exec-8] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : <== Updates: 1
219 | 2020-03-30 11:28:20,577 INFO 1964 --- [SpringContextShutdownHook] org.springframework.scheduling.concurrent.ExecutorConfigurationSupport.shutdown/218 : Shutting down ExecutorService 'applicationTaskExecutor'
220 | 2020-03-30 11:28:20,578 INFO 1964 --- [SpringContextShutdownHook] com.zaxxer.hikari.HikariDataSource.close/350 : HikariPool-1 - Shutdown initiated...
221 | 2020-03-30 11:28:20,598 INFO 1964 --- [SpringContextShutdownHook] com.zaxxer.hikari.HikariDataSource.close/352 : HikariPool-1 - Shutdown completed.
222 | 2020-03-30 11:28:27,358 INFO 1604 --- [main] org.springframework.boot.StartupInfoLogger.logStarting/55 : Starting ParkingApplication on DESKTOP-HQCJC2V with PID 1604 (D:\IDEAWork\parking\target\classes started by lenovo in D:\IDEAWork\parking)
223 | 2020-03-30 11:28:27,365 INFO 1604 --- [main] org.springframework.boot.SpringApplication.logStartupProfileInfo/651 : No active profile set, falling back to default profiles: default
224 | 2020-03-30 11:28:28,791 WARN 1604 --- [main] org.mybatis.logging.Logger.warn/44 : No MyBatis mapper was found in '[com.aokai.hospital]' package. Please check your configuration.
225 | 2020-03-30 11:28:29,340 INFO 1604 --- [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize/92 : Tomcat initialized with port(s): 8081 (http)
226 | 2020-03-30 11:28:29,352 INFO 1604 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Initializing ProtocolHandler ["http-nio-8081"]
227 | 2020-03-30 11:28:29,353 INFO 1604 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Starting service [Tomcat]
228 | 2020-03-30 11:28:29,354 INFO 1604 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Starting Servlet engine: [Apache Tomcat/9.0.33]
229 | 2020-03-30 11:28:29,460 INFO 1604 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Initializing Spring embedded WebApplicationContext
230 | 2020-03-30 11:28:29,461 INFO 1604 --- [main] org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.prepareWebApplicationContext/284 : Root WebApplicationContext: initialization completed in 1868 ms
231 | 2020-03-30 11:28:30,257 INFO 1604 --- [main] org.springframework.scheduling.concurrent.ExecutorConfigurationSupport.initialize/181 : Initializing ExecutorService 'applicationTaskExecutor'
232 | 2020-03-30 11:28:30,391 INFO 1604 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeStaticCache/60 : Clear tk.mybatis.mapper.util.MsUtil CLASS_CACHE cache.
233 | 2020-03-30 11:28:30,392 INFO 1604 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeStaticCache/60 : Clear tk.mybatis.mapper.genid.GenIdUtil CACHE cache.
234 | 2020-03-30 11:28:30,395 INFO 1604 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeStaticCache/60 : Clear tk.mybatis.mapper.version.VersionUtil CACHE cache.
235 | 2020-03-30 11:28:30,396 INFO 1604 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeEntityHelperCache/83 : Clear EntityHelper entityTableMap cache.
236 | 2020-03-30 11:28:30,526 INFO 1604 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Starting ProtocolHandler ["http-nio-8081"]
237 | 2020-03-30 11:28:30,560 INFO 1604 --- [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start/204 : Tomcat started on port(s): 8081 (http) with context path ''
238 | 2020-03-30 11:28:30,564 INFO 1604 --- [main] org.springframework.boot.StartupInfoLogger.logStarted/61 : Started ParkingApplication in 4.037 seconds (JVM running for 5.196)
239 | 2020-03-30 11:28:37,080 INFO 1604 --- [http-nio-8081-exec-1] org.apache.juli.logging.DirectJDKLog.log/173 : Initializing Spring DispatcherServlet 'dispatcherServlet'
240 | 2020-03-30 11:28:37,081 INFO 1604 --- [http-nio-8081-exec-1] org.springframework.web.servlet.FrameworkServlet.initServletBean/525 : Initializing Servlet 'dispatcherServlet'
241 | 2020-03-30 11:28:37,094 INFO 1604 --- [http-nio-8081-exec-1] org.springframework.web.servlet.FrameworkServlet.initServletBean/547 : Completed initialization in 13 ms
242 | 2020-03-30 11:28:41,280 INFO 1604 --- [http-nio-8081-exec-1] com.zaxxer.hikari.HikariDataSource.getConnection/110 : HikariPool-1 - Starting...
243 | 2020-03-30 11:28:41,929 INFO 1604 --- [http-nio-8081-exec-1] com.zaxxer.hikari.HikariDataSource.getConnection/123 : HikariPool-1 - Start completed.
244 | 2020-03-30 11:28:41,943 DEBUG 1604 --- [http-nio-8081-exec-1] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Preparing: update user set state=? where id=?
245 | 2020-03-30 11:28:41,981 DEBUG 1604 --- [http-nio-8081-exec-1] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Parameters: 1(Integer), 4(Integer)
246 | 2020-03-30 11:28:42,113 DEBUG 1604 --- [http-nio-8081-exec-1] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : <== Updates: 1
247 | 2020-03-30 11:28:51,780 DEBUG 1604 --- [http-nio-8081-exec-3] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Preparing: update user set state=? where id=?
248 | 2020-03-30 11:28:51,781 DEBUG 1604 --- [http-nio-8081-exec-3] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Parameters: 1(Integer), 4(Integer)
249 | 2020-03-30 11:28:51,846 DEBUG 1604 --- [http-nio-8081-exec-3] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : <== Updates: 1
250 | 2020-03-30 11:32:03,721 DEBUG 1604 --- [http-nio-8081-exec-6] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Preparing: update user set state=? where id=?
251 | 2020-03-30 11:32:03,722 DEBUG 1604 --- [http-nio-8081-exec-6] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : ==> Parameters: 0(Integer), 4(Integer)
252 | 2020-03-30 11:32:03,791 DEBUG 1604 --- [http-nio-8081-exec-6] org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug/143 : <== Updates: 1
253 | 2020-04-05 16:39:57,522 INFO 8700 --- [main] org.springframework.boot.StartupInfoLogger.logStarting/55 : Starting HospitalApplication on DESKTOP-HQCJC2V with PID 8700 (D:\IDEAWork\hospital\target\classes started by lenovo in D:\IDEAWork\hospital)
254 | 2020-04-05 16:39:57,526 INFO 8700 --- [main] org.springframework.boot.SpringApplication.logStartupProfileInfo/651 : No active profile set, falling back to default profiles: default
255 | 2020-04-05 16:39:58,308 WARN 8700 --- [main] org.mybatis.logging.Logger.warn/44 : No MyBatis mapper was found in '[com.aokai.hospital]' package. Please check your configuration.
256 | 2020-04-05 16:39:58,704 INFO 8700 --- [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize/92 : Tomcat initialized with port(s): 8081 (http)
257 | 2020-04-05 16:39:58,714 INFO 8700 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Initializing ProtocolHandler ["http-nio-8081"]
258 | 2020-04-05 16:39:58,716 INFO 8700 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Starting service [Tomcat]
259 | 2020-04-05 16:39:58,716 INFO 8700 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Starting Servlet engine: [Apache Tomcat/9.0.33]
260 | 2020-04-05 16:39:58,805 INFO 8700 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Initializing Spring embedded WebApplicationContext
261 | 2020-04-05 16:39:58,805 INFO 8700 --- [main] org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.prepareWebApplicationContext/284 : Root WebApplicationContext: initialization completed in 1231 ms
262 | 2020-04-05 16:39:59,485 INFO 8700 --- [main] org.springframework.scheduling.concurrent.ExecutorConfigurationSupport.initialize/181 : Initializing ExecutorService 'applicationTaskExecutor'
263 | 2020-04-05 16:39:59,670 INFO 8700 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeStaticCache/60 : Clear tk.mybatis.mapper.util.MsUtil CLASS_CACHE cache.
264 | 2020-04-05 16:39:59,671 INFO 8700 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeStaticCache/60 : Clear tk.mybatis.mapper.genid.GenIdUtil CACHE cache.
265 | 2020-04-05 16:39:59,672 INFO 8700 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeStaticCache/60 : Clear tk.mybatis.mapper.version.VersionUtil CACHE cache.
266 | 2020-04-05 16:39:59,672 INFO 8700 --- [main] tk.mybatis.mapper.autoconfigure.MapperCacheDisabler.removeEntityHelperCache/83 : Clear EntityHelper entityTableMap cache.
267 | 2020-04-05 16:39:59,795 INFO 8700 --- [main] org.apache.juli.logging.DirectJDKLog.log/173 : Starting ProtocolHandler ["http-nio-8081"]
268 | 2020-04-05 16:39:59,821 INFO 8700 --- [main] org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start/204 : Tomcat started on port(s): 8081 (http) with context path ''
269 | 2020-04-05 16:39:59,825 INFO 8700 --- [main] org.springframework.boot.StartupInfoLogger.logStarted/61 : Started HospitalApplication in 2.949 seconds (JVM running for 5.116)
270 | 2020-04-05 16:40:37,631 INFO 8700 --- [http-nio-8081-exec-1] org.apache.juli.logging.DirectJDKLog.log/173 : Initializing Spring DispatcherServlet 'dispatcherServlet'
271 | 2020-04-05 16:40:37,632 INFO 8700 --- [http-nio-8081-exec-1] org.springframework.web.servlet.FrameworkServlet.initServletBean/525 : Initializing Servlet 'dispatcherServlet'
272 | 2020-04-05 16:40:37,641 INFO 8700 --- [http-nio-8081-exec-1] org.springframework.web.servlet.FrameworkServlet.initServletBean/547 : Completed initialization in 6 ms
273 |
--------------------------------------------------------------------------------
/mvnw:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # ----------------------------------------------------------------------------
3 | # Licensed to the Apache Software Foundation (ASF) under one
4 | # or more contributor license agreements. See the NOTICE file
5 | # distributed with this work for additional information
6 | # regarding copyright ownership. The ASF licenses this file
7 | # to you under the Apache License, Version 2.0 (the
8 | # "License"); you may not use this file except in compliance
9 | # with the License. You may obtain a copy of the License at
10 | #
11 | # https://www.apache.org/licenses/LICENSE-2.0
12 | #
13 | # Unless required by applicable law or agreed to in writing,
14 | # software distributed under the License is distributed on an
15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | # KIND, either express or implied. See the License for the
17 | # specific language governing permissions and limitations
18 | # under the License.
19 | # ----------------------------------------------------------------------------
20 |
21 | # ----------------------------------------------------------------------------
22 | # Maven Start Up Batch script
23 | #
24 | # Required ENV vars:
25 | # ------------------
26 | # JAVA_HOME - location of a JDK home dir
27 | #
28 | # Optional ENV vars
29 | # -----------------
30 | # M2_HOME - location of maven2's installed home dir
31 | # MAVEN_OPTS - parameters passed to the Java VM when running Maven
32 | # e.g. to debug Maven itself, use
33 | # set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
34 | # MAVEN_SKIP_RC - flag to disable loading of mavenrc files
35 | # ----------------------------------------------------------------------------
36 |
37 | if [ -z "$MAVEN_SKIP_RC" ]; then
38 |
39 | if [ -f /etc/mavenrc ]; then
40 | . /etc/mavenrc
41 | fi
42 |
43 | if [ -f "$HOME/.mavenrc" ]; then
44 | . "$HOME/.mavenrc"
45 | fi
46 |
47 | fi
48 |
49 | # OS specific support. $var _must_ be set to either true or false.
50 | cygwin=false
51 | darwin=false
52 | mingw=false
53 | case "$(uname)" in
54 | CYGWIN*) cygwin=true ;;
55 | MINGW*) mingw=true ;;
56 | Darwin*)
57 | darwin=true
58 | # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
59 | # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
60 | if [ -z "$JAVA_HOME" ]; then
61 | if [ -x "/usr/libexec/java_home" ]; then
62 | export JAVA_HOME="$(/usr/libexec/java_home)"
63 | else
64 | export JAVA_HOME="/Library/Java/Home"
65 | fi
66 | fi
67 | ;;
68 | esac
69 |
70 | if [ -z "$JAVA_HOME" ]; then
71 | if [ -r /etc/gentoo-release ]; then
72 | JAVA_HOME=$(java-config --jre-home)
73 | fi
74 | fi
75 |
76 | if [ -z "$M2_HOME" ]; then
77 | ## resolve links - $0 may be a link to maven's home
78 | PRG="$0"
79 |
80 | # need this for relative symlinks
81 | while [ -h "$PRG" ]; do
82 | ls=$(ls -ld "$PRG")
83 | link=$(expr "$ls" : '.*-> \(.*\)$')
84 | if expr "$link" : '/.*' >/dev/null; then
85 | PRG="$link"
86 | else
87 | PRG="$(dirname "$PRG")/$link"
88 | fi
89 | done
90 |
91 | saveddir=$(pwd)
92 |
93 | M2_HOME=$(dirname "$PRG")/..
94 |
95 | # make it fully qualified
96 | M2_HOME=$(cd "$M2_HOME" && pwd)
97 |
98 | cd "$saveddir"
99 | # echo Using m2 at $M2_HOME
100 | fi
101 |
102 | # For Cygwin, ensure paths are in UNIX format before anything is touched
103 | if $cygwin; then
104 | [ -n "$M2_HOME" ] &&
105 | M2_HOME=$(cygpath --unix "$M2_HOME")
106 | [ -n "$JAVA_HOME" ] &&
107 | JAVA_HOME=$(cygpath --unix "$JAVA_HOME")
108 | [ -n "$CLASSPATH" ] &&
109 | CLASSPATH=$(cygpath --path --unix "$CLASSPATH")
110 | fi
111 |
112 | # For Mingw, ensure paths are in UNIX format before anything is touched
113 | if $mingw; then
114 | [ -n "$M2_HOME" ] &&
115 | M2_HOME="$( (
116 | cd "$M2_HOME"
117 | pwd
118 | ))"
119 | [ -n "$JAVA_HOME" ] &&
120 | JAVA_HOME="$( (
121 | cd "$JAVA_HOME"
122 | pwd
123 | ))"
124 | fi
125 |
126 | if [ -z "$JAVA_HOME" ]; then
127 | javaExecutable="$(which javac)"
128 | if [ -n "$javaExecutable" ] && ! [ "$(expr \"$javaExecutable\" : '\([^ ]*\)')" = "no" ]; then
129 | # readlink(1) is not available as standard on Solaris 10.
130 | readLink=$(which readlink)
131 | if [ ! $(expr "$readLink" : '\([^ ]*\)') = "no" ]; then
132 | if $darwin; then
133 | javaHome="$(dirname \"$javaExecutable\")"
134 | javaExecutable="$(cd \"$javaHome\" && pwd -P)/javac"
135 | else
136 | javaExecutable="$(readlink -f \"$javaExecutable\")"
137 | fi
138 | javaHome="$(dirname \"$javaExecutable\")"
139 | javaHome=$(expr "$javaHome" : '\(.*\)/bin')
140 | JAVA_HOME="$javaHome"
141 | export JAVA_HOME
142 | fi
143 | fi
144 | fi
145 |
146 | if [ -z "$JAVACMD" ]; then
147 | if [ -n "$JAVA_HOME" ]; then
148 | if [ -x "$JAVA_HOME/jre/sh/java" ]; then
149 | # IBM's JDK on AIX uses strange locations for the executables
150 | JAVACMD="$JAVA_HOME/jre/sh/java"
151 | else
152 | JAVACMD="$JAVA_HOME/bin/java"
153 | fi
154 | else
155 | JAVACMD="$(which java)"
156 | fi
157 | fi
158 |
159 | if [ ! -x "$JAVACMD" ]; then
160 | echo "Error: JAVA_HOME is not defined correctly." >&2
161 | echo " We cannot execute $JAVACMD" >&2
162 | exit 1
163 | fi
164 |
165 | if [ -z "$JAVA_HOME" ]; then
166 | echo "Warning: JAVA_HOME environment variable is not set."
167 | fi
168 |
169 | CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
170 |
171 | # traverses directory structure from process work directory to filesystem root
172 | # first directory with .mvn subdirectory is considered project base directory
173 | find_maven_basedir() {
174 |
175 | if [ -z "$1" ]; then
176 | echo "Path not specified to find_maven_basedir"
177 | return 1
178 | fi
179 |
180 | basedir="$1"
181 | wdir="$1"
182 | while [ "$wdir" != '/' ]; do
183 | if [ -d "$wdir"/.mvn ]; then
184 | basedir=$wdir
185 | break
186 | fi
187 | # workaround for JBEAP-8937 (on Solaris 10/Sparc)
188 | if [ -d "${wdir}" ]; then
189 | wdir=$(
190 | cd "$wdir/.."
191 | pwd
192 | )
193 | fi
194 | # end of workaround
195 | done
196 | echo "${basedir}"
197 | }
198 |
199 | # concatenates all lines of a file
200 | concat_lines() {
201 | if [ -f "$1" ]; then
202 | echo "$(tr -s '\n' ' ' <"$1")"
203 | fi
204 | }
205 |
206 | BASE_DIR=$(find_maven_basedir "$(pwd)")
207 | if [ -z "$BASE_DIR" ]; then
208 | exit 1
209 | fi
210 |
211 | ##########################################################################################
212 | # Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
213 | # This allows using the maven wrapper in projects that prohibit checking in binary data.
214 | ##########################################################################################
215 | if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
216 | if [ "$MVNW_VERBOSE" = true ]; then
217 | echo "Found .mvn/wrapper/maven-wrapper.jar"
218 | fi
219 | else
220 | if [ "$MVNW_VERBOSE" = true ]; then
221 | echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
222 | fi
223 | if [ -n "$MVNW_REPOURL" ]; then
224 | jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
225 | else
226 | jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
227 | fi
228 | while IFS="=" read key value; do
229 | case "$key" in wrapperUrl)
230 | jarUrl="$value"
231 | break
232 | ;;
233 | esac
234 | done <"$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
235 | if [ "$MVNW_VERBOSE" = true ]; then
236 | echo "Downloading from: $jarUrl"
237 | fi
238 | wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
239 | if $cygwin; then
240 | wrapperJarPath=$(cygpath --path --windows "$wrapperJarPath")
241 | fi
242 |
243 | if command -v wget >/dev/null; then
244 | if [ "$MVNW_VERBOSE" = true ]; then
245 | echo "Found wget ... using wget"
246 | fi
247 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
248 | wget "$jarUrl" -O "$wrapperJarPath"
249 | else
250 | wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
251 | fi
252 | elif command -v curl >/dev/null; then
253 | if [ "$MVNW_VERBOSE" = true ]; then
254 | echo "Found curl ... using curl"
255 | fi
256 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
257 | curl -o "$wrapperJarPath" "$jarUrl" -f
258 | else
259 | curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
260 | fi
261 |
262 | else
263 | if [ "$MVNW_VERBOSE" = true ]; then
264 | echo "Falling back to using Java to download"
265 | fi
266 | javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
267 | # For Cygwin, switch paths to Windows format before running javac
268 | if $cygwin; then
269 | javaClass=$(cygpath --path --windows "$javaClass")
270 | fi
271 | if [ -e "$javaClass" ]; then
272 | if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
273 | if [ "$MVNW_VERBOSE" = true ]; then
274 | echo " - Compiling MavenWrapperDownloader.java ..."
275 | fi
276 | # Compiling the Java class
277 | ("$JAVA_HOME/bin/javac" "$javaClass")
278 | fi
279 | if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
280 | # Running the downloader
281 | if [ "$MVNW_VERBOSE" = true ]; then
282 | echo " - Running MavenWrapperDownloader.java ..."
283 | fi
284 | ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
285 | fi
286 | fi
287 | fi
288 | fi
289 | ##########################################################################################
290 | # End of extension
291 | ##########################################################################################
292 |
293 | export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
294 | if [ "$MVNW_VERBOSE" = true ]; then
295 | echo $MAVEN_PROJECTBASEDIR
296 | fi
297 | MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
298 |
299 | # For Cygwin, switch paths to Windows format before running java
300 | if $cygwin; then
301 | [ -n "$M2_HOME" ] &&
302 | M2_HOME=$(cygpath --path --windows "$M2_HOME")
303 | [ -n "$JAVA_HOME" ] &&
304 | JAVA_HOME=$(cygpath --path --windows "$JAVA_HOME")
305 | [ -n "$CLASSPATH" ] &&
306 | CLASSPATH=$(cygpath --path --windows "$CLASSPATH")
307 | [ -n "$MAVEN_PROJECTBASEDIR" ] &&
308 | MAVEN_PROJECTBASEDIR=$(cygpath --path --windows "$MAVEN_PROJECTBASEDIR")
309 | fi
310 |
311 | # Provide a "standardized" way to retrieve the CLI args that will
312 | # work with both Windows and non-Windows executions.
313 | MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
314 | export MAVEN_CMD_LINE_ARGS
315 |
316 | WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
317 |
318 | exec "$JAVACMD" \
319 | $MAVEN_OPTS \
320 | -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
321 | "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
322 | ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
323 |
--------------------------------------------------------------------------------
/mvnw.cmd:
--------------------------------------------------------------------------------
1 | @REM ----------------------------------------------------------------------------
2 | @REM Licensed to the Apache Software Foundation (ASF) under one
3 | @REM or more contributor license agreements. See the NOTICE file
4 | @REM distributed with this work for additional information
5 | @REM regarding copyright ownership. The ASF licenses this file
6 | @REM to you under the Apache License, Version 2.0 (the
7 | @REM "License"); you may not use this file except in compliance
8 | @REM with the License. You may obtain a copy of the License at
9 | @REM
10 | @REM https://www.apache.org/licenses/LICENSE-2.0
11 | @REM
12 | @REM Unless required by applicable law or agreed to in writing,
13 | @REM software distributed under the License is distributed on an
14 | @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | @REM KIND, either express or implied. See the License for the
16 | @REM specific language governing permissions and limitations
17 | @REM under the License.
18 | @REM ----------------------------------------------------------------------------
19 |
20 | @REM ----------------------------------------------------------------------------
21 | @REM Maven Start Up Batch script
22 | @REM
23 | @REM Required ENV vars:
24 | @REM JAVA_HOME - location of a JDK home dir
25 | @REM
26 | @REM Optional ENV vars
27 | @REM M2_HOME - location of maven2's installed home dir
28 | @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29 | @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
30 | @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31 | @REM e.g. to debug Maven itself, use
32 | @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33 | @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
34 | @REM ----------------------------------------------------------------------------
35 |
36 | @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
37 | @echo off
38 | @REM set title of command window
39 | title %0
40 | @REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
41 | @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
42 |
43 | @REM set %HOME% to equivalent of $HOME
44 | if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
45 |
46 | @REM Execute a user defined script before this one
47 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
48 | @REM check for pre script, once with legacy .bat ending and once with .cmd ending
49 | if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
50 | if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
51 | :skipRcPre
52 |
53 | @setlocal
54 |
55 | set ERROR_CODE=0
56 |
57 | @REM To isolate internal variables from possible post scripts, we use another setlocal
58 | @setlocal
59 |
60 | @REM ==== START VALIDATION ====
61 | if not "%JAVA_HOME%" == "" goto OkJHome
62 |
63 | echo.
64 | echo Error: JAVA_HOME not found in your environment. >&2
65 | echo Please set the JAVA_HOME variable in your environment to match the >&2
66 | echo location of your Java installation. >&2
67 | echo.
68 | goto error
69 |
70 | :OkJHome
71 | if exist "%JAVA_HOME%\bin\java.exe" goto init
72 |
73 | echo.
74 | echo Error: JAVA_HOME is set to an invalid directory. >&2
75 | echo JAVA_HOME = "%JAVA_HOME%" >&2
76 | echo Please set the JAVA_HOME variable in your environment to match the >&2
77 | echo location of your Java installation. >&2
78 | echo.
79 | goto error
80 |
81 | @REM ==== END VALIDATION ====
82 |
83 | :init
84 |
85 | @REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
86 | @REM Fallback to current working directory if not found.
87 |
88 | set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
89 | IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
90 |
91 | set EXEC_DIR=%CD%
92 | set WDIR=%EXEC_DIR%
93 | :findBaseDir
94 | IF EXIST "%WDIR%"\.mvn goto baseDirFound
95 | cd ..
96 | IF "%WDIR%"=="%CD%" goto baseDirNotFound
97 | set WDIR=%CD%
98 | goto findBaseDir
99 |
100 | :baseDirFound
101 | set MAVEN_PROJECTBASEDIR=%WDIR%
102 | cd "%EXEC_DIR%"
103 | goto endDetectBaseDir
104 |
105 | :baseDirNotFound
106 | set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
107 | cd "%EXEC_DIR%"
108 |
109 | :endDetectBaseDir
110 |
111 | IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
112 |
113 | @setlocal EnableExtensions EnableDelayedExpansion
114 | for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
115 | @endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
116 |
117 | :endReadAdditionalConfig
118 |
119 | SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
120 | set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
121 | set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
122 |
123 | set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
124 |
125 | FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
126 | IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
127 | )
128 |
129 | @REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
130 | @REM This allows using the maven wrapper in projects that prohibit checking in binary data.
131 | if exist %WRAPPER_JAR% (
132 | if "%MVNW_VERBOSE%" == "true" (
133 | echo Found %WRAPPER_JAR%
134 | )
135 | ) else (
136 | if not "%MVNW_REPOURL%" == "" (
137 | SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
138 | )
139 | if "%MVNW_VERBOSE%" == "true" (
140 | echo Couldn't find %WRAPPER_JAR%, downloading it ...
141 | echo Downloading from: %DOWNLOAD_URL%
142 | )
143 |
144 | powershell -Command "&{"^
145 | "$webclient = new-object System.Net.WebClient;"^
146 | "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
147 | "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
148 | "}"^
149 | "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
150 | "}"
151 | if "%MVNW_VERBOSE%" == "true" (
152 | echo Finished downloading %WRAPPER_JAR%
153 | )
154 | )
155 | @REM End of extension
156 |
157 | @REM Provide a "standardized" way to retrieve the CLI args that will
158 | @REM work with both Windows and non-Windows executions.
159 | set MAVEN_CMD_LINE_ARGS=%*
160 |
161 | %MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
162 | if ERRORLEVEL 1 goto error
163 | goto end
164 |
165 | :error
166 | set ERROR_CODE=1
167 |
168 | :end
169 | @endlocal & set ERROR_CODE=%ERROR_CODE%
170 |
171 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
172 | @REM check for post script, once with legacy .bat ending and once with .cmd ending
173 | if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
174 | if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
175 | :skipRcPost
176 |
177 | @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
178 | if "%MAVEN_BATCH_PAUSE%" == "on" pause
179 |
180 | if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
181 |
182 | exit /B %ERROR_CODE%
183 |
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 | org.springframework.boot
8 | spring-boot-starter-parent
9 | 2.2.6.RELEASE
10 |
11 |
12 | com.aokai
13 | hospital
14 | 0.0.1-SNAPSHOT
15 | hospital
16 | Demo project for Spring Boot
17 |
18 |
19 | 1.8
20 | UTF-8
21 | UTF-8
22 |
23 | 2.1.0
24 | 2.1.5
25 | 1.2.12
26 |
27 |
28 |
29 |
30 |
31 |
32 | org.mybatis.spring.boot
33 | mybatis-spring-boot-starter
34 | ${mybatis-spring-boot-starter.version}
35 |
36 |
37 |
38 |
39 | tk.mybatis
40 | mapper-spring-boot-starter
41 | ${tk.mybatis.mapper-spring-boot-starter.version}
42 |
43 |
44 |
45 | com.github.pagehelper
46 | pagehelper-spring-boot-starter
47 | ${pagehelper-spring-boot-starter.version}
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 | org.mybatis.spring.boot
59 | mybatis-spring-boot-starter
60 | ${mybatis-spring-boot-starter.version}
61 |
62 |
63 |
64 |
65 | tk.mybatis
66 | mapper-spring-boot-starter
67 | ${tk.mybatis.mapper-spring-boot-starter.version}
68 |
69 |
70 |
71 | com.github.pagehelper
72 | pagehelper-spring-boot-starter
73 | ${pagehelper-spring-boot-starter.version}
74 |
75 |
76 |
77 |
78 | org.springframework.boot
79 | spring-boot-starter
80 |
81 |
82 |
83 | org.springframework.boot
84 | spring-boot-starter-web
85 |
86 |
87 |
88 | org.springframework.boot
89 | spring-boot-starter-test
90 | test
91 |
92 |
93 | org.junit.vintage
94 | junit-vintage-engine
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 | mysql
108 | mysql-connector-java
109 |
110 |
111 |
112 |
113 | org.mybatis.spring.boot
114 | mybatis-spring-boot-starter
115 |
116 |
117 |
118 |
119 | tk.mybatis
120 | mapper-spring-boot-starter
121 |
122 |
123 |
124 |
125 | tk.mybatis
126 | mapper
127 | 4.1.5
128 |
129 |
130 |
131 | com.github.pagehelper
132 | pagehelper-spring-boot-starter
133 |
134 |
135 |
136 |
137 | org.projectlombok
138 | lombok
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 | 华为maven仓库
148 | huawei
149 | https://mirrors.huaweicloud.com/repository/maven/
150 |
151 |
152 |
153 |
154 |
155 | 华为maven插件仓库
156 | huawei_plugin
157 | https://mirrors.huaweicloud.com/repository/maven/
158 |
159 |
160 |
161 |
162 |
163 |
164 | org.springframework.boot
165 | spring-boot-maven-plugin
166 |
167 |
168 |
169 |
170 | org.mybatis.generator
171 | mybatis-generator-maven-plugin
172 | 1.3.7
173 |
174 |
175 | src/main/resources/mybatis-generator-config.xml
176 |
177 | true
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 | mysql
191 | mysql-connector-java
192 | 8.0.17
193 |
194 |
195 |
196 | tk.mybatis
197 | mapper
198 | 4.1.5
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
--------------------------------------------------------------------------------
/src/main/java/com/aokai/hospital/HospitalApplication.java:
--------------------------------------------------------------------------------
1 | package com.aokai.hospital;
2 |
3 | import tk.mybatis.spring.annotation.MapperScan;
4 | import org.springframework.boot.SpringApplication;
5 | import org.springframework.boot.autoconfigure.SpringBootApplication;
6 |
7 | @MapperScan("com.aokai.hospital.dao")
8 | @SpringBootApplication
9 | public class HospitalApplication {
10 |
11 | public static void main(String[] args) {
12 | SpringApplication.run(HospitalApplication.class, args);
13 | }
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/src/main/java/com/aokai/hospital/controller/UserController.java:
--------------------------------------------------------------------------------
1 | package com.aokai.hospital.controller;
2 |
3 | import com.aokai.hospital.service.UserService;
4 | import org.springframework.beans.factory.annotation.Autowired;
5 | import org.springframework.web.bind.annotation.RequestMapping;
6 | import org.springframework.web.bind.annotation.RequestMethod;
7 | import org.springframework.web.bind.annotation.RestController;
8 |
9 | /**
10 | * Description : .
11 | *
12 | * @author : aokai
13 | * @date : Created in 2020/3/29 19:15
14 | */
15 | @RestController
16 | @RequestMapping(value = "/user")
17 | public class UserController {
18 |
19 | @Autowired
20 | private UserService userService;
21 |
22 | @RequestMapping(value = "/updateUserState", method = RequestMethod.POST)
23 | public String updateUserState(Integer id, Integer state) {
24 | Integer flag = userService.updateUserState(state, id);
25 | System.out.println(flag);
26 | String msg = null;
27 | if (flag == 1) {
28 | msg = "OK";
29 | return msg;
30 | } else {
31 | return msg;
32 | }
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/src/main/java/com/aokai/hospital/dao/CarorderMapper.java:
--------------------------------------------------------------------------------
1 | package com.aokai.hospital.dao;
2 |
3 | import com.aokai.hospital.po.Carorder;
4 | import tk.mybatis.mapper.common.Mapper;
5 |
6 | public interface CarorderMapper extends Mapper {
7 | }
8 |
--------------------------------------------------------------------------------
/src/main/java/com/aokai/hospital/dao/CarspaceMapper.java:
--------------------------------------------------------------------------------
1 | package com.aokai.hospital.dao;
2 |
3 | import com.aokai.hospital.po.Carspace;
4 | import tk.mybatis.mapper.common.Mapper;
5 |
6 | public interface CarspaceMapper extends Mapper {
7 | }
8 |
--------------------------------------------------------------------------------
/src/main/java/com/aokai/hospital/dao/CarstationMapper.java:
--------------------------------------------------------------------------------
1 | package com.aokai.hospital.dao;
2 |
3 | import com.aokai.hospital.po.Carstation;
4 | import tk.mybatis.mapper.common.Mapper;
5 |
6 | public interface CarstationMapper extends Mapper {
7 | }
8 |
--------------------------------------------------------------------------------
/src/main/java/com/aokai/hospital/dao/MessageMapper.java:
--------------------------------------------------------------------------------
1 | package com.aokai.hospital.dao;
2 |
3 | import com.aokai.hospital.po.Message;
4 | import tk.mybatis.mapper.common.Mapper;
5 |
6 | public interface MessageMapper extends Mapper {
7 | }
8 |
--------------------------------------------------------------------------------
/src/main/java/com/aokai/hospital/dao/UserMapper.java:
--------------------------------------------------------------------------------
1 | package com.aokai.hospital.dao;
2 |
3 | import com.aokai.hospital.po.User;
4 | import org.apache.ibatis.annotations.Param;
5 | import org.springframework.stereotype.Repository;
6 | import tk.mybatis.mapper.common.Mapper;
7 |
8 | @Repository
9 | public interface UserMapper extends Mapper {
10 |
11 | Integer updateUserState(@Param("state")Integer state, @Param("id")Integer id);
12 | }
13 |
--------------------------------------------------------------------------------
/src/main/java/com/aokai/hospital/po/Carorder.java:
--------------------------------------------------------------------------------
1 | package com.aokai.hospital.po;
2 |
3 | import java.util.Date;
4 | import javax.persistence.*;
5 |
6 | @Table(name = "carorder")
7 | public class Carorder {
8 | @Id
9 | private Integer id;
10 |
11 | private String province;
12 |
13 | @Column(name = "carNumber")
14 | private String carnumber;
15 |
16 | @Column(name = "customerName")
17 | private String customername;
18 |
19 | @Column(name = "customerPhone")
20 | private String customerphone;
21 |
22 | @Column(name = "startTime")
23 | private Date starttime;
24 |
25 | @Column(name = "endTime")
26 | private Date endtime;
27 |
28 | private Double cost;
29 |
30 | private Double time;
31 |
32 | private Integer state;
33 |
34 | private Integer cid;
35 |
36 | private Integer sid;
37 |
38 | private Integer uid;
39 |
40 | /**
41 | * @return id
42 | */
43 | public Integer getId() {
44 | return id;
45 | }
46 |
47 | /**
48 | * @param id
49 | */
50 | public void setId(Integer id) {
51 | this.id = id;
52 | }
53 |
54 | /**
55 | * @return province
56 | */
57 | public String getProvince() {
58 | return province;
59 | }
60 |
61 | /**
62 | * @param province
63 | */
64 | public void setProvince(String province) {
65 | this.province = province == null ? null : province.trim();
66 | }
67 |
68 | /**
69 | * @return carNumber
70 | */
71 | public String getCarnumber() {
72 | return carnumber;
73 | }
74 |
75 | /**
76 | * @param carnumber
77 | */
78 | public void setCarnumber(String carnumber) {
79 | this.carnumber = carnumber == null ? null : carnumber.trim();
80 | }
81 |
82 | /**
83 | * @return customerName
84 | */
85 | public String getCustomername() {
86 | return customername;
87 | }
88 |
89 | /**
90 | * @param customername
91 | */
92 | public void setCustomername(String customername) {
93 | this.customername = customername == null ? null : customername.trim();
94 | }
95 |
96 | /**
97 | * @return customerPhone
98 | */
99 | public String getCustomerphone() {
100 | return customerphone;
101 | }
102 |
103 | /**
104 | * @param customerphone
105 | */
106 | public void setCustomerphone(String customerphone) {
107 | this.customerphone = customerphone == null ? null : customerphone.trim();
108 | }
109 |
110 | /**
111 | * @return startTime
112 | */
113 | public Date getStarttime() {
114 | return starttime;
115 | }
116 |
117 | /**
118 | * @param starttime
119 | */
120 | public void setStarttime(Date starttime) {
121 | this.starttime = starttime;
122 | }
123 |
124 | /**
125 | * @return endTime
126 | */
127 | public Date getEndtime() {
128 | return endtime;
129 | }
130 |
131 | /**
132 | * @param endtime
133 | */
134 | public void setEndtime(Date endtime) {
135 | this.endtime = endtime;
136 | }
137 |
138 | /**
139 | * @return cost
140 | */
141 | public Double getCost() {
142 | return cost;
143 | }
144 |
145 | /**
146 | * @param cost
147 | */
148 | public void setCost(Double cost) {
149 | this.cost = cost;
150 | }
151 |
152 | /**
153 | * @return time
154 | */
155 | public Double getTime() {
156 | return time;
157 | }
158 |
159 | /**
160 | * @param time
161 | */
162 | public void setTime(Double time) {
163 | this.time = time;
164 | }
165 |
166 | /**
167 | * @return state
168 | */
169 | public Integer getState() {
170 | return state;
171 | }
172 |
173 | /**
174 | * @param state
175 | */
176 | public void setState(Integer state) {
177 | this.state = state;
178 | }
179 |
180 | /**
181 | * @return cid
182 | */
183 | public Integer getCid() {
184 | return cid;
185 | }
186 |
187 | /**
188 | * @param cid
189 | */
190 | public void setCid(Integer cid) {
191 | this.cid = cid;
192 | }
193 |
194 | /**
195 | * @return sid
196 | */
197 | public Integer getSid() {
198 | return sid;
199 | }
200 |
201 | /**
202 | * @param sid
203 | */
204 | public void setSid(Integer sid) {
205 | this.sid = sid;
206 | }
207 |
208 | /**
209 | * @return uid
210 | */
211 | public Integer getUid() {
212 | return uid;
213 | }
214 |
215 | /**
216 | * @param uid
217 | */
218 | public void setUid(Integer uid) {
219 | this.uid = uid;
220 | }
221 | }
222 |
--------------------------------------------------------------------------------
/src/main/java/com/aokai/hospital/po/Carspace.java:
--------------------------------------------------------------------------------
1 | package com.aokai.hospital.po;
2 |
3 | import javax.persistence.*;
4 |
5 | @Table(name = "carspace")
6 | public class Carspace {
7 | @Id
8 | @Column(name = "s_id")
9 | private Integer sId;
10 |
11 | @Column(name = "s_name")
12 | private String sName;
13 |
14 | @Column(name = "s_location")
15 | private String sLocation;
16 |
17 | @Column(name = "s_state")
18 | private Integer sState;
19 |
20 | @Column(name = "s_type")
21 | private Integer sType;
22 |
23 | @Column(name = "s_price")
24 | private Double sPrice;
25 |
26 | @Column(name = "s_pricetime")
27 | private Double sPricetime;
28 |
29 | @Column(name = "c_id")
30 | private Integer cId;
31 |
32 | /**
33 | * @return s_id
34 | */
35 | public Integer getsId() {
36 | return sId;
37 | }
38 |
39 | /**
40 | * @param sId
41 | */
42 | public void setsId(Integer sId) {
43 | this.sId = sId;
44 | }
45 |
46 | /**
47 | * @return s_name
48 | */
49 | public String getsName() {
50 | return sName;
51 | }
52 |
53 | /**
54 | * @param sName
55 | */
56 | public void setsName(String sName) {
57 | this.sName = sName == null ? null : sName.trim();
58 | }
59 |
60 | /**
61 | * @return s_location
62 | */
63 | public String getsLocation() {
64 | return sLocation;
65 | }
66 |
67 | /**
68 | * @param sLocation
69 | */
70 | public void setsLocation(String sLocation) {
71 | this.sLocation = sLocation == null ? null : sLocation.trim();
72 | }
73 |
74 | /**
75 | * @return s_state
76 | */
77 | public Integer getsState() {
78 | return sState;
79 | }
80 |
81 | /**
82 | * @param sState
83 | */
84 | public void setsState(Integer sState) {
85 | this.sState = sState;
86 | }
87 |
88 | /**
89 | * @return s_type
90 | */
91 | public Integer getsType() {
92 | return sType;
93 | }
94 |
95 | /**
96 | * @param sType
97 | */
98 | public void setsType(Integer sType) {
99 | this.sType = sType;
100 | }
101 |
102 | /**
103 | * @return s_price
104 | */
105 | public Double getsPrice() {
106 | return sPrice;
107 | }
108 |
109 | /**
110 | * @param sPrice
111 | */
112 | public void setsPrice(Double sPrice) {
113 | this.sPrice = sPrice;
114 | }
115 |
116 | /**
117 | * @return s_pricetime
118 | */
119 | public Double getsPricetime() {
120 | return sPricetime;
121 | }
122 |
123 | /**
124 | * @param sPricetime
125 | */
126 | public void setsPricetime(Double sPricetime) {
127 | this.sPricetime = sPricetime;
128 | }
129 |
130 | /**
131 | * @return c_id
132 | */
133 | public Integer getcId() {
134 | return cId;
135 | }
136 |
137 | /**
138 | * @param cId
139 | */
140 | public void setcId(Integer cId) {
141 | this.cId = cId;
142 | }
143 | }
144 |
--------------------------------------------------------------------------------
/src/main/java/com/aokai/hospital/po/Carstation.java:
--------------------------------------------------------------------------------
1 | package com.aokai.hospital.po;
2 |
3 | import javax.persistence.*;
4 |
5 | @Table(name = "carstation")
6 | public class Carstation {
7 | @Id
8 | @Column(name = "c_id")
9 | private Integer cId;
10 |
11 | @Column(name = "c_name")
12 | private String cName;
13 |
14 | @Column(name = "c_location")
15 | private String cLocation;
16 |
17 | @Column(name = "c_description")
18 | private String cDescription;
19 |
20 | @Column(name = "c_total")
21 | private Integer cTotal;
22 |
23 | @Column(name = "c_code")
24 | private String cCode;
25 |
26 | @Column(name = "c_price")
27 | private Double cPrice;
28 |
29 | @Column(name = "c_pricetime")
30 | private Double cPricetime;
31 |
32 | /**
33 | * @return c_id
34 | */
35 | public Integer getcId() {
36 | return cId;
37 | }
38 |
39 | /**
40 | * @param cId
41 | */
42 | public void setcId(Integer cId) {
43 | this.cId = cId;
44 | }
45 |
46 | /**
47 | * @return c_name
48 | */
49 | public String getcName() {
50 | return cName;
51 | }
52 |
53 | /**
54 | * @param cName
55 | */
56 | public void setcName(String cName) {
57 | this.cName = cName == null ? null : cName.trim();
58 | }
59 |
60 | /**
61 | * @return c_location
62 | */
63 | public String getcLocation() {
64 | return cLocation;
65 | }
66 |
67 | /**
68 | * @param cLocation
69 | */
70 | public void setcLocation(String cLocation) {
71 | this.cLocation = cLocation == null ? null : cLocation.trim();
72 | }
73 |
74 | /**
75 | * @return c_description
76 | */
77 | public String getcDescription() {
78 | return cDescription;
79 | }
80 |
81 | /**
82 | * @param cDescription
83 | */
84 | public void setcDescription(String cDescription) {
85 | this.cDescription = cDescription == null ? null : cDescription.trim();
86 | }
87 |
88 | /**
89 | * @return c_total
90 | */
91 | public Integer getcTotal() {
92 | return cTotal;
93 | }
94 |
95 | /**
96 | * @param cTotal
97 | */
98 | public void setcTotal(Integer cTotal) {
99 | this.cTotal = cTotal;
100 | }
101 |
102 | /**
103 | * @return c_code
104 | */
105 | public String getcCode() {
106 | return cCode;
107 | }
108 |
109 | /**
110 | * @param cCode
111 | */
112 | public void setcCode(String cCode) {
113 | this.cCode = cCode == null ? null : cCode.trim();
114 | }
115 |
116 | /**
117 | * @return c_price
118 | */
119 | public Double getcPrice() {
120 | return cPrice;
121 | }
122 |
123 | /**
124 | * @param cPrice
125 | */
126 | public void setcPrice(Double cPrice) {
127 | this.cPrice = cPrice;
128 | }
129 |
130 | /**
131 | * @return c_pricetime
132 | */
133 | public Double getcPricetime() {
134 | return cPricetime;
135 | }
136 |
137 | /**
138 | * @param cPricetime
139 | */
140 | public void setcPricetime(Double cPricetime) {
141 | this.cPricetime = cPricetime;
142 | }
143 | }
144 |
--------------------------------------------------------------------------------
/src/main/java/com/aokai/hospital/po/Message.java:
--------------------------------------------------------------------------------
1 | package com.aokai.hospital.po;
2 |
3 | import java.util.Date;
4 | import javax.persistence.*;
5 |
6 | @Table(name = "message")
7 | public class Message {
8 | @Id
9 | private Integer id;
10 |
11 | private String title;
12 |
13 | @Column(name = "creatTime")
14 | private Date creattime;
15 |
16 | private Integer uid;
17 |
18 | private String content;
19 |
20 | /**
21 | * @return id
22 | */
23 | public Integer getId() {
24 | return id;
25 | }
26 |
27 | /**
28 | * @param id
29 | */
30 | public void setId(Integer id) {
31 | this.id = id;
32 | }
33 |
34 | /**
35 | * @return title
36 | */
37 | public String getTitle() {
38 | return title;
39 | }
40 |
41 | /**
42 | * @param title
43 | */
44 | public void setTitle(String title) {
45 | this.title = title == null ? null : title.trim();
46 | }
47 |
48 | /**
49 | * @return creatTime
50 | */
51 | public Date getCreattime() {
52 | return creattime;
53 | }
54 |
55 | /**
56 | * @param creattime
57 | */
58 | public void setCreattime(Date creattime) {
59 | this.creattime = creattime;
60 | }
61 |
62 | /**
63 | * @return uid
64 | */
65 | public Integer getUid() {
66 | return uid;
67 | }
68 |
69 | /**
70 | * @param uid
71 | */
72 | public void setUid(Integer uid) {
73 | this.uid = uid;
74 | }
75 |
76 | /**
77 | * @return content
78 | */
79 | public String getContent() {
80 | return content;
81 | }
82 |
83 | /**
84 | * @param content
85 | */
86 | public void setContent(String content) {
87 | this.content = content == null ? null : content.trim();
88 | }
89 | }
90 |
--------------------------------------------------------------------------------
/src/main/java/com/aokai/hospital/po/User.java:
--------------------------------------------------------------------------------
1 | package com.aokai.hospital.po;
2 |
3 | import javax.persistence.*;
4 |
5 | @Table(name = "user")
6 | public class User {
7 | @Id
8 | private Integer id;
9 |
10 | private String code;
11 |
12 | private String username;
13 |
14 | private String password;
15 |
16 | private String name;
17 |
18 | private Integer sex;
19 |
20 | private String email;
21 |
22 | private String phone;
23 |
24 | @Column(name = "headImg")
25 | private String headimg;
26 |
27 | private String say;
28 |
29 | private Integer state;
30 |
31 | private Integer type;
32 |
33 | /**
34 | * @return id
35 | */
36 | public Integer getId() {
37 | return id;
38 | }
39 |
40 | /**
41 | * @param id
42 | */
43 | public void setId(Integer id) {
44 | this.id = id;
45 | }
46 |
47 | /**
48 | * @return code
49 | */
50 | public String getCode() {
51 | return code;
52 | }
53 |
54 | /**
55 | * @param code
56 | */
57 | public void setCode(String code) {
58 | this.code = code == null ? null : code.trim();
59 | }
60 |
61 | /**
62 | * @return username
63 | */
64 | public String getUsername() {
65 | return username;
66 | }
67 |
68 | /**
69 | * @param username
70 | */
71 | public void setUsername(String username) {
72 | this.username = username == null ? null : username.trim();
73 | }
74 |
75 | /**
76 | * @return password
77 | */
78 | public String getPassword() {
79 | return password;
80 | }
81 |
82 | /**
83 | * @param password
84 | */
85 | public void setPassword(String password) {
86 | this.password = password == null ? null : password.trim();
87 | }
88 |
89 | /**
90 | * @return name
91 | */
92 | public String getName() {
93 | return name;
94 | }
95 |
96 | /**
97 | * @param name
98 | */
99 | public void setName(String name) {
100 | this.name = name == null ? null : name.trim();
101 | }
102 |
103 | /**
104 | * @return sex
105 | */
106 | public Integer getSex() {
107 | return sex;
108 | }
109 |
110 | /**
111 | * @param sex
112 | */
113 | public void setSex(Integer sex) {
114 | this.sex = sex;
115 | }
116 |
117 | /**
118 | * @return email
119 | */
120 | public String getEmail() {
121 | return email;
122 | }
123 |
124 | /**
125 | * @param email
126 | */
127 | public void setEmail(String email) {
128 | this.email = email == null ? null : email.trim();
129 | }
130 |
131 | /**
132 | * @return phone
133 | */
134 | public String getPhone() {
135 | return phone;
136 | }
137 |
138 | /**
139 | * @param phone
140 | */
141 | public void setPhone(String phone) {
142 | this.phone = phone == null ? null : phone.trim();
143 | }
144 |
145 | /**
146 | * @return headImg
147 | */
148 | public String getHeadimg() {
149 | return headimg;
150 | }
151 |
152 | /**
153 | * @param headimg
154 | */
155 | public void setHeadimg(String headimg) {
156 | this.headimg = headimg == null ? null : headimg.trim();
157 | }
158 |
159 | /**
160 | * @return say
161 | */
162 | public String getSay() {
163 | return say;
164 | }
165 |
166 | /**
167 | * @param say
168 | */
169 | public void setSay(String say) {
170 | this.say = say == null ? null : say.trim();
171 | }
172 |
173 | /**
174 | * @return state
175 | */
176 | public Integer getState() {
177 | return state;
178 | }
179 |
180 | /**
181 | * @param state
182 | */
183 | public void setState(Integer state) {
184 | this.state = state;
185 | }
186 |
187 | /**
188 | * @return type
189 | */
190 | public Integer getType() {
191 | return type;
192 | }
193 |
194 | /**
195 | * @param type
196 | */
197 | public void setType(Integer type) {
198 | this.type = type;
199 | }
200 | }
201 |
--------------------------------------------------------------------------------
/src/main/java/com/aokai/hospital/service/Impl/UserServiceImpl.java:
--------------------------------------------------------------------------------
1 | package com.aokai.hospital.service.Impl;
2 |
3 | import com.aokai.hospital.dao.UserMapper;
4 | import com.aokai.hospital.service.UserService;
5 | import lombok.extern.slf4j.Slf4j;
6 | import org.springframework.beans.factory.annotation.Autowired;
7 | import org.springframework.stereotype.Service;
8 |
9 | /**
10 | * Description : .
11 | *
12 | * @author : aokai
13 | * @date : Created in 2020/3/29 19:23
14 | */
15 | @Service
16 | @Slf4j
17 | public class UserServiceImpl implements UserService {
18 |
19 | @Autowired
20 | private UserMapper userMapper;
21 |
22 | @Override
23 | public Integer updateUserState(Integer state, Integer id) {
24 | return userMapper.updateUserState(state, id);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/main/java/com/aokai/hospital/service/UserService.java:
--------------------------------------------------------------------------------
1 | package com.aokai.hospital.service;
2 |
3 | /**
4 | * Description : .
5 | *
6 | * @author : aokai
7 | * @date : Created in 2020/3/29 19:19
8 | */
9 | public interface UserService {
10 |
11 | Integer updateUserState(Integer state, Integer id);
12 | }
13 |
--------------------------------------------------------------------------------
/src/main/resources/application.properties:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/KevinAo1997/hospital/d2ffaa22786625a8d5ea18c5de8005d07b2c2810/src/main/resources/application.properties
--------------------------------------------------------------------------------
/src/main/resources/logback-spring.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
25 |
26 |
27 |
28 |
30 |
31 |
32 |
33 |
34 |
35 |
36 | ${LOG_PATTERN_COLOUR}
37 |
38 | UTF-8
39 |
40 |
41 |
42 |
43 |
44 |
45 | logs/${APP_NAME}/${APP_NAME}.log
46 |
47 |
48 |
54 | logs/${APP_NAME}/backup/${APP_NAME}_%d{yyyy-MM-dd}_%i.zip
55 |
56 |
57 | 10MB
58 |
59 |
60 | 30
61 |
62 | 1GB
63 |
64 |
65 |
66 | ${LOG_PATTERN}
67 |
68 | UTF-8
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
--------------------------------------------------------------------------------
/src/main/resources/mapper/CarorderMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/main/resources/mapper/CarspaceMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/main/resources/mapper/CarstationMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/main/resources/mapper/MessageMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/main/resources/mapper/UserMapper.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | update user set state=#{state} where id=#{id}
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/main/resources/mybatis-generator-config.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
8 |
9 |
10 |
11 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
54 |
55 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
92 |
98 |
104 |
110 |
116 |
117 |
123 |
124 |
125 |
--------------------------------------------------------------------------------
/src/test/java/com/aokai/hospital/HospitalApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.aokai.hospital;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class HospitalApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------