This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Профиль пользователя</title> | |
<link href="/resources/css/bootstrap.min.css" rel="stylesheet" type="text/css"/> | |
<link href="/resources/css/style.min.css" rel="stylesheet" type="text/css"> | |
</head> | |
<body ng-app="es09.account"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Bean | |
public DataSource dataSource(Environment env) { | |
DriverManagerDataSource dataSource = new DriverManagerDataSource(); | |
String databaseUrl = System.getProperty("zags.datasource.url"); | |
if (databaseUrl == null || databaseUrl.equals("")) | |
databaseUrl = env.getProperty("spring.datasource.url"); //read from application.properties | |
dataSource.setUrl(databaseUrl); | |
String databaseUsername = System.getProperty("zags.datasource.username"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018-04-25 17:18:56,003 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."batch-registration.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."batch-registration.war".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "batch-registration.war" | |
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final] | |
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final] | |
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final] | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_101] | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_101] | |
at java.lang.Thread.run(Th |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018-04-25 17:20:38.480 ERROR 1416 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Destroy method on bean with name 'org.springframework.boot.autoconfigure.internalCachingMetadataReaderFactory' threw an exception | |
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.context.annotation.AnnotationConfigApplicationContext@c7ba306: startup date [Wed Apr 25 17:20:36 MSK 2018]; root of context hierarchy | |
at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:404) [spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] | |
at org.springframework.context.support.ApplicationListenerDetector.postProcessBeforeDestruction(ApplicationListenerDetector.java:97) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE] | |
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:253) ~[spring-beans-4.3.7.RELE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Long createNpAddress(MestoTip place) { | |
if (checkPlaceTipExists(place)) { | |
if (place.getСвСтрана().equals("FIAS")) { | |
return dslContext.insertInto(NP_ADDRESS) | |
.set(NP_ADDRESS.FIAS_ID, place.getСвГород()) | |
.set(NP_ADDRESS.ADDRESS_SOURCE, place.getСвСтрана()) | |
.returning(NP_ADDRESS.NP_ADDRESS_ID) | |
.fetchOne().getValue(NP_ADDRESS.NP_ADDRESS_ID); | |
} | |
else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<profile> | |
<id>generate-xsd-beans</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.jvnet.jaxb2.maven2</groupId> | |
<artifactId>maven-jaxb2-plugin</artifactId> | |
<configuration> | |
<extension>true</extension> | |
<args> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<jaxb:bindings | |
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/jaxb http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd" | |
jaxb:extensionBindingPrefixes="xjc annox" | |
version="2.1"> | |
<jaxb:globalBindings enableJavaNamingConventions="true"/> | |
<jaxb:bindings schemaLocation="zags-adrfatal-ru-root.xsd" node="/xs:schema"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Long findAzNumPeriodId(Long govListBodyId, Timestamp azDate, Long azKindId) { | |
SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy"); | |
Result<Record> fetch = dslContext.fetch("\"zags\".\"chkaznumperiod\"(" + | |
govListBodyId + " , " + | |
azKindId + " , " + | |
"date('" + dateFormat.format(azDate) + "')" + | |
");"); | |
if (fetch.isNotEmpty() && fetch.size() > 0) | |
return (Long) fetch.get(0).getValue(0); | |
else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.lang.IllegalStateException: Failed to load ApplicationContext | |
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124) | |
at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83) | |
at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:189) | |
at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:131) | |
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:230) | |
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:228) | |
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:287) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
G:\IdeaProjects\zags-worstation-service>mvn dependency:tree | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building workstation-service 1.0-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- maven-dependency-plugin:3.0.2:tree (default-cli) @ workstation-service --- | |
[INFO] ru.cg.zags:workstation-service:jar:1.0-SNAPSHOT | |
[INFO] +- org.springframework.boot:spring-boot-starter-jooq:jar:2.0.2.RELEASE:compile |
OlderNewer