随笔分类 -  【B】框架

摘要:spring: datasource:# 本地库 url: jdbc:mysql://192.168.18.7:3306/shiptrackersmart?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNu 阅读全文
posted @ 2017-10-25 13:39 Legolas_4 阅读(3906) 评论(0) 推荐(0)
摘要:HDD_EUREKA_SERVER application.yml server: port: 8101eureka: instance: hostname: localhost client: register-with-eureka: false fetch-registry: false HD 阅读全文
posted @ 2017-10-24 09:11 Legolas_4 阅读(319) 评论(0) 推荐(0)
摘要:舶云: hdd_boyun_pc,hdd_boyun_manager 都依赖hdd_boyun_service。 在hdd_boyun_pc,hdd_boyun_manager 的pom.xml文件中,都有 hdd_boyun_pc,hdd_boyun_manager 中都有一个ShiroAccou 阅读全文
posted @ 2017-09-20 11:21 Legolas_4 阅读(780) 评论(0) 推荐(0)
摘要:1.Shiro相关的操作不要写在service中,要写在controller中,通过参数往service中传。 2.dao 或者 mapper不要写在controller,(包括查询操作也不要直接用mapper或dao),都要写在service中。不要图方便。 3.以上两个问题 可能会造成严重的后果 阅读全文
posted @ 2017-08-23 10:21 Legolas_4 阅读(111) 评论(0) 推荐(0)
摘要:pom.xml generatorConfig.xml 阅读全文
posted @ 2017-08-15 15:29 Legolas_4 阅读(217) 评论(0) 推荐(0)
摘要:UUID不是128位长的吗,怎么生成的都是36个字符的字符串? UUID.fromString("84D1319C-FBAF-644C-901A-8F091F25AF04")); UUID不是128位长的吗,怎么生成的都是36个字符的字符串? UUID.fromString("84D1319C-FB 阅读全文
posted @ 2017-08-15 10:18 Legolas_4 阅读(1157) 评论(0) 推荐(0)
摘要:依赖注入(Dependency Injection)和控制反转(Inversion of Control)是同一个概念。具体含义是:当某个角色(可能是一个Java实例,调用者)需要另一个角色(另一个Java实例,被调用者)的协助时,在传统的程序设计过程中,通常由调用者来创建被调用者的实例。但在Spr 阅读全文
posted @ 2017-08-14 17:35 Legolas_4 阅读(150) 评论(0) 推荐(0)
摘要:ShipStatic ship=shipService.getShipInfoBymmsi(mmsi); public interface ShipStaticMapper extends Mapper { ShipStatic getShipinfoBymmsi(String mmsi);} public interface ShipImageMapper extends Mappe... 阅读全文
posted @ 2017-08-08 15:01 Legolas_4 阅读(578) 评论(0) 推荐(0)
摘要:insert 保存一个实体,null的属性也会保存,不会使用数据库默认值 insertSelective 保存一个实体,null的属性不会保存(对象的值为null的属性不会保存),会使用数据库默认值 updateByPrimaryKey 根据主键更新实体全部字段,null值会被更新 updateBy 阅读全文
posted @ 2017-07-05 13:25 Legolas_4 阅读(396) 评论(0) 推荐(0)
摘要:MyBatis 插入时候获取自增主键 方法有二 方法1-1: <insert id="insert" parameterType="Person" useGeneratedKeys="true" keyProperty="id"> insert into person(name,pswd) valu 阅读全文
posted @ 2017-06-29 18:28 Legolas_4 阅读(1117) 评论(0) 推荐(0)
摘要:(自己的理解) resultType resultMap 阅读全文
posted @ 2017-05-19 15:12 Legolas_4 阅读(173) 评论(0) 推荐(0)
摘要:自己的理解: maven其中一个功能是帮助用户管理jar包,只要在pom.xml文件中配置需要的jar文件 <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-core</artifactId> <version 阅读全文
posted @ 2017-05-05 10:52 Legolas_4 阅读(197) 评论(0) 推荐(0)