配置文件修改
This commit is contained in:
parent
9460c74a48
commit
473efdfb83
|
|
@ -14,5 +14,19 @@
|
|||
</introspection-scope>
|
||||
</schema-mapping>
|
||||
</data-source>
|
||||
<data-source name="yn_img_tool@192.168.0.14" uuid="3f3f2303-0b34-4d50-8525-8f2693789a1e">
|
||||
<database-info product="MySQL" version="5.7.44" jdbc-version="4.2" driver-name="MySQL Connector/J" driver-version="mysql-connector-j-8.2.0 (Revision: 06a1f724497fd81c6a659131fda822c9e5085b6c)" dbms="MYSQL" exact-version="5.7.44" exact-driver-version="8.2">
|
||||
<extra-name-characters>#@</extra-name-characters>
|
||||
<identifier-quote-string>`</identifier-quote-string>
|
||||
<jdbc-catalog-is-schema>true</jdbc-catalog-is-schema>
|
||||
</database-info>
|
||||
<case-sensitivity plain-identifiers="lower" quoted-identifiers="lower" />
|
||||
<user-name>root</user-name>
|
||||
<schema-mapping>
|
||||
<introspection-scope>
|
||||
<node kind="schema" qname="@" />
|
||||
</introspection-scope>
|
||||
</schema-mapping>
|
||||
</data-source>
|
||||
</component>
|
||||
</project>
|
||||
|
|
@ -14,5 +14,18 @@
|
|||
</jdbc-additional-properties>
|
||||
<working-dir>$ProjectFileDir$</working-dir>
|
||||
</data-source>
|
||||
<data-source source="LOCAL" name="yn_img_tool@192.168.0.14" uuid="3f3f2303-0b34-4d50-8525-8f2693789a1e">
|
||||
<driver-ref>mysql.8</driver-ref>
|
||||
<synchronize>true</synchronize>
|
||||
<imported>true</imported>
|
||||
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
|
||||
<jdbc-url>jdbc:mysql://192.168.0.14:4418/yn_img_tool?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false</jdbc-url>
|
||||
<jdbc-additional-properties>
|
||||
<property name="com.intellij.clouds.kubernetes.db.host.port" />
|
||||
<property name="com.intellij.clouds.kubernetes.db.enabled" value="false" />
|
||||
<property name="com.intellij.clouds.kubernetes.db.container.port" />
|
||||
</jdbc-additional-properties>
|
||||
<working-dir>$ProjectFileDir$</working-dir>
|
||||
</data-source>
|
||||
</component>
|
||||
</project>
|
||||
6
pom.xml
6
pom.xml
|
|
@ -9,10 +9,10 @@
|
|||
<relativePath/> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
<groupId>com.bonus.boot</groupId>
|
||||
<artifactId>szgqj-service</artifactId>
|
||||
<artifactId>ynImgTool</artifactId>
|
||||
<version>1.0.0.1-SNAPSHOT</version>
|
||||
<name>szgqj-service</name>
|
||||
<description>szgqj-service</description>
|
||||
<name>ynImgTool</name>
|
||||
<description>ynImgTool</description>
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
</properties>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,6 @@ public class LoginPageConfig {
|
|||
|
||||
@RequestMapping("/")
|
||||
public RedirectView loginPage() {
|
||||
return new RedirectView("/szgqj/login.html");
|
||||
return new RedirectView("/ynImgTool/login.html");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ public class TokenFilter extends OncePerRequestFilter {
|
|||
@Autowired
|
||||
private RedisUtil redisUtil;
|
||||
|
||||
private static String url="/szgqj/login.html";
|
||||
private static String url="/imgTool/login.html";
|
||||
|
||||
private static final Long MINUTES_10 = 10 * 60 * 1000L;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
server.port=11997
|
||||
server.servlet.context-path=/szgqj
|
||||
server.servlet.context-path=/imgTool
|
||||
spring.datasource.url=jdbc:mysql://192.168.0.14:4418/yn_img_tool?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
|
||||
spring.datasource.username=root
|
||||
spring.datasource.password=Bonus@admin123!
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@ let aqEnnable = true;//是否开启安全验证
|
|||
var url=window.location.href;
|
||||
console.log(url)
|
||||
|
||||
let test_url="http://192.168.0.14:11997/szgqj";
|
||||
let dev_url="http://112.27.246.86:21997/szgqj";
|
||||
let dev_url2="https://jj.jypxks.com/szgqj";
|
||||
let local_url="http://127.0.0.1:11997/szgqj";
|
||||
let dataUrl = "http://112.27.246.86:21997/szgqj"
|
||||
let test_url="http://192.168.0.14:11997/imgTool";
|
||||
let dev_url="http://112.27.246.86:21997/imgTool";
|
||||
let dev_url2="https://jj.jypxks.com/imgTool";
|
||||
let local_url="http://127.0.0.1:11997/imgTool";
|
||||
let dataUrl = "http://112.27.246.86:21997/imgTool"
|
||||
|
||||
if(url.indexOf("112.27.246.86")!=-1){
|
||||
dataUrl = dev_url;
|
||||
|
|
@ -20,10 +20,10 @@ if(url.indexOf("112.27.246.86")!=-1){
|
|||
dataUrl = test_url
|
||||
}else{
|
||||
if(url.indexOf(":8000")!=-1){
|
||||
dataUrl = "http://192.168.0.14:8000/szgqj"
|
||||
dataUrl = "http://192.168.0.14:8000/imgTool"
|
||||
}
|
||||
if(url.indexOf(":11997")!=-1){
|
||||
dataUrl = "http://192.168.0.14:21997/szgqj"
|
||||
dataUrl = "http://192.168.0.14:21997/imgTool"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -47,10 +47,10 @@ function error(xhr) {
|
|||
icon: 5,
|
||||
move: false,
|
||||
cancel: function (index, layero) {
|
||||
location.href = '/szgqj/login.html';
|
||||
location.href = '/imgTool/login.html';
|
||||
}
|
||||
}, function () {
|
||||
location.href = '/szgqj/login.html';
|
||||
location.href = '/imgTool/login.html';
|
||||
})
|
||||
} else if (code == 403) {
|
||||
console.log("未授权:" + message);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
<script src="js/publicJs.js"></script>
|
||||
<script type="text/javascript">
|
||||
if (top != self) {
|
||||
parent.location.href = '/szgqj/login.html';
|
||||
parent.location.href = '/ynImgTool/login.html';
|
||||
}
|
||||
var token = localStorage.getItem("token");
|
||||
if (token != null && token.trim().length != 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue