update 统一代码间隔符
This commit is contained in:
parent
fc8c96399f
commit
26fc652d33
@ -30,7 +30,7 @@ public class TestI18nController {
|
|||||||
/**
|
/**
|
||||||
* 通过code获取国际化内容
|
* 通过code获取国际化内容
|
||||||
* code为 messages.properties 中的 key
|
* code为 messages.properties 中的 key
|
||||||
*
|
* <p>
|
||||||
* 测试使用 user.register.success
|
* 测试使用 user.register.success
|
||||||
*/
|
*/
|
||||||
@ApiOperation("通过code获取国际化内容")
|
@ApiOperation("通过code获取国际化内容")
|
||||||
@ -42,7 +42,7 @@ public class TestI18nController {
|
|||||||
/**
|
/**
|
||||||
* Validator 校验国际化
|
* Validator 校验国际化
|
||||||
* 不传值 分别查看异常返回
|
* 不传值 分别查看异常返回
|
||||||
*
|
* <p>
|
||||||
* 测试使用 not.null
|
* 测试使用 not.null
|
||||||
*/
|
*/
|
||||||
@ApiOperation("Validator 校验国际化")
|
@ApiOperation("Validator 校验国际化")
|
||||||
@ -54,7 +54,7 @@ public class TestI18nController {
|
|||||||
/**
|
/**
|
||||||
* Bean 校验国际化
|
* Bean 校验国际化
|
||||||
* 不传值 分别查看异常返回
|
* 不传值 分别查看异常返回
|
||||||
*
|
* <p>
|
||||||
* 测试使用 not.null
|
* 测试使用 not.null
|
||||||
*/
|
*/
|
||||||
@ApiOperation("Bean 校验国际化")
|
@ApiOperation("Bean 校验国际化")
|
||||||
|
@ -9,7 +9,6 @@ import lombok.Data;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 测试单表视图对象 test_demo
|
* 测试单表视图对象 test_demo
|
||||||
*
|
*
|
||||||
|
@ -9,7 +9,6 @@ import lombok.Data;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 测试树表视图对象 test_tree
|
* 测试树表视图对象 test_tree
|
||||||
*
|
*
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
package com.ruoyi.demo.service;
|
package com.ruoyi.demo.service;
|
||||||
|
|
||||||
import com.ruoyi.common.core.domain.PageQuery;
|
import com.ruoyi.common.core.domain.PageQuery;
|
||||||
import com.ruoyi.demo.domain.TestDemo;
|
|
||||||
import com.ruoyi.demo.domain.vo.TestDemoVo;
|
|
||||||
import com.ruoyi.demo.domain.bo.TestDemoBo;
|
|
||||||
import com.ruoyi.common.core.mybatisplus.core.IServicePlus;
|
import com.ruoyi.common.core.mybatisplus.core.IServicePlus;
|
||||||
import com.ruoyi.common.core.page.TableDataInfo;
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.demo.domain.TestDemo;
|
||||||
|
import com.ruoyi.demo.domain.bo.TestDemoBo;
|
||||||
|
import com.ruoyi.demo.domain.vo.TestDemoVo;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -20,6 +20,7 @@ public interface ITestDemoService extends IServicePlus<TestDemo, TestDemoVo> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询单个
|
* 查询单个
|
||||||
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
TestDemoVo queryById(Long id);
|
TestDemoVo queryById(Long id);
|
||||||
@ -41,6 +42,7 @@ public interface ITestDemoService extends IServicePlus<TestDemo, TestDemoVo> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据新增业务对象插入测试单表
|
* 根据新增业务对象插入测试单表
|
||||||
|
*
|
||||||
* @param bo 测试单表新增业务对象
|
* @param bo 测试单表新增业务对象
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ -48,6 +50,7 @@ public interface ITestDemoService extends IServicePlus<TestDemo, TestDemoVo> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据编辑业务对象修改测试单表
|
* 根据编辑业务对象修改测试单表
|
||||||
|
*
|
||||||
* @param bo 测试单表编辑业务对象
|
* @param bo 测试单表编辑业务对象
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ -55,6 +58,7 @@ public interface ITestDemoService extends IServicePlus<TestDemo, TestDemoVo> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验并删除数据
|
* 校验并删除数据
|
||||||
|
*
|
||||||
* @param ids 主键集合
|
* @param ids 主键集合
|
||||||
* @param isValid 是否校验,true-删除前校验,false-不校验
|
* @param isValid 是否校验,true-删除前校验,false-不校验
|
||||||
* @return
|
* @return
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package com.ruoyi.demo.service;
|
package com.ruoyi.demo.service;
|
||||||
|
|
||||||
import com.ruoyi.demo.domain.TestTree;
|
|
||||||
import com.ruoyi.demo.domain.vo.TestTreeVo;
|
|
||||||
import com.ruoyi.demo.domain.bo.TestTreeBo;
|
|
||||||
import com.ruoyi.common.core.mybatisplus.core.IServicePlus;
|
import com.ruoyi.common.core.mybatisplus.core.IServicePlus;
|
||||||
|
import com.ruoyi.demo.domain.TestTree;
|
||||||
|
import com.ruoyi.demo.domain.bo.TestTreeBo;
|
||||||
|
import com.ruoyi.demo.domain.vo.TestTreeVo;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -17,6 +17,7 @@ import java.util.List;
|
|||||||
public interface ITestTreeService extends IServicePlus<TestTree, TestTreeVo> {
|
public interface ITestTreeService extends IServicePlus<TestTree, TestTreeVo> {
|
||||||
/**
|
/**
|
||||||
* 查询单个
|
* 查询单个
|
||||||
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
TestTreeVo queryById(Long id);
|
TestTreeVo queryById(Long id);
|
||||||
@ -28,6 +29,7 @@ public interface ITestTreeService extends IServicePlus<TestTree, TestTreeVo> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据新增业务对象插入测试树表
|
* 根据新增业务对象插入测试树表
|
||||||
|
*
|
||||||
* @param bo 测试树表新增业务对象
|
* @param bo 测试树表新增业务对象
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ -35,6 +37,7 @@ public interface ITestTreeService extends IServicePlus<TestTree, TestTreeVo> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据编辑业务对象修改测试树表
|
* 根据编辑业务对象修改测试树表
|
||||||
|
*
|
||||||
* @param bo 测试树表编辑业务对象
|
* @param bo 测试树表编辑业务对象
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ -42,6 +45,7 @@ public interface ITestTreeService extends IServicePlus<TestTree, TestTreeVo> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验并删除数据
|
* 校验并删除数据
|
||||||
|
*
|
||||||
* @param ids 主键集合
|
* @param ids 主键集合
|
||||||
* @param isValid 是否校验,true-删除前校验,false-不校验
|
* @param isValid 是否校验,true-删除前校验,false-不校验
|
||||||
* @return
|
* @return
|
||||||
|
@ -24,8 +24,7 @@ public class DruidConfig {
|
|||||||
@SuppressWarnings({"rawtypes", "unchecked"})
|
@SuppressWarnings({"rawtypes", "unchecked"})
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnProperty(name = "spring.datasource.druid.statViewServlet.enabled", havingValue = "true")
|
@ConditionalOnProperty(name = "spring.datasource.druid.statViewServlet.enabled", havingValue = "true")
|
||||||
public FilterRegistrationBean removeDruidFilterRegistrationBean(DruidStatProperties properties)
|
public FilterRegistrationBean removeDruidFilterRegistrationBean(DruidStatProperties properties) {
|
||||||
{
|
|
||||||
// 获取web监控页面的参数
|
// 获取web监控页面的参数
|
||||||
DruidStatProperties.StatViewServlet config = properties.getStatViewServlet();
|
DruidStatProperties.StatViewServlet config = properties.getStatViewServlet();
|
||||||
// 提取common.js的配置路径
|
// 提取common.js的配置路径
|
||||||
@ -33,16 +32,14 @@ public class DruidConfig {
|
|||||||
String commonJsPattern = pattern.replaceAll("\\*", "js/common.js");
|
String commonJsPattern = pattern.replaceAll("\\*", "js/common.js");
|
||||||
final String filePath = "support/http/resources/js/common.js";
|
final String filePath = "support/http/resources/js/common.js";
|
||||||
// 创建filter进行过滤
|
// 创建filter进行过滤
|
||||||
Filter filter = new Filter()
|
Filter filter = new Filter() {
|
||||||
{
|
|
||||||
@Override
|
@Override
|
||||||
public void init(javax.servlet.FilterConfig filterConfig) throws ServletException
|
public void init(javax.servlet.FilterConfig filterConfig) throws ServletException {
|
||||||
{
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
|
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
|
||||||
throws IOException, ServletException
|
throws IOException, ServletException {
|
||||||
{
|
|
||||||
chain.doFilter(request, response);
|
chain.doFilter(request, response);
|
||||||
// 重置缓冲区,响应头不会被重置
|
// 重置缓冲区,响应头不会被重置
|
||||||
// response.resetBuffer();
|
// response.resetBuffer();
|
||||||
@ -53,9 +50,9 @@ public class DruidConfig {
|
|||||||
text = text.replaceAll("powered.*?shrek.wang</a>", "");
|
text = text.replaceAll("powered.*?shrek.wang</a>", "");
|
||||||
response.getWriter().write(text);
|
response.getWriter().write(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void destroy()
|
public void destroy() {
|
||||||
{
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
FilterRegistrationBean registrationBean = new FilterRegistrationBean();
|
FilterRegistrationBean registrationBean = new FilterRegistrationBean();
|
||||||
|
@ -426,8 +426,7 @@ public class SysMenuServiceImpl extends ServicePlusImpl<SysMenuMapper, SysMenu,
|
|||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public String innerLinkReplaceEach(String path)
|
public String innerLinkReplaceEach(String path) {
|
||||||
{
|
|
||||||
return StringUtils.replaceEach(path, new String[]{Constants.HTTP, Constants.HTTPS},
|
return StringUtils.replaceEach(path, new String[]{Constants.HTTP, Constants.HTTPS},
|
||||||
new String[]{"", ""});
|
new String[]{"", ""});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user