会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
647
博客园
首页
新随笔
联系
订阅
管理
2018年10月6日
linux mysql不能远程登录
摘要: service iptables stop GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '<root-password>' WITH GRANT OPTION flush privileges; ./nginx -s reload重
阅读全文
posted @ 2018-10-06 14:45 637
阅读(121)
评论(0)
推荐(0)
2018年9月18日
map的遍历方法
摘要: public class LambdaMap { private Map<String, Object> map = new HashMap<>(); @Before public void initData() { map.put("key1", "value1"); map.put("key2"
阅读全文
posted @ 2018-09-18 14:08 637
阅读(192)
评论(0)
推荐(0)
2018年7月29日
________________springbootのMybatis
摘要: 微服务sudo pmset -a GPUSwitch 0 //强制使用集显sudo pmset -a GPUSwitch 1//强制使用独显sudo pmset -a GPUSwitch 2//自动切换模式
阅读全文
posted @ 2018-07-29 19:03 637
阅读(112)
评论(0)
推荐(0)
________________springbootのTest
摘要: 在测试类上加两个注解 @RunWith(SpringRunner.class) @SpringBootTest public class UserDaoTest { @Autowired private UserDao userDao; @Test public void testAddUser()
阅读全文
posted @ 2018-07-29 17:52 637
阅读(134)
评论(0)
推荐(0)
________________springbootの自定义starter
摘要: 自定义配置springboot starter的步骤 1、配置一个类,配置类里面需要装配好要提供出去的类 2、使用1️⃣@enable,配置@import注解使用 2️⃣/META-INF、spring.factories 配置 org.springframework.boot.context.pr
阅读全文
posted @ 2018-07-29 07:00 637
阅读(98)
评论(0)
推荐(0)
2018年7月28日
________________springbootのAOP
摘要: AOP开发流程 1、加入依赖 spring-boot-starter-aop 自动开启AOP支持 2、写一个Aspect,封装横切关注点(日志、监控等),需要配置通知(前置、后置、环绕、异常...)和切入点(那些包的哪些方法等) @Before("execution(* com.lsq.spring
阅读全文
posted @ 2018-07-28 21:55 637
阅读(119)
评论(0)
推荐(0)
________________springbootのjdbc、事物
摘要: 1、加载驱动 2、配置application.properties spring.datasource.driverClassName=com.mysql.jdbc.Driver spring.datasource.url=jdbc:mysql://192.168.0.104:3306/qiqisx
阅读全文
posted @ 2018-07-28 20:15 637
阅读(83)
评论(0)
推荐(0)
2018年7月27日
________________初学springboot14
摘要: 如何优化定制容器
阅读全文
posted @ 2018-07-27 15:39 637
阅读(79)
评论(0)
推荐(0)
________________初学springboot13
摘要: resource/src/webapp下的文件可以直接访问,以下为四个静态资源的路径,可以通过配置项修改 "classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/publ
阅读全文
posted @ 2018-07-27 11:21 637
阅读(93)
评论(0)
推荐(0)
2018年7月26日
________________初学springboot12
摘要: 规定请求方式 RequestMapping(value="/hello" Method=RequestMethod.GET) @RequestMapping(value="/hello" Method="Request.Method.GET") @ResponseBody public String
阅读全文
posted @ 2018-07-26 15:08 637
阅读(92)
评论(0)
推荐(0)
下一页
公告