diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bfa6a22 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +# Created by .ignore support plugin (hsz.mobi) diff --git a/logs/springboot-logback-error.log b/logs/springboot-logback-error.log index b093900..4903b60 100644 --- a/logs/springboot-logback-error.log +++ b/logs/springboot-logback-error.log @@ -1,178 +1,2 @@ -2024-01-26 16:35:31,664 [main] ERROR org.springframework.boot.web.embedded.tomcat.TomcatStarter:61 - Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'webConfig': Unsatisfied dependency expressed through field 'authenticationInterceptor'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authenticationInterceptor': Unsatisfied dependency expressed through field 'administerMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'administerMapper' defined in file [D:\code\subsidy-center\target\classes\com\subsidy\mapper\AdministerMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: com/subsidy/util/BaseModel -2024-01-26 16:35:31,710 [main] ERROR org.springframework.boot.SpringApplication:822 - Application run failed -org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:156) - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) - at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:743) - at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:390) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1214) - at org.springframework.boot.SpringApplication.run(SpringApplication.java:1203) - at com.subsidy.MeishuApplication.main(MeishuApplication.java:22) -Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:124) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:86) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:416) - at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:180) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:180) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:153) - ... 8 common frames omitted -Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webConfig': Unsatisfied dependency expressed through field 'authenticationInterceptor'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authenticationInterceptor': Unsatisfied dependency expressed through field 'administerMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'administerMapper' defined in file [D:\code\subsidy-center\target\classes\com\subsidy\mapper\AdministerMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: com/subsidy/util/BaseModel - at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596) - at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90) - at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1411) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) - at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:392) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:211) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:174) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAsRegistrationBean(ServletContextInitializerBeans.java:169) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addAdaptableBeans(ServletContextInitializerBeans.java:154) - at org.springframework.boot.web.servlet.ServletContextInitializerBeans.(ServletContextInitializerBeans.java:86) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:253) - at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:227) - at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53) - at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5132) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) - at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) - at java.util.concurrent.FutureTask.run(FutureTask.java) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) - at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) - at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) - at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) - at java.util.concurrent.FutureTask.run(FutureTask.java) - at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) - at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) - at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) - at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:932) - at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) - at org.apache.catalina.startup.Tomcat.start(Tomcat.java:456) - at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:105) - ... 13 common frames omitted -Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authenticationInterceptor': Unsatisfied dependency expressed through field 'administerMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'administerMapper' defined in file [D:\code\subsidy-center\target\classes\com\subsidy\mapper\AdministerMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: com/subsidy/util/BaseModel - at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596) - at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90) - at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1411) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) - at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277) - at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251) - at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1171) - at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593) - ... 65 common frames omitted -Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'administerMapper' defined in file [D:\code\subsidy-center\target\classes\com\subsidy\mapper\AdministerMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: com/subsidy/util/BaseModel - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1515) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1395) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) - at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277) - at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251) - at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1171) - at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593) - ... 78 common frames omitted -Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: com/subsidy/util/BaseModel - at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) - at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) - at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) - at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:277) - at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1251) - at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1171) - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1500) - ... 89 common frames omitted -Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: com/subsidy/util/BaseModel - at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) - at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) - ... 102 common frames omitted -Caused by: java.lang.NoClassDefFoundError: com/subsidy/util/BaseModel - at java.lang.ClassLoader.defineClass1(Native Method) - at java.lang.ClassLoader.defineClass(ClassLoader.java:763) - at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) - at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) - at java.net.URLClassLoader.access$100(URLClassLoader.java:74) - at java.net.URLClassLoader$1.run(URLClassLoader.java:369) - at java.net.URLClassLoader$1.run(URLClassLoader.java:363) - at java.security.AccessController.doPrivileged(Native Method) - at java.net.URLClassLoader.findClass(URLClassLoader.java:362) - at java.lang.ClassLoader.loadClass(ClassLoader.java:424) - at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) - at java.lang.ClassLoader.loadClass(ClassLoader.java:357) - at java.lang.Class.forName0(Native Method) - at java.lang.Class.forName(Class.java:348) - at org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader.loadFromParent(TomcatEmbeddedWebappClassLoader.java:110) - at org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader.doLoadClass(TomcatEmbeddedWebappClassLoader.java:83) - at org.springframework.boot.web.embedded.tomcat.TomcatEmbeddedWebappClassLoader.loadClass(TomcatEmbeddedWebappClassLoader.java:66) - at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1188) - at java.lang.Class.forName0(Native Method) - at java.lang.Class.forName(Class.java:348) - at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:186) - at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:89) - at org.apache.ibatis.io.Resources.classForName(Resources.java:261) - at org.apache.ibatis.type.TypeAliasRegistry.resolveAlias(TypeAliasRegistry.java:116) - at org.apache.ibatis.builder.BaseBuilder.resolveAlias(BaseBuilder.java:149) - at org.apache.ibatis.builder.BaseBuilder.resolveClass(BaseBuilder.java:116) - at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:262) - at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:253) - at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:245) - at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:118) - at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:94) - at com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean.buildSqlSessionFactory(MybatisSqlSessionFactoryBean.java:591) - at com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean.afterPropertiesSet(MybatisSqlSessionFactoryBean.java:429) - at com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean.getObject(MybatisSqlSessionFactoryBean.java:626) - at com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration.sqlSessionFactory(MybatisPlusAutoConfiguration.java:214) - at com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration$$EnhancerBySpringCGLIB$$e8ee7ee5.CGLIB$sqlSessionFactory$0() - at com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration$$EnhancerBySpringCGLIB$$e8ee7ee5$$FastClassBySpringCGLIB$$9990fa15.invoke() - at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) - at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) - at com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration$$EnhancerBySpringCGLIB$$e8ee7ee5.sqlSessionFactory() - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) - at java.lang.reflect.Method.invoke(Method.java:498) - at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) - ... 103 common frames omitted -Caused by: java.lang.ClassNotFoundException: com.subsidy.util.BaseModel - at java.net.URLClassLoader.findClass(URLClassLoader.java:382) - at java.lang.ClassLoader.loadClass(ClassLoader.java:424) - at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) - at java.lang.ClassLoader.loadClass(ClassLoader.java:357) - ... 148 common frames omitted +2024-11-10 03:56:17,682 [http-nio-23467-exec-4] ERROR com.subsidy.common.exception.GlobalExceptionHandler:89 - JSON parse error: Unexpected character (']' (code 93)): expected a value; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unexpected character (']' (code 93)): expected a value + at [Source: (PushbackInputStream); line: 55, column: 5] (through reference chain: com.subsidy.vo.simulation.SimulationSeekerDTO["outPuts"]) diff --git a/logs/springboot-logback-info.log b/logs/springboot-logback-info.log index 0cdf5eb..e5db827 100644 --- a/logs/springboot-logback-info.log +++ b/logs/springboot-logback-info.log @@ -1,26 +1,22 @@ -2024-01-30 09:51:49,489 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate:244 - Multiple Spring Data modules found, entering strict repository configuration mode! -2024-01-30 09:51:49,495 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate:126 - Bootstrapping Spring Data repositories in DEFAULT mode. -2024-01-30 09:51:49,538 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate:182 - Finished Spring Data repository scanning in 27ms. Found 0 repository interfaces. -2024-01-30 09:51:49,882 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$3469b665] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) -2024-01-30 09:51:49,982 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'redisConfig' of type [com.subsidy.common.configure.RedisConfig$$EnhancerBySpringCGLIB$$3431c16c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) -2024-01-30 09:51:50,266 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:90 - Tomcat initialized with port(s): 23467 (http) -2024-01-30 09:51:50,279 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-23467"] -2024-01-30 09:51:50,286 [main] INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat] -2024-01-30 09:51:50,286 [main] INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.22] -2024-01-30 09:51:50,291 [main] INFO org.apache.catalina.core.AprLifecycleListener:173 - Loaded APR based Apache Tomcat Native library [1.2.37] using APR version [1.7.4]. -2024-01-30 09:51:50,292 [main] INFO org.apache.catalina.core.AprLifecycleListener:173 - APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. -2024-01-30 09:51:50,292 [main] INFO org.apache.catalina.core.AprLifecycleListener:173 - APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] -2024-01-30 09:51:50,294 [main] INFO org.apache.catalina.core.AprLifecycleListener:173 - OpenSSL successfully initialized [OpenSSL 1.1.1u 30 May 2023] -2024-01-30 09:51:50,413 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext -2024-01-30 09:51:50,413 [main] INFO org.springframework.web.context.ContextLoader:284 - Root WebApplicationContext: initialization completed in 1792 ms -2024-01-30 09:51:50,518 [main] INFO com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure:56 - Init DruidDataSource -2024-01-30 09:51:51,616 [main] INFO com.alibaba.druid.pool.DruidDataSource:994 - {dataSource-1} inited -2024-01-30 09:51:54,215 [main] INFO org.quartz.impl.StdSchedulerFactory:1208 - Using default implementation for ThreadExecutor -2024-01-30 09:51:54,228 [main] INFO org.quartz.core.SchedulerSignalerImpl:61 - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl -2024-01-30 09:51:54,229 [main] INFO org.quartz.core.QuartzScheduler:229 - Quartz Scheduler v.2.3.1 created. -2024-01-30 09:51:54,233 [main] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:672 - Using db table-based data access locking (synchronization). -2024-01-30 09:51:54,237 [main] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:145 - JobStoreCMT initialized. -2024-01-30 09:51:54,238 [main] INFO org.quartz.core.QuartzScheduler:294 - Scheduler meta-data: Quartz Scheduler (v2.3.1) 'schedulerFactoryBean' with instanceId 'NON_CLUSTERED' +2024-11-07 09:35:15,611 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate:244 - Multiple Spring Data modules found, entering strict repository configuration mode! +2024-11-07 09:35:15,623 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate:126 - Bootstrapping Spring Data repositories in DEFAULT mode. +2024-11-07 09:35:15,707 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate:182 - Finished Spring Data repository scanning in 60ms. Found 0 repository interfaces. +2024-11-07 09:35:16,323 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$5bb98bdc] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2024-11-07 09:35:16,459 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'redisConfig' of type [com.subsidy.common.configure.RedisConfig$$EnhancerBySpringCGLIB$$5b8196e3] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2024-11-07 09:35:16,923 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:90 - Tomcat initialized with port(s): 23467 (http) +2024-11-07 09:35:16,943 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-23467"] +2024-11-07 09:35:16,955 [main] INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat] +2024-11-07 09:35:16,955 [main] INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.22] +2024-11-07 09:35:17,107 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext +2024-11-07 09:35:17,107 [main] INFO org.springframework.web.context.ContextLoader:284 - Root WebApplicationContext: initialization completed in 3434 ms +2024-11-07 09:35:17,255 [main] INFO com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure:56 - Init DruidDataSource +2024-11-07 09:35:18,595 [main] INFO com.alibaba.druid.pool.DruidDataSource:994 - {dataSource-1} inited +2024-11-07 09:35:21,456 [main] INFO org.quartz.impl.StdSchedulerFactory:1208 - Using default implementation for ThreadExecutor +2024-11-07 09:35:21,468 [main] INFO org.quartz.core.SchedulerSignalerImpl:61 - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl +2024-11-07 09:35:21,468 [main] INFO org.quartz.core.QuartzScheduler:229 - Quartz Scheduler v.2.3.1 created. +2024-11-07 09:35:21,472 [main] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:672 - Using db table-based data access locking (synchronization). +2024-11-07 09:35:21,476 [main] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:145 - JobStoreCMT initialized. +2024-11-07 09:35:21,476 [main] INFO org.quartz.core.QuartzScheduler:294 - Scheduler meta-data: Quartz Scheduler (v2.3.1) 'schedulerFactoryBean' with instanceId 'NON_CLUSTERED' Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally. NOT STARTED. Currently in standby mode. @@ -28,30 +24,97 @@ Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads. Using job-store 'org.springframework.scheduling.quartz.LocalDataSourceJobStore' - which supports persistence. and is not clustered. -2024-01-30 09:51:54,238 [main] INFO org.quartz.impl.StdSchedulerFactory:1362 - Quartz scheduler 'schedulerFactoryBean' initialized from an externally provided properties instance. -2024-01-30 09:51:54,238 [main] INFO org.quartz.impl.StdSchedulerFactory:1366 - Quartz scheduler version: 2.3.1 -2024-01-30 09:51:54,239 [main] INFO org.quartz.core.QuartzScheduler:2293 - JobFactory set to: com.subsidy.common.configure.JobFactory@c4cceb -2024-01-30 09:51:55,003 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping:69 - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] -2024-01-30 09:51:55,209 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:171 - Initializing ExecutorService 'applicationTaskExecutor' -2024-01-30 09:51:55,949 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler:171 - Initializing ExecutorService 'taskScheduler' -2024-01-30 09:51:56,015 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:160 - Context refreshed -2024-01-30 09:51:56,033 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:163 - Found 1 custom documentation plugin(s) -2024-01-30 09:51:56,064 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner:41 - Scanning for api listing references -2024-01-30 09:51:56,194 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator:40 - Generating unique operation named: deleteAdministerUsingPOST_1 -2024-01-30 09:51:56,199 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator:40 - Generating unique operation named: operatorsUsingPOST_1 -2024-01-30 09:51:56,201 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator:40 - Generating unique operation named: updateAdministerUsingPOST_1 -2024-01-30 09:51:56,236 [main] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean:731 - Will start Quartz Scheduler [schedulerFactoryBean] in 1 seconds -2024-01-30 09:51:56,246 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Starting ProtocolHandler ["http-nio-23467"] -2024-01-30 09:51:56,268 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:202 - Tomcat started on port(s): 23467 (http) with context path '' -2024-01-30 09:51:57,248 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean:747 - Starting Quartz Scheduler now, after delay of 1 seconds -2024-01-30 13:28:06,728 [http-nio-23467-exec-1] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring DispatcherServlet 'dispatcherServlet' -2024-01-30 13:28:06,731 [http-nio-23467-exec-1] INFO org.springframework.web.servlet.DispatcherServlet:524 - Initializing Servlet 'dispatcherServlet' -2024-01-30 13:28:06,776 [http-nio-23467-exec-1] INFO org.springframework.web.servlet.DispatcherServlet:546 - Completed initialization in 45 ms -2024-01-30 17:24:56,963 [Thread-20] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler:208 - Shutting down ExecutorService 'taskScheduler' -2024-01-30 17:24:56,992 [Thread-20] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:208 - Shutting down ExecutorService 'applicationTaskExecutor' -2024-01-30 17:24:57,034 [Thread-20] INFO org.quartz.core.QuartzScheduler:666 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED shutting down. -2024-01-30 17:24:57,035 [Thread-20] INFO org.quartz.core.QuartzScheduler:585 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED paused. -2024-01-30 17:24:57,036 [Thread-20] INFO org.quartz.core.QuartzScheduler:740 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED shutdown complete. -2024-01-30 17:24:57,036 [Thread-20] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean:844 - Shutting down Quartz Scheduler -2024-01-30 17:24:57,038 [Thread-20] INFO com.alibaba.druid.pool.DruidDataSource:2029 - {dataSource-1} closing ... -2024-01-30 17:24:57,041 [Thread-20] INFO com.alibaba.druid.pool.DruidDataSource:2101 - {dataSource-1} closed +2024-11-07 09:35:21,476 [main] INFO org.quartz.impl.StdSchedulerFactory:1362 - Quartz scheduler 'schedulerFactoryBean' initialized from an externally provided properties instance. +2024-11-07 09:35:21,476 [main] INFO org.quartz.impl.StdSchedulerFactory:1366 - Quartz scheduler version: 2.3.1 +2024-11-07 09:35:21,476 [main] INFO org.quartz.core.QuartzScheduler:2293 - JobFactory set to: com.subsidy.common.configure.JobFactory@70c205bf +2024-11-07 09:35:22,437 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping:69 - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] +2024-11-07 09:35:22,776 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:171 - Initializing ExecutorService 'applicationTaskExecutor' +2024-11-07 09:35:23,916 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler:171 - Initializing ExecutorService 'taskScheduler' +2024-11-07 09:35:24,029 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:160 - Context refreshed +2024-11-07 09:35:24,057 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:163 - Found 1 custom documentation plugin(s) +2024-11-07 09:35:24,101 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner:41 - Scanning for api listing references +2024-11-07 09:35:24,365 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator:40 - Generating unique operation named: deleteAdministerUsingPOST_1 +2024-11-07 09:35:24,373 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator:40 - Generating unique operation named: operatorsUsingPOST_1 +2024-11-07 09:35:24,373 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator:40 - Generating unique operation named: updateAdministerUsingPOST_1 +2024-11-07 09:35:24,472 [main] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean:731 - Will start Quartz Scheduler [schedulerFactoryBean] in 1 seconds +2024-11-07 09:35:24,496 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Starting ProtocolHandler ["http-nio-23467"] +2024-11-07 09:35:24,528 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:202 - Tomcat started on port(s): 23467 (http) with context path '' +2024-11-07 09:35:25,494 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean:747 - Starting Quartz Scheduler now, after delay of 1 seconds +2024-11-07 09:35:25,570 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:866 - Freed 0 triggers from 'acquired' / 'blocked' state. +2024-11-07 09:35:25,590 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:876 - Recovering 0 jobs that were in-progress at the time of the last shut-down. +2024-11-07 09:35:25,590 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:889 - Recovery complete. +2024-11-07 09:35:25,598 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:896 - Removed 0 'complete' triggers. +2024-11-07 09:35:25,610 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:901 - Removed 0 stale fired job entries. +2024-11-07 09:35:25,626 [Quartz Scheduler [schedulerFactoryBean]] INFO org.quartz.core.QuartzScheduler:547 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED started. +2024-11-07 09:35:31,579 [http-nio-23467-exec-1] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring DispatcherServlet 'dispatcherServlet' +2024-11-07 09:35:31,579 [http-nio-23467-exec-1] INFO org.springframework.web.servlet.DispatcherServlet:524 - Initializing Servlet 'dispatcherServlet' +2024-11-07 09:35:31,588 [http-nio-23467-exec-1] INFO org.springframework.web.servlet.DispatcherServlet:546 - Completed initialization in 9 ms +2024-11-07 09:37:49,042 [Thread-24] INFO org.quartz.core.QuartzScheduler:585 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED paused. +2024-11-07 09:37:49,042 [Thread-24] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler:208 - Shutting down ExecutorService 'taskScheduler' +2024-11-07 09:37:49,050 [Thread-24] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:208 - Shutting down ExecutorService 'applicationTaskExecutor' +2024-11-07 09:37:49,078 [Thread-24] INFO org.quartz.core.QuartzScheduler:666 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED shutting down. +2024-11-07 09:37:49,078 [Thread-24] INFO org.quartz.core.QuartzScheduler:585 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED paused. +2024-11-07 09:37:49,078 [Thread-24] INFO org.quartz.core.QuartzScheduler:740 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED shutdown complete. +2024-11-07 09:37:49,078 [Thread-24] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean:844 - Shutting down Quartz Scheduler +2024-11-07 09:37:49,082 [Thread-24] INFO com.alibaba.druid.pool.DruidDataSource:2029 - {dataSource-1} closing ... +2024-11-07 09:37:49,086 [Thread-24] INFO com.alibaba.druid.pool.DruidDataSource:2101 - {dataSource-1} closed +2024-11-07 09:38:04,213 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate:244 - Multiple Spring Data modules found, entering strict repository configuration mode! +2024-11-07 09:38:04,217 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate:126 - Bootstrapping Spring Data repositories in DEFAULT mode. +2024-11-07 09:38:04,265 [main] INFO org.springframework.data.repository.config.RepositoryConfigurationDelegate:182 - Finished Spring Data repository scanning in 36ms. Found 0 repository interfaces. +2024-11-07 09:38:04,664 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$63452b5f] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2024-11-07 09:38:04,760 [main] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'redisConfig' of type [com.subsidy.common.configure.RedisConfig$$EnhancerBySpringCGLIB$$630d3666] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2024-11-07 09:38:05,116 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:90 - Tomcat initialized with port(s): 23467 (http) +2024-11-07 09:38:05,128 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-23467"] +2024-11-07 09:38:05,136 [main] INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat] +2024-11-07 09:38:05,136 [main] INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.22] +2024-11-07 09:38:05,256 [main] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext +2024-11-07 09:38:05,256 [main] INFO org.springframework.web.context.ContextLoader:284 - Root WebApplicationContext: initialization completed in 2125 ms +2024-11-07 09:38:05,375 [main] INFO com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure:56 - Init DruidDataSource +2024-11-07 09:38:07,379 [main] INFO com.alibaba.druid.pool.DruidDataSource:994 - {dataSource-1} inited +2024-11-07 09:38:11,364 [main] INFO org.quartz.impl.StdSchedulerFactory:1208 - Using default implementation for ThreadExecutor +2024-11-07 09:38:11,380 [main] INFO org.quartz.core.SchedulerSignalerImpl:61 - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl +2024-11-07 09:38:11,380 [main] INFO org.quartz.core.QuartzScheduler:229 - Quartz Scheduler v.2.3.1 created. +2024-11-07 09:38:11,388 [main] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:672 - Using db table-based data access locking (synchronization). +2024-11-07 09:38:11,388 [main] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:145 - JobStoreCMT initialized. +2024-11-07 09:38:11,392 [main] INFO org.quartz.core.QuartzScheduler:294 - Scheduler meta-data: Quartz Scheduler (v2.3.1) 'schedulerFactoryBean' with instanceId 'NON_CLUSTERED' + Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally. + NOT STARTED. + Currently in standby mode. + Number of jobs executed: 0 + Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads. + Using job-store 'org.springframework.scheduling.quartz.LocalDataSourceJobStore' - which supports persistence. and is not clustered. + +2024-11-07 09:38:11,392 [main] INFO org.quartz.impl.StdSchedulerFactory:1362 - Quartz scheduler 'schedulerFactoryBean' initialized from an externally provided properties instance. +2024-11-07 09:38:11,392 [main] INFO org.quartz.impl.StdSchedulerFactory:1366 - Quartz scheduler version: 2.3.1 +2024-11-07 09:38:11,392 [main] INFO org.quartz.core.QuartzScheduler:2293 - JobFactory set to: com.subsidy.common.configure.JobFactory@51a719e7 +2024-11-07 09:38:12,277 [main] INFO springfox.documentation.spring.web.PropertySourcedRequestMappingHandlerMapping:69 - Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] +2024-11-07 09:38:12,482 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:171 - Initializing ExecutorService 'applicationTaskExecutor' +2024-11-07 09:38:13,253 [main] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler:171 - Initializing ExecutorService 'taskScheduler' +2024-11-07 09:38:13,341 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:160 - Context refreshed +2024-11-07 09:38:13,357 [main] INFO springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper:163 - Found 1 custom documentation plugin(s) +2024-11-07 09:38:13,397 [main] INFO springfox.documentation.spring.web.scanners.ApiListingReferenceScanner:41 - Scanning for api listing references +2024-11-07 09:38:13,607 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator:40 - Generating unique operation named: deleteAdministerUsingPOST_1 +2024-11-07 09:38:13,611 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator:40 - Generating unique operation named: operatorsUsingPOST_1 +2024-11-07 09:38:13,611 [main] INFO springfox.documentation.spring.web.readers.operation.CachingOperationNameGenerator:40 - Generating unique operation named: updateAdministerUsingPOST_1 +2024-11-07 09:38:13,687 [main] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean:731 - Will start Quartz Scheduler [schedulerFactoryBean] in 1 seconds +2024-11-07 09:38:13,699 [main] INFO org.apache.coyote.http11.Http11NioProtocol:173 - Starting ProtocolHandler ["http-nio-23467"] +2024-11-07 09:38:13,723 [main] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:202 - Tomcat started on port(s): 23467 (http) with context path '' +2024-11-07 09:38:14,690 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean:747 - Starting Quartz Scheduler now, after delay of 1 seconds +2024-11-07 09:38:14,770 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:866 - Freed 0 triggers from 'acquired' / 'blocked' state. +2024-11-07 09:38:14,790 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:876 - Recovering 0 jobs that were in-progress at the time of the last shut-down. +2024-11-07 09:38:14,790 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:889 - Recovery complete. +2024-11-07 09:38:14,798 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:896 - Removed 0 'complete' triggers. +2024-11-07 09:38:14,810 [Quartz Scheduler [schedulerFactoryBean]] INFO org.springframework.scheduling.quartz.LocalDataSourceJobStore:901 - Removed 0 stale fired job entries. +2024-11-07 09:38:14,826 [Quartz Scheduler [schedulerFactoryBean]] INFO org.quartz.core.QuartzScheduler:547 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED started. +2024-11-07 09:38:17,253 [http-nio-23467-exec-2] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring DispatcherServlet 'dispatcherServlet' +2024-11-07 09:38:17,254 [http-nio-23467-exec-2] INFO org.springframework.web.servlet.DispatcherServlet:524 - Initializing Servlet 'dispatcherServlet' +2024-11-07 09:38:17,278 [http-nio-23467-exec-2] INFO org.springframework.web.servlet.DispatcherServlet:546 - Completed initialization in 24 ms +2024-11-07 09:41:07,553 [Thread-26] INFO org.quartz.core.QuartzScheduler:585 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED paused. +2024-11-07 09:41:07,555 [Thread-26] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler:208 - Shutting down ExecutorService 'taskScheduler' +2024-11-07 09:41:07,566 [Thread-26] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:208 - Shutting down ExecutorService 'applicationTaskExecutor' +2024-11-07 09:41:07,591 [Thread-26] INFO org.quartz.core.QuartzScheduler:666 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED shutting down. +2024-11-07 09:41:07,592 [Thread-26] INFO org.quartz.core.QuartzScheduler:585 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED paused. +2024-11-07 09:41:07,593 [Thread-26] INFO org.quartz.core.QuartzScheduler:740 - Scheduler schedulerFactoryBean_$_NON_CLUSTERED shutdown complete. +2024-11-07 09:41:07,593 [Thread-26] INFO org.springframework.scheduling.quartz.SchedulerFactoryBean:844 - Shutting down Quartz Scheduler +2024-11-07 09:41:07,597 [Thread-26] INFO com.alibaba.druid.pool.DruidDataSource:2029 - {dataSource-1} closing ... +2024-11-07 09:41:07,597 [Thread-26] INFO com.alibaba.druid.pool.DruidDataSource:2101 - {dataSource-1} closed diff --git a/logs/springboot-logback/error/2024-11-01-0.log.gz b/logs/springboot-logback/error/2024-11-01-0.log.gz new file mode 100644 index 0000000..f8c36d8 Binary files /dev/null and b/logs/springboot-logback/error/2024-11-01-0.log.gz differ diff --git a/logs/springboot-logback/error/2024-11-05-0.log.gz b/logs/springboot-logback/error/2024-11-05-0.log.gz new file mode 100644 index 0000000..93e6651 Binary files /dev/null and b/logs/springboot-logback/error/2024-11-05-0.log.gz differ diff --git a/logs/springboot-logback/error/2024-11-07-0.log.gz b/logs/springboot-logback/error/2024-11-07-0.log.gz new file mode 100644 index 0000000..579e82d Binary files /dev/null and b/logs/springboot-logback/error/2024-11-07-0.log.gz differ diff --git a/logs/springboot-logback/info/2024-11-01-0.log.gz b/logs/springboot-logback/info/2024-11-01-0.log.gz new file mode 100644 index 0000000..eaa7e16 Binary files /dev/null and b/logs/springboot-logback/info/2024-11-01-0.log.gz differ diff --git a/logs/springboot-logback/info/2024-11-02-0.log.gz b/logs/springboot-logback/info/2024-11-02-0.log.gz new file mode 100644 index 0000000..fa4ac14 Binary files /dev/null and b/logs/springboot-logback/info/2024-11-02-0.log.gz differ diff --git a/logs/springboot-logback/info/2024-11-04-0.log.gz b/logs/springboot-logback/info/2024-11-04-0.log.gz new file mode 100644 index 0000000..c26aeb3 Binary files /dev/null and b/logs/springboot-logback/info/2024-11-04-0.log.gz differ diff --git a/logs/springboot-logback/info/2024-11-05-0.log.gz b/logs/springboot-logback/info/2024-11-05-0.log.gz new file mode 100644 index 0000000..d6cae28 Binary files /dev/null and b/logs/springboot-logback/info/2024-11-05-0.log.gz differ diff --git a/logs/springboot-logback/info/2024-11-06-0.log.gz b/logs/springboot-logback/info/2024-11-06-0.log.gz new file mode 100644 index 0000000..8fda3c9 Binary files /dev/null and b/logs/springboot-logback/info/2024-11-06-0.log.gz differ diff --git a/pom.xml b/pom.xml index 7c27238..0add23c 100644 --- a/pom.xml +++ b/pom.xml @@ -272,6 +272,12 @@ gson 2.8.6 + + + com.sun.mail + javax.mail + 1.6.2 + diff --git a/src/main/java/com/subsidy/controller/CollectInfoController.java b/src/main/java/com/subsidy/controller/CollectInfoController.java new file mode 100644 index 0000000..9a4b632 --- /dev/null +++ b/src/main/java/com/subsidy/controller/CollectInfoController.java @@ -0,0 +1,46 @@ +package com.subsidy.controller; + + +import com.subsidy.common.ResponseData; +import com.subsidy.common.ResponseVO; +import com.subsidy.dto.collect.InfoDTO; +import com.subsidy.model.CollectInfoDO; +import com.subsidy.service.CollectInfoService; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; +import io.swagger.annotations.Api; + +/** + *

+ * 首页手机信息 前端控制器 + *

+ * + * @author Tuyp + * @since 2024-11-02 + */ +@RestController +@Api(tags = "首页收集信息") +@RequestMapping("/collectInfo") +public class CollectInfoController { + + @Autowired + private CollectInfoService collectInfoService; + + @PostMapping("collect") + @ApiOperation("收集信息 collegeName 院校名称 dept 部门/院系 jobName 职位 userName 称呼 telephone 联系方式") + public ResponseVO collect(@RequestBody CollectInfoDO collectInfoDO){ + return ResponseData.generateCreatedResponse(0,collectInfoService.collect(collectInfoDO)); + } + + @PostMapping("info") + @ApiOperation("需求单--查询 pageSize pageNum") + public ResponseVO info(@RequestBody InfoDTO infoDTO){ + return ResponseData.generateCreatedResponse(0,collectInfoService.info(infoDTO)); + } + +} diff --git a/src/main/java/com/subsidy/controller/MoniCollegeController.java b/src/main/java/com/subsidy/controller/MoniCollegeController.java new file mode 100644 index 0000000..771c5bb --- /dev/null +++ b/src/main/java/com/subsidy/controller/MoniCollegeController.java @@ -0,0 +1,22 @@ +package com.subsidy.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; +import io.swagger.annotations.Api; + +/** + *

+ * 院校 前端控制器 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +@RestController +@Api(tags = "院校") +@RequestMapping("/moni-college-do") +public class MoniCollegeController { + +} diff --git a/src/main/java/com/subsidy/controller/MoniCollegeMajorMappingController.java b/src/main/java/com/subsidy/controller/MoniCollegeMajorMappingController.java new file mode 100644 index 0000000..258cadc --- /dev/null +++ b/src/main/java/com/subsidy/controller/MoniCollegeMajorMappingController.java @@ -0,0 +1,22 @@ +package com.subsidy.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; +import io.swagger.annotations.Api; + +/** + *

+ * 院校专业映射表 前端控制器 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +@RestController +@Api(tags = "院校专业映射表") +@RequestMapping("/moni-college-major-mapping-do") +public class MoniCollegeMajorMappingController { + +} diff --git a/src/main/java/com/subsidy/controller/MoniCompanyController.java b/src/main/java/com/subsidy/controller/MoniCompanyController.java new file mode 100644 index 0000000..fad34c6 --- /dev/null +++ b/src/main/java/com/subsidy/controller/MoniCompanyController.java @@ -0,0 +1,22 @@ +package com.subsidy.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; +import io.swagger.annotations.Api; + +/** + *

+ * 前端控制器 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +@RestController +@Api(tags = "") +@RequestMapping("/moni-company-do") +public class MoniCompanyController { + +} diff --git a/src/main/java/com/subsidy/controller/MoniJobMajorController.java b/src/main/java/com/subsidy/controller/MoniJobMajorController.java new file mode 100644 index 0000000..35221ef --- /dev/null +++ b/src/main/java/com/subsidy/controller/MoniJobMajorController.java @@ -0,0 +1,22 @@ +package com.subsidy.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; +import io.swagger.annotations.Api; + +/** + *

+ * 前端控制器 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +@RestController +@Api(tags = "") +@RequestMapping("/moni-job-major-do") +public class MoniJobMajorController { + +} diff --git a/src/main/java/com/subsidy/controller/MoniMajorController.java b/src/main/java/com/subsidy/controller/MoniMajorController.java new file mode 100644 index 0000000..e88ab72 --- /dev/null +++ b/src/main/java/com/subsidy/controller/MoniMajorController.java @@ -0,0 +1,47 @@ +package com.subsidy.controller; + + +import com.subsidy.service.MoniMajorService; +import com.subsidy.vo.simulation.SimulationSeekerDTO; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import io.swagger.annotations.Api; + +/** + *

+ * 前端控制器 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +@RestController +@Api(tags = "") +@RequestMapping("/moniMajor") +public class MoniMajorController { + + @Autowired + private MoniMajorService moniMajorService; + + //模拟数据 + @PostMapping("simulationJob") + @ApiOperation("模拟工作数据 cnt") + public void simulationJob(@RequestBody SimulationSeekerDTO simulationSeekerDTO){ + moniMajorService.simulationJob(simulationSeekerDTO); + } + + @PostMapping("simulationSeeker") + @ApiOperation("模拟求职数据 outPuts[majorType cnt 数量]") + public void simulationSeeker(@RequestBody SimulationSeekerDTO simulationSeekerDTO){ + moniMajorService.simulationSeeker(simulationSeekerDTO); + } + +// @PostMapping("analysisExcel") +// @ApiOperation("excel处理 ") +// public void analysisExcel(@RequestParam("file") MultipartFile file){ +// moniMajorService.analysisExcel(file); +// } + +} diff --git a/src/main/java/com/subsidy/controller/MoniResultCompanyController.java b/src/main/java/com/subsidy/controller/MoniResultCompanyController.java new file mode 100644 index 0000000..0872f24 --- /dev/null +++ b/src/main/java/com/subsidy/controller/MoniResultCompanyController.java @@ -0,0 +1,22 @@ +package com.subsidy.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; +import io.swagger.annotations.Api; + +/** + *

+ * 前端控制器 + *

+ * + * @author Tuyp + * @since 2024-11-09 + */ +@RestController +@Api(tags = "") +@RequestMapping("/moni-result-company-do") +public class MoniResultCompanyController { + +} diff --git a/src/main/java/com/subsidy/controller/MoniResultController.java b/src/main/java/com/subsidy/controller/MoniResultController.java new file mode 100644 index 0000000..40e7087 --- /dev/null +++ b/src/main/java/com/subsidy/controller/MoniResultController.java @@ -0,0 +1,22 @@ +package com.subsidy.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; +import io.swagger.annotations.Api; + +/** + *

+ * 前端控制器 + *

+ * + * @author Tuyp + * @since 2024-11-07 + */ +@RestController +@Api(tags = "") +@RequestMapping("/moni-result-do") +public class MoniResultController { + +} diff --git a/src/main/java/com/subsidy/dto/collect/InfoDTO.java b/src/main/java/com/subsidy/dto/collect/InfoDTO.java new file mode 100644 index 0000000..c6e2eba --- /dev/null +++ b/src/main/java/com/subsidy/dto/collect/InfoDTO.java @@ -0,0 +1,12 @@ +package com.subsidy.dto.collect; + +import lombok.Data; + +@Data +public class InfoDTO { + + private Integer pageSize; + + private Integer pageNum; + +} diff --git a/src/main/java/com/subsidy/mapper/CollectInfoMapper.java b/src/main/java/com/subsidy/mapper/CollectInfoMapper.java new file mode 100644 index 0000000..eaa368f --- /dev/null +++ b/src/main/java/com/subsidy/mapper/CollectInfoMapper.java @@ -0,0 +1,21 @@ +package com.subsidy.mapper; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.subsidy.model.CollectInfoDO; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.springframework.stereotype.Repository; + +/** + *

+ * 首页手机信息 Mapper 接口 + *

+ * + * @author Tuyp + * @since 2024-11-02 + */ +@Repository +public interface CollectInfoMapper extends BaseMapper { + + IPage info(IPage iPage); + +} diff --git a/src/main/java/com/subsidy/mapper/MoniCollegeMajorMappingMapper.java b/src/main/java/com/subsidy/mapper/MoniCollegeMajorMappingMapper.java new file mode 100644 index 0000000..9ebc296 --- /dev/null +++ b/src/main/java/com/subsidy/mapper/MoniCollegeMajorMappingMapper.java @@ -0,0 +1,18 @@ +package com.subsidy.mapper; + +import com.subsidy.model.MoniCollegeMajorMappingDO; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.springframework.stereotype.Repository; + +/** + *

+ * 院校专业映射表 Mapper 接口 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ + @Repository +public interface MoniCollegeMajorMappingMapper extends BaseMapper { + +} diff --git a/src/main/java/com/subsidy/mapper/MoniCollegeMapper.java b/src/main/java/com/subsidy/mapper/MoniCollegeMapper.java new file mode 100644 index 0000000..e5c2699 --- /dev/null +++ b/src/main/java/com/subsidy/mapper/MoniCollegeMapper.java @@ -0,0 +1,18 @@ +package com.subsidy.mapper; + +import com.subsidy.model.MoniCollegeDO; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.springframework.stereotype.Repository; + +/** + *

+ * 院校 Mapper 接口 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ + @Repository +public interface MoniCollegeMapper extends BaseMapper { + +} diff --git a/src/main/java/com/subsidy/mapper/MoniCompanyMapper.java b/src/main/java/com/subsidy/mapper/MoniCompanyMapper.java new file mode 100644 index 0000000..47ed62f --- /dev/null +++ b/src/main/java/com/subsidy/mapper/MoniCompanyMapper.java @@ -0,0 +1,29 @@ +package com.subsidy.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.subsidy.model.MoniCompanyDO; +import com.subsidy.vo.simulation.MajorCollegesVO; +import com.subsidy.vo.simulation.MajorCompaniesVO; +import org.springframework.stereotype.Repository; + +import java.util.List; + + +/** + *

+ * Mapper 接口 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +@Repository +public interface MoniCompanyMapper extends BaseMapper { + + List limitNData(String majorType); + + List majorColleges(String majorType); + + List majorCompanies(String majorType); + +} diff --git a/src/main/java/com/subsidy/mapper/MoniJobMajorMapper.java b/src/main/java/com/subsidy/mapper/MoniJobMajorMapper.java new file mode 100644 index 0000000..4a3d8bc --- /dev/null +++ b/src/main/java/com/subsidy/mapper/MoniJobMajorMapper.java @@ -0,0 +1,18 @@ +package com.subsidy.mapper; + +import com.subsidy.model.MoniJobMajorDO; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.springframework.stereotype.Repository; + +/** + *

+ * Mapper 接口 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ + @Repository +public interface MoniJobMajorMapper extends BaseMapper { + +} diff --git a/src/main/java/com/subsidy/mapper/MoniMajorMapper.java b/src/main/java/com/subsidy/mapper/MoniMajorMapper.java new file mode 100644 index 0000000..cde3ef1 --- /dev/null +++ b/src/main/java/com/subsidy/mapper/MoniMajorMapper.java @@ -0,0 +1,26 @@ +package com.subsidy.mapper; + +import com.subsidy.model.MoniMajorDO; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.subsidy.vo.simulation.MajorVO; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + *

+ * Mapper 接口 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +@Repository +public interface MoniMajorMapper extends BaseMapper { + + /** + * 查看某大类的所有专业 + */ + List typeMajors(String majorType); + +} diff --git a/src/main/java/com/subsidy/mapper/MoniResultCompanyMapper.java b/src/main/java/com/subsidy/mapper/MoniResultCompanyMapper.java new file mode 100644 index 0000000..4aa6f49 --- /dev/null +++ b/src/main/java/com/subsidy/mapper/MoniResultCompanyMapper.java @@ -0,0 +1,18 @@ +package com.subsidy.mapper; + +import com.subsidy.model.MoniResultCompanyDO; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.springframework.stereotype.Repository; + +/** + *

+ * Mapper 接口 + *

+ * + * @author Tuyp + * @since 2024-11-09 + */ + @Repository +public interface MoniResultCompanyMapper extends BaseMapper { + +} diff --git a/src/main/java/com/subsidy/mapper/MoniResultMapper.java b/src/main/java/com/subsidy/mapper/MoniResultMapper.java new file mode 100644 index 0000000..0b15d45 --- /dev/null +++ b/src/main/java/com/subsidy/mapper/MoniResultMapper.java @@ -0,0 +1,18 @@ +package com.subsidy.mapper; + +import com.subsidy.model.MoniResultDO; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.springframework.stereotype.Repository; + +/** + *

+ * Mapper 接口 + *

+ * + * @author Tuyp + * @since 2024-11-07 + */ + @Repository +public interface MoniResultMapper extends BaseMapper { + +} diff --git a/src/main/java/com/subsidy/model/CollectInfoDO.java b/src/main/java/com/subsidy/model/CollectInfoDO.java new file mode 100644 index 0000000..3627493 --- /dev/null +++ b/src/main/java/com/subsidy/model/CollectInfoDO.java @@ -0,0 +1,39 @@ +package com.subsidy.model; + +import com.subsidy.util.BaseModel; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * 首页手机信息 + *

+ * + * @author Tuyp + * @since 2024-11-02 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("collect_info") +public class CollectInfoDO extends BaseModel { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + private String collegeName; + + private String dept; + + private String jobName; + + private String userName; + + private String telephone; + + +} diff --git a/src/main/java/com/subsidy/model/MoniCollegeDO.java b/src/main/java/com/subsidy/model/MoniCollegeDO.java new file mode 100644 index 0000000..b0c1dab --- /dev/null +++ b/src/main/java/com/subsidy/model/MoniCollegeDO.java @@ -0,0 +1,34 @@ +package com.subsidy.model; + +import com.subsidy.util.BaseModel; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * 院校 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("moni_college") +public class MoniCollegeDO extends BaseModel { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 院校名称 + */ + private String collegeName; + + +} diff --git a/src/main/java/com/subsidy/model/MoniCollegeMajorMappingDO.java b/src/main/java/com/subsidy/model/MoniCollegeMajorMappingDO.java new file mode 100644 index 0000000..833c768 --- /dev/null +++ b/src/main/java/com/subsidy/model/MoniCollegeMajorMappingDO.java @@ -0,0 +1,39 @@ +package com.subsidy.model; + +import com.subsidy.util.BaseModel; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * 院校专业映射表 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("moni_college_major_mapping") +public class MoniCollegeMajorMappingDO extends BaseModel { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 院校id + */ + private Long collegeId; + + /** + * 专业id + */ + private Long majorId; + + +} diff --git a/src/main/java/com/subsidy/model/MoniCompanyDO.java b/src/main/java/com/subsidy/model/MoniCompanyDO.java new file mode 100644 index 0000000..f5da676 --- /dev/null +++ b/src/main/java/com/subsidy/model/MoniCompanyDO.java @@ -0,0 +1,78 @@ +package com.subsidy.model; + +import com.subsidy.util.BaseModel; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("moni_company") +public class MoniCompanyDO extends BaseModel { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 公司名称 + */ + private String companyName; + + /** + * 工作名 + */ + private String companyJob; + + /** + * 工作专业 + */ + private String jobMajor; + + /** + * 工作详情 + */ + private String companyDesc; + + /** + * 公司行业 + */ + private String companyIndustry; + + /** + * 工资 + */ + private String salary; + + /** + * 学历要求 + */ + private String demands; + + /** + * 地址 + */ + private String location; + + private String years; + + private String numbers; + + private String requirement; + + private String content; + + private String welfare; + +} diff --git a/src/main/java/com/subsidy/model/MoniJobMajorDO.java b/src/main/java/com/subsidy/model/MoniJobMajorDO.java new file mode 100644 index 0000000..a11c094 --- /dev/null +++ b/src/main/java/com/subsidy/model/MoniJobMajorDO.java @@ -0,0 +1,39 @@ +package com.subsidy.model; + +import com.subsidy.util.BaseModel; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("moni_job_major") +public class MoniJobMajorDO extends BaseModel { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 工作范围 + */ + private String jobType; + + /** + * 专业type + */ + private String majorType; + + +} diff --git a/src/main/java/com/subsidy/model/MoniMajorDO.java b/src/main/java/com/subsidy/model/MoniMajorDO.java new file mode 100644 index 0000000..ae64a84 --- /dev/null +++ b/src/main/java/com/subsidy/model/MoniMajorDO.java @@ -0,0 +1,44 @@ +package com.subsidy.model; + +import com.subsidy.util.BaseModel; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("moni_major") +public class MoniMajorDO extends BaseModel { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 父节点 + */ + private String code; + + /** + * 专业类别 + */ + private String majorType; + + /** + * 专业 + */ + private String major; + + +} diff --git a/src/main/java/com/subsidy/model/MoniResultCompanyDO.java b/src/main/java/com/subsidy/model/MoniResultCompanyDO.java new file mode 100644 index 0000000..c966184 --- /dev/null +++ b/src/main/java/com/subsidy/model/MoniResultCompanyDO.java @@ -0,0 +1,45 @@ +package com.subsidy.model; + +import com.subsidy.util.BaseModel; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author Tuyp + * @since 2024-11-09 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("moni_result_company") +public class MoniResultCompanyDO extends BaseModel { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + private String companyName; + + private String jobName; + + private Integer recuitCnt; + + private String salary; + + private String companyDesc; + + private String address; + + private String years; + + private String education; + + +} diff --git a/src/main/java/com/subsidy/model/MoniResultDO.java b/src/main/java/com/subsidy/model/MoniResultDO.java new file mode 100644 index 0000000..d4fb0cd --- /dev/null +++ b/src/main/java/com/subsidy/model/MoniResultDO.java @@ -0,0 +1,68 @@ +package com.subsidy.model; + +import com.subsidy.util.BaseModel; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *

+ * + *

+ * + * @author Tuyp + * @since 2024-11-07 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("moni_result") +public class MoniResultDO extends BaseModel { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 专业名称 + */ + private String majorName; + + /** + * 院校 + */ + private String college; + + /** + * 毕业时间 + */ + private String graduate; + + private String exp1; + + private String exp2; + + private String exp3; + + private String exp4; + + private String exp5; + + private String exp6; + + private String exp7; + + private String exp8; + + private String exp9; + + private String exp10; + + private String exp11; + + private String exp12; + + +} diff --git a/src/main/java/com/subsidy/service/CollectInfoService.java b/src/main/java/com/subsidy/service/CollectInfoService.java new file mode 100644 index 0000000..ac2379b --- /dev/null +++ b/src/main/java/com/subsidy/service/CollectInfoService.java @@ -0,0 +1,22 @@ +package com.subsidy.service; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.subsidy.dto.collect.InfoDTO; +import com.subsidy.model.CollectInfoDO; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 首页手机信息 服务类 + *

+ * + * @author Tuyp + * @since 2024-11-02 + */ +public interface CollectInfoService extends IService { + + String collect(CollectInfoDO collectInfoDO); + + IPage info(InfoDTO infoDTO); + +} diff --git a/src/main/java/com/subsidy/service/MoniCollegeMajorMappingService.java b/src/main/java/com/subsidy/service/MoniCollegeMajorMappingService.java new file mode 100644 index 0000000..bf5d6be --- /dev/null +++ b/src/main/java/com/subsidy/service/MoniCollegeMajorMappingService.java @@ -0,0 +1,16 @@ +package com.subsidy.service; + +import com.subsidy.model.MoniCollegeMajorMappingDO; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 院校专业映射表 服务类 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +public interface MoniCollegeMajorMappingService extends IService { + +} diff --git a/src/main/java/com/subsidy/service/MoniCollegeService.java b/src/main/java/com/subsidy/service/MoniCollegeService.java new file mode 100644 index 0000000..b5509a1 --- /dev/null +++ b/src/main/java/com/subsidy/service/MoniCollegeService.java @@ -0,0 +1,16 @@ +package com.subsidy.service; + +import com.subsidy.model.MoniCollegeDO; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 院校 服务类 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +public interface MoniCollegeService extends IService { + +} diff --git a/src/main/java/com/subsidy/service/MoniCompanyService.java b/src/main/java/com/subsidy/service/MoniCompanyService.java new file mode 100644 index 0000000..39f8b38 --- /dev/null +++ b/src/main/java/com/subsidy/service/MoniCompanyService.java @@ -0,0 +1,16 @@ +package com.subsidy.service; + +import com.subsidy.model.MoniCompanyDO; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 服务类 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +public interface MoniCompanyService extends IService { + +} diff --git a/src/main/java/com/subsidy/service/MoniJobMajorService.java b/src/main/java/com/subsidy/service/MoniJobMajorService.java new file mode 100644 index 0000000..8923b5e --- /dev/null +++ b/src/main/java/com/subsidy/service/MoniJobMajorService.java @@ -0,0 +1,16 @@ +package com.subsidy.service; + +import com.subsidy.model.MoniJobMajorDO; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 服务类 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +public interface MoniJobMajorService extends IService { + +} diff --git a/src/main/java/com/subsidy/service/MoniMajorService.java b/src/main/java/com/subsidy/service/MoniMajorService.java new file mode 100644 index 0000000..a13180a --- /dev/null +++ b/src/main/java/com/subsidy/service/MoniMajorService.java @@ -0,0 +1,22 @@ +package com.subsidy.service; + +import com.subsidy.model.MoniMajorDO; +import com.baomidou.mybatisplus.extension.service.IService; +import com.subsidy.vo.simulation.SimulationSeekerDTO; + +/** + *

+ * 服务类 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +public interface MoniMajorService extends IService { + + void simulationJob(SimulationSeekerDTO simulationSeekerDTO); + + void simulationSeeker(SimulationSeekerDTO simulationSeekerDTO); + +// void analysisExcel(MultipartFile multipartFile); +} diff --git a/src/main/java/com/subsidy/service/MoniResultCompanyService.java b/src/main/java/com/subsidy/service/MoniResultCompanyService.java new file mode 100644 index 0000000..5ed340f --- /dev/null +++ b/src/main/java/com/subsidy/service/MoniResultCompanyService.java @@ -0,0 +1,16 @@ +package com.subsidy.service; + +import com.subsidy.model.MoniResultCompanyDO; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 服务类 + *

+ * + * @author Tuyp + * @since 2024-11-09 + */ +public interface MoniResultCompanyService extends IService { + +} diff --git a/src/main/java/com/subsidy/service/MoniResultService.java b/src/main/java/com/subsidy/service/MoniResultService.java new file mode 100644 index 0000000..db40e9c --- /dev/null +++ b/src/main/java/com/subsidy/service/MoniResultService.java @@ -0,0 +1,16 @@ +package com.subsidy.service; + +import com.subsidy.model.MoniResultDO; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *

+ * 服务类 + *

+ * + * @author Tuyp + * @since 2024-11-07 + */ +public interface MoniResultService extends IService { + +} diff --git a/src/main/java/com/subsidy/service/impl/CollectInfoServiceImpl.java b/src/main/java/com/subsidy/service/impl/CollectInfoServiceImpl.java new file mode 100644 index 0000000..5eb1429 --- /dev/null +++ b/src/main/java/com/subsidy/service/impl/CollectInfoServiceImpl.java @@ -0,0 +1,94 @@ +package com.subsidy.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.subsidy.common.exception.HttpException; +import com.subsidy.dto.collect.InfoDTO; +import com.subsidy.model.CollectInfoDO; +import com.subsidy.mapper.CollectInfoMapper; +import com.subsidy.service.CollectInfoService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.subsidy.util.ConstantUtils; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import javax.mail.*; +import javax.mail.internet.InternetAddress; +import javax.mail.internet.MimeMessage; +import java.util.Properties; + +/** + *

+ * 首页手机信息 服务实现类 + *

+ * + * @author Tuyp + * @since 2024-11-02 + */ +@Service +public class CollectInfoServiceImpl extends ServiceImpl implements CollectInfoService { + + @Transactional(rollbackFor = Exception.class) + public String collect(CollectInfoDO collectInfoDO) { + + int count = this.baseMapper.selectCount(new QueryWrapper() + .lambda() + .eq(CollectInfoDO::getTelephone,collectInfoDO.getTelephone())); + + if (count > 0){ + throw new HttpException(30003); + } + + this.baseMapper.insert(collectInfoDO); + + //发邮件 + sendMail(collectInfoDO); + + return ConstantUtils.ADD_SUCCESS; + } + + public IPage info(InfoDTO infoDTO){ + Page pager = new Page(infoDTO.getPageNum(), infoDTO.getPageSize()); + return this.baseMapper.info(pager); + } + + + public void sendMail(CollectInfoDO collectInfoDO) { + + final String username = "alextyp@163.com"; // 替换为你的邮箱用户名 + final String password = "CYWjrN8NeYYsCy4q"; // 替换为你的邮箱密码 + + Properties props = new Properties(); + props.put("mail.smtp.auth", "true"); + props.put("mail.smtp.starttls.enable", "true"); + props.put("mail.smtp.host", "smtp.163.com"); + props.put("mail.smtp.port", "25"); + + Session session = Session.getInstance(props, new Authenticator() { + @Override + protected PasswordAuthentication getPasswordAuthentication() { + return new PasswordAuthentication(username, password); + } + }); + + try { + Message message = new MimeMessage(session); + message.setFrom(new InternetAddress("alextyp@163.com")); // 设置发件人 + message.setRecipients(Message.RecipientType.TO, InternetAddress.parse("tuyaping@ykhl.com")); // 设置收件人 + message.setSubject("有新的联系需求"); // 设置邮件主题 + message.setText("院校名称:"+collectInfoDO.getCollegeName()+"\n" + + "所在部门或院系:"+collectInfoDO.getDept()+"\n" + + "职位:"+collectInfoDO.getJobName()+"\n" + + "称呼:"+collectInfoDO.getUserName()+"\n" + + "联系方式:"+collectInfoDO.getTelephone()); // 设置邮件正文 + + Transport.send(message); + + System.out.println("Email sent successfully!"); + } catch (MessagingException e) { + throw new RuntimeException("Error: cannot send email", e); + } + } + +} diff --git a/src/main/java/com/subsidy/service/impl/MoniCollegeMajorMappingServiceImpl.java b/src/main/java/com/subsidy/service/impl/MoniCollegeMajorMappingServiceImpl.java new file mode 100644 index 0000000..fec151d --- /dev/null +++ b/src/main/java/com/subsidy/service/impl/MoniCollegeMajorMappingServiceImpl.java @@ -0,0 +1,20 @@ +package com.subsidy.service.impl; + +import com.subsidy.model.MoniCollegeMajorMappingDO; +import com.subsidy.mapper.MoniCollegeMajorMappingMapper; +import com.subsidy.service.MoniCollegeMajorMappingService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 院校专业映射表 服务实现类 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +@Service +public class MoniCollegeMajorMappingServiceImpl extends ServiceImpl implements MoniCollegeMajorMappingService { + +} diff --git a/src/main/java/com/subsidy/service/impl/MoniCollegeServiceImpl.java b/src/main/java/com/subsidy/service/impl/MoniCollegeServiceImpl.java new file mode 100644 index 0000000..3f81f79 --- /dev/null +++ b/src/main/java/com/subsidy/service/impl/MoniCollegeServiceImpl.java @@ -0,0 +1,20 @@ +package com.subsidy.service.impl; + +import com.subsidy.model.MoniCollegeDO; +import com.subsidy.mapper.MoniCollegeMapper; +import com.subsidy.service.MoniCollegeService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 院校 服务实现类 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +@Service +public class MoniCollegeServiceImpl extends ServiceImpl implements MoniCollegeService { + +} diff --git a/src/main/java/com/subsidy/service/impl/MoniCompanyServiceImpl.java b/src/main/java/com/subsidy/service/impl/MoniCompanyServiceImpl.java new file mode 100644 index 0000000..7c7e749 --- /dev/null +++ b/src/main/java/com/subsidy/service/impl/MoniCompanyServiceImpl.java @@ -0,0 +1,20 @@ +package com.subsidy.service.impl; + +import com.subsidy.model.MoniCompanyDO; +import com.subsidy.mapper.MoniCompanyMapper; +import com.subsidy.service.MoniCompanyService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +@Service +public class MoniCompanyServiceImpl extends ServiceImpl implements MoniCompanyService { + +} diff --git a/src/main/java/com/subsidy/service/impl/MoniJobMajorServiceImpl.java b/src/main/java/com/subsidy/service/impl/MoniJobMajorServiceImpl.java new file mode 100644 index 0000000..430d6f3 --- /dev/null +++ b/src/main/java/com/subsidy/service/impl/MoniJobMajorServiceImpl.java @@ -0,0 +1,20 @@ +package com.subsidy.service.impl; + +import com.subsidy.model.MoniJobMajorDO; +import com.subsidy.mapper.MoniJobMajorMapper; +import com.subsidy.service.MoniJobMajorService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +@Service +public class MoniJobMajorServiceImpl extends ServiceImpl implements MoniJobMajorService { + +} diff --git a/src/main/java/com/subsidy/service/impl/MoniMajorServiceImpl.java b/src/main/java/com/subsidy/service/impl/MoniMajorServiceImpl.java new file mode 100644 index 0000000..8beee76 --- /dev/null +++ b/src/main/java/com/subsidy/service/impl/MoniMajorServiceImpl.java @@ -0,0 +1,320 @@ +package com.subsidy.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.subsidy.mapper.MoniCompanyMapper; +import com.subsidy.mapper.MoniResultMapper; +import com.subsidy.model.MoniCollegeDO; +import com.subsidy.model.MoniCompanyDO; +import com.subsidy.model.MoniMajorDO; +import com.subsidy.mapper.MoniMajorMapper; +import com.subsidy.model.MoniResultDO; +import com.subsidy.service.MoniMajorService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.subsidy.util.excel.ExcelUtil; +import com.subsidy.vo.simulation.*; +import org.springframework.beans.BeanUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.web.multipart.MultipartFile; + +import java.time.YearMonth; +import java.util.*; +import java.util.concurrent.Callable; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.Future; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + *

+ * 服务实现类 + *

+ * + * @author Tuyp + * @since 2024-11-04 + */ +@Service +public class MoniMajorServiceImpl extends ServiceImpl implements MoniMajorService { + + + @Autowired + private MoniCompanyMapper moniCompanyMapper; + + @Autowired + private MoniResultMapper moniResultMapper; + + public void simulationJob(SimulationSeekerDTO simulationSeekerDTO) { + + List simulationJobVOS = new ArrayList<>(); + + List outPuts = simulationSeekerDTO.getOutPuts(); + + for (OutPutVO outPutVO : outPuts){ + List moniCompanyDOS = moniCompanyMapper.limitNData(outPutVO.getMajorType()); + Collections.shuffle(moniCompanyDOS); + for (int i = 0 ; i < outPutVO.getCnt() ; i++) { + SimulationJobVO simulationJobVO = new SimulationJobVO(); + simulationJobVO.setCompanyName(moniCompanyDOS.get(i).getCompanyName()); + simulationJobVO.setJobName(moniCompanyDOS.get(i).getCompanyJob()); + simulationJobVO.setApplyCnt(moniCompanyDOS.get(i).getNumbers()); + simulationJobVO.setSalary(moniCompanyDOS.get(i).getSalary()); +// simulationJobVO.setJobDesc(moniCompanyDOS.get(i).getContent()); +// simulationJobVO.setDemand(moniCompanyDOS.get(i).getRequirement()); + simulationJobVO.setAddress(moniCompanyDOS.get(i).getLocation()); + simulationJobVO.setJobDuration(moniCompanyDOS.get(i).getYears()); + simulationJobVO.setEducation(moniCompanyDOS.get(i) .getDemands()); + simulationJobVOS.add(simulationJobVO); + } + } + ExcelUtil.writeExcel(simulationJobVOS, SimulationJobVO.class); + } + + public void simulationSeeker(SimulationSeekerDTO simulationSeekerDTO) { + +// List data = new ArrayList<>(); +// +// //表头 +// List titles = new ArrayList<>(); +// titles.add("专业名称"); +// titles.add("毕业院校"); +// titles.add("毕业年份"); +// titles.add("工作经历1"); +// titles.add("工作经历2"); +// titles.add("工作经历3"); +// titles.add("工作经历4"); +// titles.add("工作经历5"); +// titles.add("工作经历6"); +// titles.add("工作经历7"); +// titles.add("工作经历8"); +// titles.add("工作经历9"); +// titles.add("工作经历10"); +// titles.add("工作经历11"); +// titles.add("工作经历12"); + +// List excelFieldVOS = new ArrayList<>(); +// for (String title : titles) { +// ExcelFieldVO excelFieldVO = new ExcelFieldVO(); +// excelFieldVO.setField(title); +// excelFieldVO.setName(title); +// excelFieldVOS.add(excelFieldVO); +// } + + List outPuts = simulationSeekerDTO.getOutPuts(); + + // 定义线程池的大小,根据你的需要来设置 +// ExecutorService executor = Executors.newFixedThreadPool(outPuts.size()); + + // 用于存放Future对象的列表,Future对象可以用来检查任务是否完成 +// List> futures = new ArrayList<>(); + + for (OutPutVO outPutVO : outPuts) { + +// Future future = executor.submit(new Callable() { +// @Override +// public Object call() throws Exception { + // 这里执行你的任务 + dataProcess(outPutVO); +// return null; +// } +// }); + // 将Future对象添加到列表中 +// futures.add(future); + } + // 关闭ExecutorService,不再接受新任务 +// executor.shutdown(); + +// // 等待所有任务完成 +// for (Future future : futures) { +// try { +// // get方法会阻塞直到任务完成 +// future.get(); +// } catch (Exception e) { +// e.printStackTrace(); +// } +// } +// +// Collections.shuffle(data); +// ExcelUtil.writeMapExcel(excelFieldVOS, data); + + } + +// public void analysisExcel(MultipartFile multipartFile) { +// +// List analysisExcelVOS = new ArrayList<>(); +// +// List analysisExcelDTOS = ExcelUtil.readExcel(null, AnalysisExcelDTO.class, multipartFile); +// for (AnalysisExcelDTO analysisExcelDTO : analysisExcelDTOS) { +// AnalysisExcelVO analysisExcelVO = new AnalysisExcelVO(); +// BeanUtils.copyProperties(analysisExcelDTO, analysisExcelVO); +// // 处理并拆分文本 +// String[] result = cleanAndSplitDesc(analysisExcelDTO.getCompanyDesc()); +// +// // 将拆分后的内容写入新的列 +// analysisExcelVO.setContent(result[0]); // 工作内容 +// analysisExcelVO.setDemands(result[1]); // 工作要求 +// analysisExcelVO.setWearFare(result[2]); // 福利待遇 +// +// analysisExcelVOS.add(analysisExcelVO); +// } +// +// ExcelUtil.writeExcel(analysisExcelVOS, AnalysisExcelVO.class); +// } + + // 清理并拆分文本 +// private static String[] cleanAndSplitDesc(String companyDesc) { +// // 去除问号、星号及乱码 +// companyDesc = companyDesc.replaceAll("[?*]+", ""); +// companyDesc = companyDesc.replaceAll("[^\\x00-\\x7F]+", ""); +// +// // 初始化各个部分 +// String jobContent = ""; +// String jobRequirements = ""; +// String benefits = ""; +// +// // 使用正则表达式拆分文本 +// Pattern jobContentPattern = Pattern.compile("工作内容[::](.*?)(职位要求[::]|福利待遇[::]|$)"); +// Matcher jobContentMatcher = jobContentPattern.matcher(companyDesc); +// if (jobContentMatcher.find()) { +// jobContent = jobContentMatcher.group(1).trim(); +// } +// +// Pattern jobRequirementsPattern = Pattern.compile("职位要求[::](.*?)(福利待遇[::]|$)"); +// Matcher jobRequirementsMatcher = jobRequirementsPattern.matcher(companyDesc); +// if (jobRequirementsMatcher.find()) { +// jobRequirements = jobRequirementsMatcher.group(1).trim(); +// } +// +// Pattern benefitsPattern = Pattern.compile("福利待遇[::](.*?)(工作内容[::]|职位要求[::]|$)"); +// Matcher benefitsMatcher = benefitsPattern.matcher(companyDesc); +// if (benefitsMatcher.find()) { +// benefits = benefitsMatcher.group(1).trim(); +// } +// +// // 返回拆分结果 +// return new String[]{jobContent, jobRequirements, benefits}; +// } + + public void dataProcess(OutPutVO outPutVO) { + List moniMajorDOS = this.baseMapper.typeMajors(outPutVO.getMajorType()); + + //行业id 院校 + HashMap> college = new HashMap<>(); + List moniCollegeDOS = moniCompanyMapper.majorColleges(outPutVO.getMajorType()); + for (MajorCollegesVO moniCollegeDO : moniCollegeDOS) { + if (college.keySet().contains(moniCollegeDO.getId())) { + List moniCollegeDOS1 = college.get(moniCollegeDO.getId()); + moniCollegeDOS1.add(moniCollegeDO); + college.put(moniCollegeDO.getId(), moniCollegeDOS1); + } else { + List moniCollegeDOS1 = new ArrayList<>(); + moniCollegeDOS1.add(moniCollegeDO); + college.put(moniCollegeDO.getId(), moniCollegeDOS1); + } + } + + //行业大类 公司 + //随机一个院校 + List moniCompanyDOS = moniCompanyMapper.majorCompanies(outPutVO.getMajorType()); + + for (int i = 0; i < outPutVO.getCnt(); i++) { + + MoniResultDO moniResultDO = new MoniResultDO(); + +// HashMap hashMap = new HashMap<>(); + + //专业 + MajorVO majorVO = moniMajorDOS.get(randSizeElement(moniMajorDOS.size())); //专业 + moniResultDO.setMajorName(majorVO.getMajor()); +// hashMap.put("专业名称", majorVO.getMajor()); + + //随机一个院校 + MajorCollegesVO moniCollegeDO = college.get(majorVO.getId()).get(randSizeElement(college.get(majorVO.getId()).size())); + moniResultDO.setCollege(moniCollegeDO.getCollegeName()); +// hashMap.put("毕业院校", moniCollegeDO.getCollegeName()); + + //当前年份 + YearMonth todayYear = YearMonth.now().minusMonths(jobRand123(4) - 1); + + Collections.shuffle(moniCompanyDOS); + List companyTmp = moniCompanyDOS.subList(0, jobRand123(12)); + + YearMonth yearMonth1 = null; + for (int k = companyTmp.size() - 1; k >= 0; k--) { + //工作时间 + StringBuffer exp = new StringBuffer(); + yearMonth1 = todayYear.minusMonths(randDuration()); + + exp.append(yearMonth1 + "~" + todayYear).append(":") + .append(companyTmp.get(k).getCompanyJob()) + .append(",") + .append(companyTmp.get(k).getCompanyName()) + .append(",") + .append(companyTmp.get(k).getCompanyDesc()) + .append(",") + .append(companyTmp.get(k).getSalary()) + .append(",") + .append(companyTmp.get(k).getCompanyIndustry()); +// hashMap.put("工作经历" + (k + 1), exp.toString()); + if (k == 0) { + moniResultDO.setExp1(exp.toString()); + } else if (k == 1) { + moniResultDO.setExp2(exp.toString()); + } else if (k == 2) { + moniResultDO.setExp3(exp.toString()); + } else if (k == 3) { + moniResultDO.setExp4(exp.toString()); + } else if (k == 4) { + moniResultDO.setExp5(exp.toString()); + } else if (k == 5) { + moniResultDO.setExp6(exp.toString()); + } else if (k == 6) { + moniResultDO.setExp7(exp.toString()); + } else if (k == 7) { + moniResultDO.setExp8(exp.toString()); + } else if (k == 8) { + moniResultDO.setExp9(exp.toString()); + } else if (k == 9) { + moniResultDO.setExp10(exp.toString()); + } else if (k == 10) { + moniResultDO.setExp11(exp.toString()); + } else if (k == 11) { + moniResultDO.setExp12(exp.toString()); + } + todayYear = yearMonth1.minusMonths(jobRand123(2)); + } + //毕业年份 + moniResultDO.setGraduate(todayYear.toString()); +// hashMap.put("毕业年份",todayYear.toString()); +// data.add(hashMap); + moniResultMapper.insert(moniResultDO); + } + } + + /** + * 随机一个数组元素 + */ + public int randSizeElement(int size) { + return new Random().nextInt(size); + } + + /** + * 生成3-15的随机数 + */ + public int randDuration() { + return new Random().nextInt(5) + 3; + } + + /** + * 1-i里随机取一个元素 工作经历 + */ + public int jobRand123(int i) { + return new Random().nextInt(i) + 1; + } + + public static void main(String[] args) { + for (int i = 0 ; i < 100 ; i ++){ + System.out.println(new Random().nextInt(i) + 1); + } + } +} diff --git a/src/main/java/com/subsidy/service/impl/MoniResultCompanyServiceImpl.java b/src/main/java/com/subsidy/service/impl/MoniResultCompanyServiceImpl.java new file mode 100644 index 0000000..a04380a --- /dev/null +++ b/src/main/java/com/subsidy/service/impl/MoniResultCompanyServiceImpl.java @@ -0,0 +1,20 @@ +package com.subsidy.service.impl; + +import com.subsidy.model.MoniResultCompanyDO; +import com.subsidy.mapper.MoniResultCompanyMapper; +import com.subsidy.service.MoniResultCompanyService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author Tuyp + * @since 2024-11-09 + */ +@Service +public class MoniResultCompanyServiceImpl extends ServiceImpl implements MoniResultCompanyService { + +} diff --git a/src/main/java/com/subsidy/service/impl/MoniResultServiceImpl.java b/src/main/java/com/subsidy/service/impl/MoniResultServiceImpl.java new file mode 100644 index 0000000..9ee2db3 --- /dev/null +++ b/src/main/java/com/subsidy/service/impl/MoniResultServiceImpl.java @@ -0,0 +1,20 @@ +package com.subsidy.service.impl; + +import com.subsidy.model.MoniResultDO; +import com.subsidy.mapper.MoniResultMapper; +import com.subsidy.service.MoniResultService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +/** + *

+ * 服务实现类 + *

+ * + * @author Tuyp + * @since 2024-11-07 + */ +@Service +public class MoniResultServiceImpl extends ServiceImpl implements MoniResultService { + +} diff --git a/src/main/java/com/subsidy/util/excel/ExcelUtil.java b/src/main/java/com/subsidy/util/excel/ExcelUtil.java index 5a2387e..76b8407 100644 --- a/src/main/java/com/subsidy/util/excel/ExcelUtil.java +++ b/src/main/java/com/subsidy/util/excel/ExcelUtil.java @@ -1,5 +1,6 @@ package com.subsidy.util.excel; +import com.subsidy.vo.simulation.ExcelFieldVO; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.BooleanUtils; import org.apache.commons.lang3.CharUtils; @@ -365,6 +366,50 @@ public class ExcelUtil { } } + + public static void writeMapExcel(List fields, List list) { + ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); + HttpServletResponse response = servletRequestAttributes.getResponse(); + + Workbook wb = new XSSFWorkbook(); + Sheet sheet = wb.createSheet(); + AtomicInteger ai = new AtomicInteger(); + { + Row row = sheet.createRow(ai.getAndIncrement()); + AtomicInteger at = new AtomicInteger(); + fields.forEach(field -> { + Cell cell = row.createCell(at.getAndIncrement()); + CellStyle cellStyle = wb.createCellStyle(); + cellStyle.setFillForegroundColor(IndexedColors.PALE_BLUE.getIndex()); + Font font = wb.createFont(); + font.setBoldweight(Font.BOLDWEIGHT_BOLD); + cellStyle.setFont(font); + cell.setCellStyle(cellStyle); + cell.setCellValue(field.getName()); + }); + + if (list != null) { + list.forEach(map -> { + Row r = sheet.createRow(ai.getAndIncrement()); + AtomicInteger a = new AtomicInteger(); + fields.forEach(field -> { + Object value = map.get(field.getField()); + Cell cell = r.createCell(a.getAndIncrement()); + if (value != null) { + cell.setCellValue(value.toString()); + } + }); + }); + for (int i = 0; i < list.size(); i++) { + sheet.autoSizeColumn(i); + } + } + String fileName = String.valueOf(new Date().getTime()); + buildExcelDocument(fileName + "." + EXCEL2007, wb, response); + } + } + + private static void setStyle(CellStyle cellStyle) { // 水平居中 cellStyle.setAlignment(CellStyle.ALIGN_CENTER); diff --git a/src/main/java/com/subsidy/vo/simulation/AnalysisExcelDTO.java b/src/main/java/com/subsidy/vo/simulation/AnalysisExcelDTO.java new file mode 100644 index 0000000..59d4787 --- /dev/null +++ b/src/main/java/com/subsidy/vo/simulation/AnalysisExcelDTO.java @@ -0,0 +1,48 @@ +package com.subsidy.vo.simulation; + +import com.subsidy.util.excel.ExcelColumnUtil; +import lombok.Data; + +@Data +public class AnalysisExcelDTO { + + @ExcelColumnUtil(value = "id", col = 1) + private String id; + + @ExcelColumnUtil(value = "company_name", col = 2) + private String companyName; + + @ExcelColumnUtil(value = "company_job", col = 3) + private String schoolName; + + @ExcelColumnUtil(value = "job_major", col = 4) + private String idCard; + + @ExcelColumnUtil(value = "company_desc", col = 5) + private String companyDesc; + + @ExcelColumnUtil(value = "requirement", col = 6) + private String requirement; + + @ExcelColumnUtil(value = "content", col = 7) + private String content; + + @ExcelColumnUtil(value = "company_industry", col = 8) + private String companyIndustry; + + @ExcelColumnUtil(value = "salary", col = 9) + private String salary; + + @ExcelColumnUtil(value = "demands", col = 10) + private String demands; + + @ExcelColumnUtil(value = "numbers", col = 11) + private String numbers; + + @ExcelColumnUtil(value = "location", col = 12) + private String location; + + @ExcelColumnUtil(value = "years", col = 13) + private String years; + +} diff --git a/src/main/java/com/subsidy/vo/simulation/AnalysisExcelVO.java b/src/main/java/com/subsidy/vo/simulation/AnalysisExcelVO.java new file mode 100644 index 0000000..135e609 --- /dev/null +++ b/src/main/java/com/subsidy/vo/simulation/AnalysisExcelVO.java @@ -0,0 +1,55 @@ +package com.subsidy.vo.simulation; + +import com.subsidy.util.excel.ExcelColumn; +import com.subsidy.util.excel.ExcelColumnUtil; +import lombok.Data; + +@Data +public class AnalysisExcelVO { + + + @ExcelColumn(value = "id", col = 1) + private String id; + + @ExcelColumn(value = "company_name", col = 2) + private String companyName; + + @ExcelColumn(value = "company_job", col = 3) + private String schoolName; + + @ExcelColumn(value = "job_major", col = 4) + private String idCard; + + @ExcelColumn(value = "company_desc", col = 5) + private String companyDesc; + + @ExcelColumn(value = "requirement", col = 6) + private String requirement; + + @ExcelColumn(value = "content", col = 7) + private String content; + + @ExcelColumn(value = "wearFare", col = 8) + private String wearFare; + + @ExcelColumn(value = "company_industry", col = 9) + private String companyIndustry; + + @ExcelColumn(value = "salary", col = 10) + private String salary; + + @ExcelColumn(value = "demands", col = 11) + private String demands; + + @ExcelColumn(value = "numbers", col = 12) + private String numbers; + + @ExcelColumn(value = "location", col = 13) + private String location; + + @ExcelColumn(value = "years", col = 14) + private String years; + + + +} diff --git a/src/main/java/com/subsidy/vo/simulation/ExcelFieldVO.java b/src/main/java/com/subsidy/vo/simulation/ExcelFieldVO.java new file mode 100644 index 0000000..2c578c8 --- /dev/null +++ b/src/main/java/com/subsidy/vo/simulation/ExcelFieldVO.java @@ -0,0 +1,12 @@ +package com.subsidy.vo.simulation; + +import lombok.Data; + +@Data +public class ExcelFieldVO { + + private String field; + + private String name; + +} diff --git a/src/main/java/com/subsidy/vo/simulation/JobSeekerInfoVO.java b/src/main/java/com/subsidy/vo/simulation/JobSeekerInfoVO.java new file mode 100644 index 0000000..a93f1c8 --- /dev/null +++ b/src/main/java/com/subsidy/vo/simulation/JobSeekerInfoVO.java @@ -0,0 +1,58 @@ +package com.subsidy.vo.simulation; + +import com.subsidy.model.MoniCompanyDO; +import com.subsidy.util.excel.ExcelColumn; +import lombok.Data; + +import java.util.List; + +@Data +public class JobSeekerInfoVO { + + @ExcelColumn(col = 1,value = "专业名称") + private String major; + + @ExcelColumn(col = 2,value = "毕业院校") + private String college; + + @ExcelColumn(col = 3,value = "毕业年份") + private String graduateDate; + + @ExcelColumn(col = 4,value = "工作经历1") + private String jobDuration1; + + @ExcelColumn(col = 5,value = "工作经历2") + private String jobDuration2; + + @ExcelColumn(col = 6,value = "工作经历3") + private String jobDuration3; + + @ExcelColumn(col = 7,value = "工作经历4") + private String jobDuration4; + + @ExcelColumn(col = 8,value = "工作经历5") + private String jobDuration5; + + @ExcelColumn(col = 9,value = "工作经历6") + private String jobDuration6; + + @ExcelColumn(col = 10,value = "工作经历7") + private String jobDuration7; + + @ExcelColumn(col = 11,value = "工作经历8") + private String jobDuration8; + + @ExcelColumn(col = 12,value = "工作经历9") + private String jobDuration9; + + @ExcelColumn(col = 13,value = "工作经历10") + private String jobDuration10; + + @ExcelColumn(col = 14,value = "工作经历11") + private String jobDuration11; + + @ExcelColumn(col = 15,value = "工作经历12") + private String jobDuration12; + + private List companyTmp; +} diff --git a/src/main/java/com/subsidy/vo/simulation/MajorCollegesVO.java b/src/main/java/com/subsidy/vo/simulation/MajorCollegesVO.java new file mode 100644 index 0000000..bfb852f --- /dev/null +++ b/src/main/java/com/subsidy/vo/simulation/MajorCollegesVO.java @@ -0,0 +1,15 @@ +package com.subsidy.vo.simulation; + +import lombok.Data; + +@Data +public class MajorCollegesVO { + + private Long id; + + /** + * 院校名称 + */ + private String collegeName; + +} diff --git a/src/main/java/com/subsidy/vo/simulation/MajorCompaniesVO.java b/src/main/java/com/subsidy/vo/simulation/MajorCompaniesVO.java new file mode 100644 index 0000000..978485d --- /dev/null +++ b/src/main/java/com/subsidy/vo/simulation/MajorCompaniesVO.java @@ -0,0 +1,64 @@ +package com.subsidy.vo.simulation; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import lombok.Data; + +@Data +public class MajorCompaniesVO { + + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 公司名称 + */ + private String companyName; + + /** + * 工作名 + */ + private String companyJob; + + /** + * 工作专业 + */ + private String jobMajor; + + /** + * 工作详情 + */ + private String companyDesc; + + /** + * 公司行业 + */ + private String companyIndustry; + + /** + * 工资 + */ + private String salary; + + /** + * 学历要求 + */ + private String demands; + + /** + * 地址 + */ + private String location; + + private String years; + + private String numbers; + + private String requirement; + + private String content; + + private String welfare; + +} diff --git a/src/main/java/com/subsidy/vo/simulation/MajorVO.java b/src/main/java/com/subsidy/vo/simulation/MajorVO.java new file mode 100644 index 0000000..9abbbe4 --- /dev/null +++ b/src/main/java/com/subsidy/vo/simulation/MajorVO.java @@ -0,0 +1,15 @@ +package com.subsidy.vo.simulation; + +import lombok.Data; + +@Data +public class MajorVO { + + private Long id; + + private String majorType; + + private String major; + + +} diff --git a/src/main/java/com/subsidy/vo/simulation/OutPutVO.java b/src/main/java/com/subsidy/vo/simulation/OutPutVO.java new file mode 100644 index 0000000..56f9b0f --- /dev/null +++ b/src/main/java/com/subsidy/vo/simulation/OutPutVO.java @@ -0,0 +1,12 @@ +package com.subsidy.vo.simulation; + +import lombok.Data; + +@Data +public class OutPutVO { + + private String majorType; + + private Integer cnt; + +} diff --git a/src/main/java/com/subsidy/vo/simulation/SimulationJobVO.java b/src/main/java/com/subsidy/vo/simulation/SimulationJobVO.java new file mode 100644 index 0000000..15d094d --- /dev/null +++ b/src/main/java/com/subsidy/vo/simulation/SimulationJobVO.java @@ -0,0 +1,38 @@ +package com.subsidy.vo.simulation; + +import com.subsidy.util.excel.ExcelColumn; +import lombok.Data; + +@Data +public class SimulationJobVO { + + @ExcelColumn(col = 1,value = "单位名称") + private String companyName; + + @ExcelColumn(col = 2,value = "用人单位性质") + private String companyType; + + @ExcelColumn(col = 3,value = "岗位名称") + private String jobName; + + @ExcelColumn(col = 4,value = "招聘人数") + private String applyCnt; + + @ExcelColumn(col = 5,value = "薪资待遇") + private String salary; + + @ExcelColumn(col = 6,value = "工作职责/岗位职责/职位介绍/职位描述") + private String jobDesc; + + @ExcelColumn(col = 7,value = "任职资格/要求") + private String demand; + + @ExcelColumn(col = 8,value = "工作地点") + private String address; + + @ExcelColumn(col = 9,value = "工作年限") + private String jobDuration; + + @ExcelColumn(col = 10,value = "学历要求") + private String education; +} diff --git a/src/main/java/com/subsidy/vo/simulation/SimulationSeekerDTO.java b/src/main/java/com/subsidy/vo/simulation/SimulationSeekerDTO.java new file mode 100644 index 0000000..eca1082 --- /dev/null +++ b/src/main/java/com/subsidy/vo/simulation/SimulationSeekerDTO.java @@ -0,0 +1,12 @@ +package com.subsidy.vo.simulation; + +import lombok.Data; + +import java.util.List; + +@Data +public class SimulationSeekerDTO { + + private List outPuts; + +} diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index 1dd5a62..d0f0aa2 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -1,15 +1,12 @@ # 本地环境配置 spring.server.port=23467 -# 数据源配置 -#spring.datasource.url=jdbc:mysql://116.62.57.92:3306/subsidy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 -##spring.datasource.url=jdbc:mysql://rm-uf6rab73w0qg843opxo.mysql.rds.aliyuncs.com:3306/subsidy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 +## 数据源配置 +#spring.datasource.url=jdbc:mysql://localhost:3306/subsidy?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 #spring.datasource.type=com.alibaba.druid.pool.DruidDataSource #spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -##spring.datasource.username=ykadmin_new -##spring.datasource.password=youkedb608@good -#spring.datasource.username=devloper -#spring.datasource.password=dev@1553$ +#spring.datasource.username=root +#spring.datasource.password=123456 # 数据源配置 spring.datasource.url=jdbc:mysql://139.224.253.21:3306/subsidy?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 diff --git a/src/main/resources/application-online.properties b/src/main/resources/application-pre.properties similarity index 57% rename from src/main/resources/application-online.properties rename to src/main/resources/application-pre.properties index 5bca86a..5b8e37c 100644 --- a/src/main/resources/application-online.properties +++ b/src/main/resources/application-pre.properties @@ -1,15 +1,19 @@ # 本地环境配置 -spring.server.port=23462 +spring.server.port=23467 # 数据源配置 -spring.datasource.url=jdbc:mysql://116.62.57.92:3306/subsidy_online?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 -#spring.datasource.url=jdbc:mysql://rm-uf6rab73w0qg843opxo.mysql.rds.aliyuncs.com:3306/subsidy_test?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 +spring.datasource.url=jdbc:mysql://localhost:3306/subsidy?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 spring.datasource.type=com.alibaba.druid.pool.DruidDataSource spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -#spring.datasource.username=ykadmin_new -#spring.datasource.password=youkedb608@good -spring.datasource.username=devloper -spring.datasource.password=dev@1553$ +spring.datasource.username=root +spring.datasource.password=123456 + +# 数据源配置 +#spring.datasource.url=jdbc:mysql://139.224.253.21:3306/subsidy?autoReconnect=true&useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 +#spring.datasource.type=com.alibaba.druid.pool.DruidDataSource +#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +#spring.datasource.username=root +#spring.datasource.password=ykhladmin302 spring.datasource.druid.initialSize=5 spring.datasource.druid.minIdle=5 @@ -28,22 +32,6 @@ spring.datasource.druid.useGlobalDataSourceStat=true # 控制台日志打印 mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl -#spring.redis.host=r-uf6meywj6ysuehg148pd.redis.rds.aliyuncs.com -#spring.redis.password=r-uf6meywj6ysuehg148:Ykhl@208 -#spring.redis.port=6379 -#spring.redis.lettuce.pool.max-idle=16 -#spring.redis.lettuce.pool.max-active=32 -#spring.redis.lettuce.pool.min-idle=8 - -#spring.application.name=spring-boot-mongodb -## mongodb -##spring.data.mongodb.uri=mongodb://47.97.19.66:27017/subsidy -#spring.data.mongodb.username=root -#spring.data.mongodb.password=123456 -##spring.data.mongodb.authentication-database=subsidy -#spring.data.mongodb.database=subsidy -#spring.data.mongodb.host=47.97.19.66 -#spring.data.mongodb.port=27017 spring.redis.host=47.97.19.66 spring.redis.password=Ykhl@208 @@ -56,5 +44,6 @@ qxueyou.appId=qxywz5nnWMI77CM3Tx qxueyou.securityKey=626737T1-65K0-5xC2-0Y0V-2Aq95qxy qxueyou.url=https://dev.qxueyou.com/auth/user/token -renshe.url = https://api.shzypxy.com -renshe.secretKey = 111 \ No newline at end of file +renshe.url = https://test.shzypxy.com +renshe.secretKey = ad927f0b-6a39-43a7-bac7-163baef1fff7 +renshe.putuo = http://180.167.195.117:18015/ddproject \ No newline at end of file diff --git a/src/main/resources/application-quartz.properties b/src/main/resources/application-quartz.properties index 0d1f6b6..699a7fe 100644 --- a/src/main/resources/application-quartz.properties +++ b/src/main/resources/application-quartz.properties @@ -1,7 +1,7 @@ -spring.quartz.properties.org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX -spring.quartz.properties.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate -spring.quartz.properties.org.quartz.jobStore.tablePrefix=QRTZ_ -spring.quartz.properties.org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool -spring.quartz.properties.org.quartz.threadPool.threadCount=15 -spring.quartz.properties.org.quartz.threadPool.threadPriority=5 -spring.quartz.properties.org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread=true \ No newline at end of file +#spring.quartz.properties.org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX +#spring.quartz.properties.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate +#spring.quartz.properties.org.quartz.jobStore.tablePrefix=QRTZ_ +#spring.quartz.properties.org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool +#spring.quartz.properties.org.quartz.threadPool.threadCount=15 +#spring.quartz.properties.org.quartz.threadPool.threadPriority=5 +#spring.quartz.properties.org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread=true \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 75a5fad..a63dcf5 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,5 +1,5 @@ # 环境配置 平台端 -spring.profiles.active=dev +spring.profiles.active=pre #和CPU数 spring.server.acceptorThreadCount=600 spring.server.minSpareThreads=100 @@ -57,21 +57,7 @@ vod.secretKey=vjHYRmrfDbw0rWxA7oFcj7F8lDPKCm8E vod.api=vod.tencentcloudapi.com vod.region=ap-shanghai vod.classId=848920 -# quartz -# 数据持久化方式 -spring.quartz.job-store-type=jdbc -# 初始化后是否自动启动计划程序 -spring.quartz.auto-startup=true -# 初始化完成后启动计划程序的延迟时间 -spring.quartz.startup-delay=10s -# 配置的作业是否应覆盖现有的作业定义 -spring.quartz.overwrite-existing-jobs=false -# 自动建表,如果已经存在表请勿使用,会覆盖数据表 -#spring.quartz.jdbc.initialize-schema=always -#spring.datasource.initialization-mode=embedded -#spring.redis.host=r-uf6m4cpkjrgpzywjm3pd.redis.rds.aliyuncs.com -#spring.redis.port=6379 -#spring.redis.password=r-uf6m4cpkjrgpzywjm3:Ykhl@208 + wechat= #pro appId=wx5e1ecb9c9bd33451 diff --git a/src/main/resources/code.properties b/src/main/resources/code.properties index 49ba659..6969374 100644 --- a/src/main/resources/code.properties +++ b/src/main/resources/code.properties @@ -79,4 +79,5 @@ meishu.code-message[19001]=验证失败 meishu.code-message[20003]=提交时间过短,请稍后尝试 -meishu.code-message[30002]=该产品已存在 \ No newline at end of file +meishu.code-message[30002]=该产品已存在 +meishu.code-message[30003]=您已提交过信息,请勿重复提交 \ No newline at end of file diff --git a/src/main/resources/mapper/CollectInfoMapper.xml b/src/main/resources/mapper/CollectInfoMapper.xml new file mode 100644 index 0000000..6844ec9 --- /dev/null +++ b/src/main/resources/mapper/CollectInfoMapper.xml @@ -0,0 +1,14 @@ + + + + + + + diff --git a/src/main/resources/mapper/MoniCollegeMajorMappingMapper.xml b/src/main/resources/mapper/MoniCollegeMajorMappingMapper.xml new file mode 100644 index 0000000..303c5cf --- /dev/null +++ b/src/main/resources/mapper/MoniCollegeMajorMappingMapper.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + create_date, + update_date, + delete_date, + id, college_id, major_id + + + diff --git a/src/main/resources/mapper/MoniCollegeMapper.xml b/src/main/resources/mapper/MoniCollegeMapper.xml new file mode 100644 index 0000000..994d4c1 --- /dev/null +++ b/src/main/resources/mapper/MoniCollegeMapper.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + create_date, + update_date, + delete_date, + id, college_name + + + diff --git a/src/main/resources/mapper/MoniCompanyMapper.xml b/src/main/resources/mapper/MoniCompanyMapper.xml new file mode 100644 index 0000000..7a28713 --- /dev/null +++ b/src/main/resources/mapper/MoniCompanyMapper.xml @@ -0,0 +1,62 @@ + + + + + + + + + + + diff --git a/src/main/resources/mapper/MoniJobMajorMapper.xml b/src/main/resources/mapper/MoniJobMajorMapper.xml new file mode 100644 index 0000000..b676db3 --- /dev/null +++ b/src/main/resources/mapper/MoniJobMajorMapper.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + create_date, + update_date, + delete_date, + id, job_type, major_type + + + diff --git a/src/main/resources/mapper/MoniMajorMapper.xml b/src/main/resources/mapper/MoniMajorMapper.xml new file mode 100644 index 0000000..7511648 --- /dev/null +++ b/src/main/resources/mapper/MoniMajorMapper.xml @@ -0,0 +1,9 @@ + + + + + + + diff --git a/src/main/resources/mapper/MoniResultCompanyMapper.xml b/src/main/resources/mapper/MoniResultCompanyMapper.xml new file mode 100644 index 0000000..99b8e45 --- /dev/null +++ b/src/main/resources/mapper/MoniResultCompanyMapper.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + create_date, + update_date, + delete_date, + id, company_name, job_name, recuit_cnt, salary, company_desc, address, years, education + + + diff --git a/src/main/resources/mapper/MoniResultMapper.xml b/src/main/resources/mapper/MoniResultMapper.xml new file mode 100644 index 0000000..c898b2f --- /dev/null +++ b/src/main/resources/mapper/MoniResultMapper.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + create_date, + update_date, + delete_date, + id, major_name, college, graduate, exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8, exp9, exp10, exp11, exp12 + + +