[ 
https://issues.apache.org/jira/browse/SCB-1164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

wujimin updated SCB-1164:
-------------------------
    Description: 
{code:java}
@RunWith(SpringRunner.class)
@DirtiesContext
@SpringBootTest(classes = TestMain.class, webEnvironment = DEFINED_PORT)
@ActiveProfiles("db-h1")
public class T1 {
}

@RunWith(SpringRunner.class)
@DirtiesContext
@SpringBootTest(classes = TestMain.class, webEnvironment = DEFINED_PORT)
@ActiveProfiles("db-h2")
public class T2 {
}{code}
T1/T2 relate to different profile, will restart ApplictionContext

 

https://github.com/apache/servicecomb-java-chassis/issues/1100

  was:
{code:java}
@RunWith(SpringRunner.class)
@DirtiesContext
@SpringBootTest(classes = TestMain.class, webEnvironment = DEFINED_PORT)
@ActiveProfiles("db-h1")
public class T1 {
}

@RunWith(SpringRunner.class)
@DirtiesContext
@SpringBootTest(classes = TestMain.class, webEnvironment = DEFINED_PORT)
@ActiveProfiles("db-h2")
public class T2 {
}{code}
T1/T2 relate to different profile, will restart ApplictionContext


> support not restart process, but restart engine
> -----------------------------------------------
>
>                 Key: SCB-1164
>                 URL: https://issues.apache.org/jira/browse/SCB-1164
>             Project: Apache ServiceComb
>          Issue Type: Task
>          Components: Java-Chassis
>            Reporter: wujimin
>            Priority: Major
>
> {code:java}
> @RunWith(SpringRunner.class)
> @DirtiesContext
> @SpringBootTest(classes = TestMain.class, webEnvironment = DEFINED_PORT)
> @ActiveProfiles("db-h1")
> public class T1 {
> }
> @RunWith(SpringRunner.class)
> @DirtiesContext
> @SpringBootTest(classes = TestMain.class, webEnvironment = DEFINED_PORT)
> @ActiveProfiles("db-h2")
> public class T2 {
> }{code}
> T1/T2 relate to different profile, will restart ApplictionContext
>  
> https://github.com/apache/servicecomb-java-chassis/issues/1100



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to