- 博客(6)
- 收藏
- 关注
原创 Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?Error: failed to start containers: register我是在修改宿主机的docker配置,让其可以远程访问后出现的这个问题步骤是vi /lib/systemd/system/docker.service其中ExecStart=后添加配置‐H tcp://0.0.0.0:2
2022-03-19 23:09:30 880
原创 SpringBoot自己写一个拦截器遇到的那些坑
自己跟着学springBoot的过程中真是遇到了一个又一个坑,最近拦截器这个坑是真的坑。@SpringBootApplication注解主要包装了@SpringBootConfiguration、@EnableAutoConfiguration和@ComponentScan注解。@SpringBootApplication的作用百度说的是能扫描到这个包下的所有类还有子包的所有类,但是我在写的时候发现三个问题(如果有哪位大神知道为什么欢迎指点,感谢!):第一 在controller类中必须要添加@Ena
2020-07-21 22:40:27 288
原创 SpringBoot整合SpringMVC的时候Unable to start ServletWebServerApplicationContext due to missing ServletWeb
SpringBoot整合SpringMVC的时候Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.@SpringBootApplicationpublic class UserApplication { public static void main(String[] args) { SpringApplication.run(UserCon
2020-07-20 21:21:53 187
原创 企业权限管理系统的时候,用SSM Aop日志一直报Request processing failed; nested exception is java.lang.reflect.Undeclared
企业权限管理系统的时候,用SSM Aop日志一直报Request processing failed; nested exception is java.lang.reflect.UndeclaredThrowableException下面是异常HTTP Status 500 - Request processing failed; nested exception is java.lang.reflect.UndeclaredThrowableExceptiontype Exception repo
2020-07-14 22:16:10 600
原创 在写mybatis的时候利用动态SQL语句SQL语句拼接正确就是查到的数据为空
数据库中的信息为想了很久发现还是中文乱码的问题 <dataSource type="POOLED"> <!--配置连接数据库的4个基本信息--> <property name="driver" value="${driver}"/> <property name="url" value="${url}"/> <property nam.
2020-06-22 18:16:13 515
原创 mybatis存入数据库各种设置都改了还是有中文乱码
mybatis存入数据库各种设置都改了还是有中文乱码我发现是因为我的mybatis用标签properties引入数据库的各种信息如下图虽然在配置文件中引用了设置字符编码的语句**?useUnicode=true&characterEncoding=UTF-8但是存入数据库的数据还是会有乱码,我发现是这句话写在这里没有起作用然后我修改了配置数据源中的URL的value值在后面拼接了?useUnicode=true&characterEncoding=UTF-8**这样就解决了,如下
2020-06-22 18:06:30 589 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人