- 博客(55)
- 收藏
- 关注
原创 Failed to start bean ‘documentationPluginsBootstrapper‘; nested exception is java.lang.NullPoin
在 Spring Boot 2.6.0 及以上版本中,默认的路径匹配策略从 AntPathMatcher 变为了 PathPatternParser。这可能会导致一些依赖于旧路径匹配策略的库(如 knife4j)出现问题。通过显式地设置 spring.mvc.pathmatch.matching-strategy=ant_path_matcher,你可以恢复到旧的路径匹配策略,从而避免这些问题。
2024-11-04 23:30:44
520
2
原创 pd虚拟机共享网络给mac
通过mac外部网络设置,使网络路由到pd内的网络上。pd虚拟机(win10)网络设置添加一个网络2,网络1 设置已断开网络2打开mac 网络偏好设置配置一下网络的服务顺序,将wifi调到最顶端,同时将usb网卡和parallels Host-only#2 调到最后,见图二设置dns配置虚拟机网络共享回到虚拟机–更改网络适配器,找到可以连接外网的网卡,右键点击选择属性选择共享,共享给上面的网络2.同时设置网络2的ip信息大功告成回到mac 通过ping 192.168.1
2021-01-08 16:01:29
2609
原创 解决项目配置了maven 阿里云,还是用中央仓库下载依赖问题
pom文件添加<repositories> <repository> <id>nexus-aliyun</id> <name>nexus-aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <
2020-11-30 22:38:21
1417
原创 centos7如何固定ip
一编辑 /etc/sysconfig/network-script/ifcfg-enss33添加BOOTPROTO=static #开机协议,有dhcp及static;ONBOOT=yes #设置为开机启动;DNS1=192.168.8.2 # 下面的网关一致IPADDR=192.168.8.3 #你想要设置的固定IPNETMA...
2020-04-22 18:49:50
293
原创 git 清除远程仓库地址等信息
git config --global credential.helper wincredgit credential-manager uninstall
2020-04-17 10:11:49
828
原创 BeanCurrentlyInCreationException解决方案
解决方法在Bean上添加@Lazy注解 ,Spring的懒加载是在需要用到bean的时候去加载
2020-04-17 00:43:32
882
原创 org.springframework.core.annotation.MergedAnnotations$SearchStrategy
在使用@SpringBootTest注解时,报这个错。我使用的springboot版本是2.1.1的我使用的spring-test是5+版本的。应该是版本不匹配造成的,降低spring-test的版本到4.+ 就解决了。...
2020-01-22 15:29:43
5709
1
原创 Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource:
启动报错:Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource: Property: driverclassname Value: com.mysql.cj.jdbc.Driver Origin: "driverClassName" from property source "s...
2019-10-21 13:45:22
3188
原创 springBoot DAO接口could not be found
接口代码@Mapper@Repositorypublic interface UserDao {已经添加了@mapper注解。后来发现pom中添加的依赖不对错误的: <dependency> <groupId>org.mybatis</groupId> <artifactId>mybat...
2019-09-16 17:12:05
2575
原创 Result Maps collection does not contain value for com.
可能是resultType 写成了resultMap(-)。
2019-09-16 16:36:51
1500
3
原创 解决非@controller注入Service为 null
@Componentpublic class CollRainfallWarnQuartz { public static CollRainfallWarnQuartz collRainfallWarnQuartz; // 添加 @Autowired private RainfallWarnService rainfallWarnService; // 添加 ...
2019-09-07 11:16:56
224
原创 com.microsoft.sqlserver.jdbc.SQLServerException: 将截断字符串或二进制数据。
情况一向数据库插入字符串的长度,超过了定义的长度。例如:定义varchar(10) , 插入字符串长度是20。
2019-08-29 10:28:34
358
原创 依赖版本问题导致springboot启动报错
spring boot启动报错***************************APPLICATION FAILED TO START***************************Description:An attempt was made to call the method org.springframework.data.repository.config.Rep...
2019-07-30 20:57:40
1035
原创 springBoot-Swagger的使用
介绍了java中使用Swagger工具生成API的具体方法和实际项目开发中使用的方式1 Swagger是什么?2 整合springboot1 导入依赖2 创建SwaggerConfig.java类3 启动项目功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列...
2019-06-30 10:31:33
643
原创 Centos7连接网络失败
解决办法systemctl stop NetworkManagersystemctl disable NetworkManager (设置设置NetworkManager服务开机不启动)service network restart
2019-06-05 00:00:22
4828
5
原创 SpringBoot整合thymeleaf
SpringBoot整合thymeleaf1 首先加入依赖2 在properties或yml中添加配置3 将html页面写在4 html页面5 controller结果1 首先加入依赖<dependency> <groupId>org.springframework.boot</groupId> <artifac...
2019-05-27 23:27:06
148
转载 mysql的时区错误问题: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one
https://blog.youkuaiyun.com/lovequanquqn/article/details/84105311
2019-05-10 19:51:10
159
原创 面试总结之谈谈你对面向对象的理解
面向对象是一种编程思想,实现生活中任务物体都可以归结为某一类的事务,每一个个体物体可以看做是该类事务的具体实例。代码也一样,将具有相同功能的代码可以看做是一种类型,将共有的功能进行抽取。为了达到简化代码冗余的目的。...
2019-04-13 09:42:26
903
原创 Dubbo消费者启动时:Failed to configure a DataSource: 'url' attribute is not specified and no em
***************************APPLICATION FAILED TO START***************************Description:Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could...
2019-03-30 17:05:15
5227
2
原创 template might not exist or might not be accessible by any of the configured
这是springBoot找不到视图,我用的是shymeleaf所以在pom.xml中加入<build> <resources> <resource> <directory>src/main/java</directory> <includes> ...
2019-03-27 20:50:07
331
原创 ibatis.reflection.ReflectionException: There is no getter for property named xxx
mapper中传入的参数类型可能有问题。
2019-03-18 23:21:18
386
原创 UnsatisfiedDependencyException: Error creating bean with name xxx'
问题多出现在配置文件中有问题。我的controller层,service层,dao层都不能创建bean。最后发现是我使用resultmap映射,但sql结果用resultTypejie接收的。
2019-03-13 19:56:25
12969
原创 C(M,N)与A(M,N)
A(M,N)是从M个不同元素中选N个元素的排列数(区分元素排列先后顺序)C(M,N)是从M个不同元素中选N个元素的组合数(不区分元素排列先后顺序)C(n,m)=n!/m!(n-m)!故C(4,1)=4!/3!=4C(4,2)=4!/2!2!=6C(4,3)=4!/3!=4C(4,4)=4!/4!=1 ...
2019-02-21 15:42:56
8212
原创 java正则表达式
@Testpublic void Number6() { String str = "abc 78,.;';lkhj"; String regEn = "[a-zA-Z]"; //匹配字母 String regNum = "[0-9]"; //匹配数字 String regKongGe = "\\s"; //匹配空格 String other = "\...
2019-02-20 22:47:36
151
原创 java取一个数字的各个位上的数字
int n=1234;System.out.println("个位 "+ (n % 10));System.out.println("十位 "+ (n % 100)/10);System.out.println("百位 "+ (n % 1000)/100);System.out.println("千位 "+ (n /1000));
2019-02-20 20:25:55
6488
1
原创 map集合根据value找key
private static String getKey(Map<String, Integer> map, Object value) { String key = ""; for (Map.Entry<String, Integer> entry : map.entrySet()) { if (value.equals(entry.ge...
2019-02-20 20:07:00
4649
原创 请求地址没问题,但报400
总结:前端参数与后台参数数据类型不一致导致。详见下:实体类中:private Integer gameId;controller:gameId又作为参数 为了将前端传过来的参数直接封装进实体类,前端参数名需要与参数命名保持一致,但前端传过来的参数都是String类型。故报400,解决可以将pojo中属性命名为String即可。...
2019-02-18 22:40:11
888
原创 org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool问题解决方案
tomcat版本的问题,升级tomcat版本。
2019-02-16 19:03:05
1312
原创 数据类型转换
public static void main(String[] args) { Float pay=100F; System.out.println(pay); System.out.println("======================="); System.out.println(pay.intValue()); //...
2019-02-14 09:06:53
99
原创 SyntaxError: missing ; after for-loop initializer
$.ajax({ url: "<%=request.getContextPath()%>/student/timeByDate.html", method: "post", data: "date=" + $(obj).text().trim(), success: function (json) { console.log(json)...
2019-02-12 21:25:45
1774
1
原创 将字符串转化为日期类型
@Testpublic void testDate() throws ParseException { String date="2018-08-08"; SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); Date parse = simpleDateFormat.parse(d...
2019-02-12 20:16:51
2763
原创 将List集合逆序排序
java自带的Collections类型,用来操作集合的,有时用来操作集合十分方便 逆序操作有时简便jsp页面的<c:foreach>操作
2019-02-12 17:47:58
759
原创 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name "xx"
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'accountController': Unsatisfied dependency expressed through field 'accountServiceImpl'; nested excepti...
2019-02-02 13:38:57
1788
1
原创 FileNotFoundException: Could not open ServletContext resource [/jdbc.properties]
在搭建ssm框架时,报如下错误:FileNotFoundException: Could not open ServletContext resource [/jdbc.properties]springmvc的配置文件中修改为:<context:property-placeholder location="classpath:/jdbc.properties"/>...
2019-02-02 13:20:08
525
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人