开发小插曲
流风回雪丶小颜
我好困,但是写代码太tm有意思了
展开
-
spring boot @Component 无效问题
springboot 加载的时候,使用该注解的类一定要放在接口同级,或者下级包里面,不然是无法进行扫描的,比如接口放在com.xxx.yyy下面,而使用@component的类放在com.xxx.zzz下面,这样子是无法扫描的原创 2018-02-04 19:08:43 · 17521 阅读 · 1 评论 -
Centos7 操作SpringBoot
CentOS7 使用 Systemd 部署1.增加服务文件进入服务文件目录:cd /etc/systemd/system/11创建服务文件:(文件名对应项目名,可自定义)vim my-apps.service112.编辑内容[Unit]Description=appsAfter=syslog.target[Service]ExecStart=...转载 2019-01-02 15:55:02 · 264 阅读 · 0 评论