application.properties配置参考 1、自定义log配置文件 logging.config=classpath:logback-spring.xml 2、具体某个包路径使用什么日志级别: logging.level.org.springframework=INFO 3、打印控制台日 ...
分类:
移动开发 时间:
2020-03-21 23:11:29
阅读次数:
503
如何创建一个SpringBoot项目,SpringBoot的依赖引入都是基于starter的,通常创建一个SpringBoot项目都是通过继承关系指定pom文件中的 。 org.springframework.boot spring boot starter parent 2.2.5.RELEASE ...
分类:
编程语言 时间:
2020-03-21 20:52:28
阅读次数:
211
承接上文,<tx:annotation-driven />开启声明式事务时,在SpringIOC容器中初始化了4个Bean <!-- 事务管理 --> <bean id="transactionManager" class="org.springframework.jdbc.datasource.D ...
分类:
编程语言 时间:
2020-03-21 17:49:34
阅读次数:
83
一. 步骤 1.加入Spring 1.1加入jar包 1.2配置web.xml配置文件 <!-- 配置Spring的核心监听器 --> <listener> <listener-class> org.springframework.web.context.ContextLoaderListener ...
分类:
其他好文 时间:
2020-03-21 15:00:04
阅读次数:
79
首先导入pom依赖 <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactI ...
分类:
编程语言 时间:
2020-03-21 11:26:41
阅读次数:
105
使用IDEA开发springboot项目,需求中要提交数据项和文件上传,同时接收实体bean对象和文件,后台Controller接收配置方式: Controller代码如下: 1 @RequestMapping(value="/comment",method = RequestMethod.POST ...
分类:
编程语言 时间:
2020-03-20 20:28:14
阅读次数:
686
spring boot 项目想要连接hive库的时候 需要导入两个jar包hadoop-common-2.5.1.jar和hive-jdbc-1.2.1 在导入的之后原来的项目启动报错具体如下 org.springframework.beans.factory.UnsatisfiedDependen ...
分类:
编程语言 时间:
2020-03-20 10:54:27
阅读次数:
222
1.使用注解的方式需要配置applicationContext.xml: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http ...
分类:
编程语言 时间:
2020-03-19 23:16:17
阅读次数:
109
一路踩坑,在bug中成长,与君共勉! 三月 19, 2020 7:51:57 下午 org.apache.catalina.core.StandardContext listenerStart严重: Exception sending context initialized event to lis ...
分类:
移动开发 时间:
2020-03-19 21:21:56
阅读次数:
89
1、新建一个SpringBoot项目 2、添加基本依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <d ...
分类:
编程语言 时间:
2020-03-19 17:53:28
阅读次数:
71