摘要:
首先引入依赖 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version>3.0.0</version> </dependency> 创建配置类:Swagg 阅读全文
摘要:
首先创建类,定义一个事件,继承ApplicationEvent类实现方法 /** * 定义一个事件 */public class MsgEvent extends ApplicationEvent { public MsgEvent(Object source) { super(source); } 阅读全文
摘要:
首先打开编辑运行-编辑配置 点击修改选项-选择程序实参 输入命令行参数即可 阅读全文
摘要:
先上报错信息 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deptController': Injection of resource dependencies fai 阅读全文
摘要:
<!-- 配置Thymeleaf视图解析器 --> <bean id="viewResolver" class="org.thymeleaf.spring5.view.ThymeleafViewResolver"> <property name="order" value="1"/> <proper 阅读全文